Interface ImportEsrFileService
- All Known Implementing Classes:
AbstractImportCamtFileService
,ImportCamt053FileServiceImpl
,ImportCamt054FileServiceImpl
,ImportV11FileServiceImpl
,ImportZipFileServiceImpl
public interface ImportEsrFileService
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkFile
(Binary esrFile, ImportEsrFileServiceContribution contribution) Checks if the file can be processed by this servicegetFileHash
(Binary esrFile) returns the hash of the file for the Esr_file_historyimportFile
(Binary esrFile) imports the esr fileboolean
validateFile
(Binary esrFile, ImportEsrFileServiceContribution contribution) Validates the esr file
-
Method Details
-
checkFile
Checks if the file can be processed by this service- Parameters:
esrFile
- the esr file as a Binarycontribution
- the contribution to check against- Returns:
true
if the file can be processed
-
validateFile
Validates the esr file- Parameters:
esrFile
- the esr file as a Binarycontribution
- the contribution to validate against- Returns:
true
if the file is valid
-
importFile
imports the esr file- Parameters:
esrFile
- the esr file as a Binary- Returns:
- the number of imported incoming payments, the number of total transaction in the file and a flag that may be set if this file was imported before.
-
getFileHash
returns the hash of the file for the Esr_file_history- Parameters:
esrFile
- the esr file as a Binary- Returns:
- the hash of the file
-