Interface GenericImporterReportService
- All Known Implementing Classes:
GenericImporterReportServiceImpl
public interface GenericImporterReportService
-
Method Summary
Modifier and TypeMethodDescriptiongenerateErrorReport
(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 linevoid
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.
-
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 filemessages
- 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 filemessages
- all messages that should be "attached" to the import fileskippedRows
- 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.
-