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
public class ExcelImportHandler extends ExcelWithoutValidationImportHandler
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 Modifier and Type Field Description static java.lang.StringXLSX_EXTENSIONDeprecated.since 6.7 no longer usedstatic java.lang.StringZIP_EXTENSIONDeprecated.since 6.7 no longer used
-
Constructor Summary
Constructors Constructor Description ExcelImportHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.apache.poi.ss.usermodel.WorkbookcreateWorkbook(byte[] fileContent)protected FileContentfindUploadedFileWithExtension(java.util.Set<com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult> uploadedFiles, java.lang.String extension)Deprecated.since 6.7 no longer used.ExcelImportServicegetExcelImportService()ExcelImportWorkbookPostProcessorgetExcelImportWorkbookPostProcessor()MimeServicegetMimeService()protected booleanhasValidationErrors(java.util.Collection<ExcelValidationResult> excelValidationResults)protected voidimportExcel(FileContent foundExcelFile, FileContent foundZipFile)protected java.util.Optional<java.util.Set<java.lang.String>>listZipEntries(FileContent foundZipFile)voidperform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> parameters)voidsetExcelImportService(ExcelImportService excelImportService)voidsetExcelImportWorkbookPostProcessor(ExcelImportWorkbookPostProcessor excelImportWorkbookPostProcessor)voidsetMimeService(MimeService mimeService)protected java.util.List<ExcelValidationResult>validateExcel(FileContent excelFileContent)Deprecated.since 6.7 please usevalidateExcel(FileContent, FileContent)protected java.util.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 Detail
-
ZIP_EXTENSION
@Deprecated public static final java.lang.String ZIP_EXTENSION
Deprecated.since 6.7 no longer used- See Also:
- Constant Field Values
-
XLSX_EXTENSION
@Deprecated public static final java.lang.String XLSX_EXTENSION
Deprecated.since 6.7 no longer used- See Also:
- Constant Field Values
-
-
Method Detail
-
perform
public void perform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> parameters)- Specified by:
performin interfacecom.hybris.cockpitng.widgets.configurableflow.FlowActionHandler- Overrides:
performin classExcelWithoutValidationImportHandler
-
hasValidationErrors
protected boolean hasValidationErrors(java.util.Collection<ExcelValidationResult> excelValidationResults)
-
validateExcel
@Deprecated protected java.util.List<ExcelValidationResult> validateExcel(FileContent excelFileContent)
Deprecated.since 6.7 please usevalidateExcel(FileContent, FileContent)
-
validateExcel
protected java.util.List<ExcelValidationResult> validateExcel(FileContent excelFileContent, FileContent zipFileContent)
-
importExcel
protected void importExcel(FileContent foundExcelFile, FileContent foundZipFile)
- Overrides:
importExcelin classExcelWithoutValidationImportHandler
-
findUploadedFileWithExtension
@Deprecated protected FileContent findUploadedFileWithExtension(java.util.Set<com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult> uploadedFiles, java.lang.String extension)
Deprecated.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
protected java.util.Optional<java.util.Set<java.lang.String>> listZipEntries(FileContent foundZipFile)
-
getExcelImportService
public ExcelImportService getExcelImportService()
-
setExcelImportService
public void setExcelImportService(ExcelImportService excelImportService)
-
getMimeService
public MimeService getMimeService()
-
setMimeService
public void setMimeService(MimeService mimeService)
-
getExcelImportWorkbookPostProcessor
public ExcelImportWorkbookPostProcessor getExcelImportWorkbookPostProcessor()
-
setExcelImportWorkbookPostProcessor
public void setExcelImportWorkbookPostProcessor(ExcelImportWorkbookPostProcessor excelImportWorkbookPostProcessor)
-
-