Class 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 Detail

      • ZIP_EXTENSION

        @Deprecated(since="6.7",
                    forRemoval=true)
        public static final java.lang.String ZIP_EXTENSION
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 6.7 no longer used
        See Also:
        Constant Field Values
      • XLSX_EXTENSION

        @Deprecated(since="6.7",
                    forRemoval=true)
        public static final java.lang.String XLSX_EXTENSION
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 6.7 no longer used
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExcelImportHandler

        public ExcelImportHandler()
    • 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:
        perform in interface com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
        Overrides:
        perform in class ExcelWithoutValidationImportHandler
      • hasValidationErrors

        protected boolean hasValidationErrors​(java.util.Collection<ExcelValidationResult> excelValidationResults)
      • 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)
      • getZipEntries

        protected java.util.Set<java.lang.String> getZipEntries​(FileContent zipFile)
      • getFallbackZipEntry

        protected java.util.Set<java.lang.String> getFallbackZipEntry​(FileContent zipFile,
                                                                      java.nio.charset.Charset charset)
      • getSupportedCharsets

        protected java.util.Collection<java.nio.charset.Charset> getSupportedCharsets()
      • getZipFilenameEncodings

        protected java.lang.String getZipFilenameEncodings()
      • setExcelImportService

        public void setExcelImportService​(ExcelImportService excelImportService)
      • setMimeService

        public void setMimeService​(MimeService mimeService)
      • getCockpitProperties

        public com.hybris.cockpitng.core.util.CockpitProperties getCockpitProperties()
      • setCockpitProperties

        public void setCockpitProperties​(com.hybris.cockpitng.core.util.CockpitProperties cockpitProperties)