Interface GenericImporterService
- All Superinterfaces:
GenericImporterActionService
- All Known Implementing Classes:
GenericImporterActionServiceImpl
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static interface
Helper structure that contains all referenced relatedEntity
instances per batch, so that they have to be loaded only once per batch.Nested classes/interfaces inherited from interface ch.tocco.nice2.entityoperation.api.GenericImporterActionService
GenericImporterActionService.ColumnModelFieldType, GenericImporterActionService.FormData
-
Field Summary
Fields inherited from interface ch.tocco.nice2.entityoperation.api.GenericImporterActionService
IMPORT_MODE_CREATE, IMPORT_MODE_CREATE_OR_UPDATE, IMPORT_MODE_UPDATE
-
Method Summary
Modifier and TypeMethodDescriptionconvertAndValidateValue
(org.apache.poi.ss.usermodel.Cell cell, GenericImporterService.ColumnModel columnModel, int rowNumber, String firstColumnValue, GenericImporterValidateResult validateResult, ImportConverterService importConverterService) void
handleValidationResult
(GenericImporterValidateResult validateResult, String column, AbstractValidationResult validationResult, int count, String firstColumnValue, Object validatedValue) validateHeader
(GenericImporterValidateResult validateResult, org.apache.poi.ss.usermodel.Sheet importSheet, EntityModel mainEntityModel) Methods inherited from interface ch.tocco.nice2.entityoperation.api.GenericImporterActionService
doImport, exportErrors, loadEntities, validate
-
Method Details
-
handleValidationResult
void handleValidationResult(GenericImporterValidateResult validateResult, String column, AbstractValidationResult validationResult, int count, String firstColumnValue, Object validatedValue) -
validateHeader
List<GenericImporterService.ColumnModel> validateHeader(GenericImporterValidateResult validateResult, org.apache.poi.ss.usermodel.Sheet importSheet, EntityModel mainEntityModel) throws IOException - Throws:
IOException
-
convertAndValidateValue
Object convertAndValidateValue(org.apache.poi.ss.usermodel.Cell cell, GenericImporterService.ColumnModel columnModel, int rowNumber, String firstColumnValue, GenericImporterValidateResult validateResult, ImportConverterService importConverterService)
-