Interface GenericImporterReportService

All Known Implementing Classes:
GenericImporterReportServiceImpl

public interface GenericImporterReportService
  • Method Details

    • generateErrorReport

      String generateErrorReport(File importFile, com.google.common.collect.Multimap<Integer,GenericImporterValidateResult.Message> messages)
      Generates a file that contains all lines of the original import file that have a "message" associated to them The messages are appended to the end of each line
      Parameters:
      importFile - the original import file
      messages - the error messages
      Returns:
      primary key of the output job
    • generateImportResultReport

      void generateImportResultReport(File importFile, com.google.common.collect.Multimap<Integer,GenericImporterValidateResult.Message> messages, Set<Integer> skippedRows, int lastSuccessfulRow)
      Generate s a report that is basically the original import file enriched with a status that tells if the record was successfully imported or not and error messages if applicable.
      Parameters:
      importFile - the original import file
      messages - all messages that should be "attached" to the import file
      skippedRows - all rows that where skipped (e.g. "create" rows when using "update only")
      lastSuccessfulRow - only used if "cancel" is selected, all rows after this row are either skipped or lines with errors.