Interface ImportEsrFileService
- All Known Implementing Classes:
AbstractImportCamtFileService, ImportCamt053FileServiceImpl, ImportCamt054FileServiceImpl, ImportV11FileServiceImpl, ImportZipFileServiceImpl
public interface ImportEsrFileService
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckFile(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 filebooleanvalidateFile(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:
trueif the file can be processed
-
validateFile
Validates the esr file- Parameters:
esrFile- the esr file as a Binarycontribution- the contribution to validate against- Returns:
trueif 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
-