Interface ExcelImportService
-
- All Known Implementing Classes:
DefaultExcelImportService
public interface ExcelImportServiceService responsible for generatingImpexbased on excel file represented byWorkbookobject. In order to generating impex script, we can pass the result of {#importData} toImpexConverter.convert(Impex).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description ImpexconvertToImpex(org.apache.poi.ss.usermodel.Workbook workbook)Transforms excel workbook intoImpexobject.java.util.List<ExcelValidationResult>validate(org.apache.poi.ss.usermodel.Workbook workbook)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 please usevalidate(Workbook, Set)default java.util.List<ExcelValidationResult>validate(org.apache.poi.ss.usermodel.Workbook workbook, java.util.Set<java.lang.String> mediaContentEntries)Deprecated, for removal: This API element is subject to removal in a future version.since 2005 please usevalidate(Workbook, Set, Map)default java.util.List<ExcelValidationResult>validate(org.apache.poi.ss.usermodel.Workbook workbook, java.util.Set<java.lang.String> mediaContentEntries, java.util.Map<java.lang.String,java.lang.Object> context)Validates a workbook.
-
-
-
Method Detail
-
convertToImpex
Impex convertToImpex(org.apache.poi.ss.usermodel.Workbook workbook)
Transforms excel workbook intoImpexobject. It takes into account all sheets included in excel file.- Parameters:
workbook-Workbookobject which represents excel file- Returns:
- generated
Impexobject which represents data from the workbook
-
validate
@Deprecated(since="6.7", forRemoval=true) java.util.List<ExcelValidationResult> validate(org.apache.poi.ss.usermodel.Workbook workbook)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 please usevalidate(Workbook, Set)Validates a workbook.- Parameters:
workbook- workbook to validate.- Returns:
- list of validation results.
-
validate
@Deprecated(since="2005", forRemoval=true) default java.util.List<ExcelValidationResult> validate(org.apache.poi.ss.usermodel.Workbook workbook, @Nullable java.util.Set<java.lang.String> mediaContentEntries)Deprecated, for removal: This API element is subject to removal in a future version.since 2005 please usevalidate(Workbook, Set, Map)Validates a workbook.- Parameters:
workbook- workbook to validate.mediaContentEntries- set of entries names inside media content attached to the excel file. Null if media is not attached.- Returns:
- list of validation results.
-
validate
default java.util.List<ExcelValidationResult> validate(org.apache.poi.ss.usermodel.Workbook workbook, @Nullable java.util.Set<java.lang.String> mediaContentEntries, java.util.Map<java.lang.String,java.lang.Object> context)
Validates a workbook.- Parameters:
workbook- workbook to validate.mediaContentEntries- set of entries names inside media content attached to the excel file. Null if media is not attached.context- context with additional parameters- Returns:
- list of validation results.
-
-