Class ExcelImportHandler
java.lang.Object
com.hybris.backoffice.excel.imp.wizard.ExcelWithoutValidationImportHandler
com.hybris.backoffice.excel.imp.wizard.ExcelImportHandler
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
Handler which is used in Excel Import Process' wizard. Handler allows to start import process if uploaded file passes
the validation process.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.poi.ss.usermodel.WorkbookcreateWorkbook(byte[] fileContent) protected FileContentfindUploadedFileWithExtension(Set<com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult> uploadedFiles, String extension) Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 no longer used.com.hybris.cockpitng.core.util.CockpitPropertiesgetFallbackZipEntry(FileContent zipFile, Charset charset) protected Collection<Charset>getZipEntries(FileContent zipFile) protected Stringprotected booleanhasValidationErrors(Collection<ExcelValidationResult> excelValidationResults) protected voidimportExcel(FileContent foundExcelFile, FileContent foundZipFile) listZipEntries(FileContent foundZipFile) voidperform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> parameters) voidsetCockpitProperties(com.hybris.cockpitng.core.util.CockpitProperties cockpitProperties) voidsetExcelImportService(ExcelImportService excelImportService) voidsetExcelImportWorkbookPostProcessor(ExcelImportWorkbookPostProcessor excelImportWorkbookPostProcessor) voidsetMimeService(MimeService mimeService) protected List<ExcelValidationResult>validateExcel(FileContent excelFileContent) Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 please usevalidateExcel(FileContent, FileContent)protected List<ExcelValidationResult>validateExcel(FileContent excelFileContent, FileContent zipFileContent) Methods inherited from class com.hybris.backoffice.excel.imp.wizard.ExcelWithoutValidationImportHandler
getCockpitEventQueue, getCronJobService, getExcelCronJobService, getNotificationService, setCockpitEventQueue, setCronJobService, setExcelCronJobService, setNotificationService, toFileContent
-
Field Details
-
ZIP_EXTENSION
Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 no longer used- See Also:
-
XLSX_EXTENSION
Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 no longer used- See Also:
-
-
Constructor Details
-
ExcelImportHandler
public ExcelImportHandler()
-
-
Method Details
-
perform
public void perform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> parameters) - Specified by:
performin interfacecom.hybris.cockpitng.widgets.configurableflow.FlowActionHandler- Overrides:
performin classExcelWithoutValidationImportHandler
-
hasValidationErrors
-
validateExcel
@Deprecated(since="6.7", forRemoval=true) protected List<ExcelValidationResult> validateExcel(FileContent excelFileContent) Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 please usevalidateExcel(FileContent, FileContent) -
validateExcel
protected List<ExcelValidationResult> validateExcel(FileContent excelFileContent, FileContent zipFileContent) -
importExcel
- Overrides:
importExcelin classExcelWithoutValidationImportHandler
-
findUploadedFileWithExtension
@Deprecated(since="6.7", forRemoval=true) protected FileContent findUploadedFileWithExtension(Set<com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult> uploadedFiles, String extension) Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 no longer used. UseExcelWithoutValidationImportHandler.toFileContent(FileUploadResult)to map upload result andExcelImportWizardForm.getExcelFile()orExcelImportWizardForm.getZipFile()to obtain file for extension -
createWorkbook
protected org.apache.poi.ss.usermodel.Workbook createWorkbook(byte[] fileContent) -
listZipEntries
-
getZipEntries
-
getFallbackZipEntry
-
getSupportedCharsets
-
getZipFilenameEncodings
-
getExcelImportService
-
setExcelImportService
-
getMimeService
-
setMimeService
-
getExcelImportWorkbookPostProcessor
-
setExcelImportWorkbookPostProcessor
public void setExcelImportWorkbookPostProcessor(ExcelImportWorkbookPostProcessor excelImportWorkbookPostProcessor) -
getCockpitProperties
public com.hybris.cockpitng.core.util.CockpitProperties getCockpitProperties() -
setCockpitProperties
public void setCockpitProperties(com.hybris.cockpitng.core.util.CockpitProperties cockpitProperties)
-