Interface ImportEsrFileService

All Known Implementing Classes:
AbstractImportCamtFileService, ImportCamt053FileServiceImpl, ImportCamt054FileServiceImpl, ImportV11FileServiceImpl, ImportZipFileServiceImpl

public interface ImportEsrFileService
  • Method Details

    • checkFile

      boolean checkFile(Binary esrFile, ImportEsrFileServiceContribution contribution)
      Checks if the file can be processed by this service
      Parameters:
      esrFile - the esr file as a Binary
      contribution - the contribution to check against
      Returns:
      true if the file can be processed
    • validateFile

      boolean validateFile(Binary esrFile, ImportEsrFileServiceContribution contribution)
      Validates the esr file
      Parameters:
      esrFile - the esr file as a Binary
      contribution - the contribution to validate against
      Returns:
      true if the file is valid
    • importFile

      EsrImportReturnValue importFile(Binary esrFile)
      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

      String getFileHash(Binary esrFile)
      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