Class ExcelExportHandler

  • All Implemented Interfaces:
    com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler

    public class ExcelExportHandler
    extends java.lang.Object
    implements com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
    Exports selected attributes to excel file.
    • Field Detail

      • PARAM_EXCEL_EXPORT_FORM_MODEL_KEY

        public static final java.lang.String PARAM_EXCEL_EXPORT_FORM_MODEL_KEY
        See Also:
        Constant Field Values
      • PARAM_EXCEL_INCLUDE_CLASSIFICATION

        public static final java.lang.String PARAM_EXCEL_INCLUDE_CLASSIFICATION
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExcelExportHandler

        public ExcelExportHandler()
    • 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> params)
        Specified by:
        perform in interface com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
      • toSelectedAttributes

        protected java.util.List<SelectedAttribute> toSelectedAttributes​(java.lang.String typeCode,
                                                                         java.util.Set<com.hybris.backoffice.attributechooser.Attribute> selectedAttributes)
      • toSelectedAttributes

        protected java.util.List<SelectedAttribute> toSelectedAttributes​(com.hybris.backoffice.attributechooser.Attribute attribute,
                                                                         AttributeDescriptorModel descriptor,
                                                                         java.util.Map<java.lang.String,​java.lang.String> langTagToLanguageIsoCodeCache)
      • toClassificationAttributes

        protected java.util.List<ExcelAttribute> toClassificationAttributes​(java.util.Set<com.hybris.backoffice.attributechooser.Attribute> attributes)
      • extractLeafs

        protected java.util.List<com.hybris.backoffice.attributechooser.Attribute> extractLeafs​(java.util.Set<com.hybris.backoffice.attributechooser.Attribute> attributes)
      • getClassAttributeAssignmentModel

        protected ClassAttributeAssignmentModel getClassAttributeAssignmentModel​(com.hybris.backoffice.attributechooser.Attribute attribute)
      • toClassificationAttribute

        protected ExcelAttribute toClassificationAttribute​(com.hybris.backoffice.attributechooser.Attribute attribute,
                                                           ClassAttributeAssignmentModel descriptor,
                                                           java.util.Map<java.lang.String,​java.lang.String> langTagToLanguageIsoCodeCache)
      • triggerDownloading

        protected void triggerDownloading​(org.apache.poi.ss.usermodel.Workbook template,
                                          java.lang.String filename)
      • getExportAttributesMaxCount

        protected int getExportAttributesMaxCount()
      • getExcelExportForm

        protected ExcelExportWizardForm getExcelExportForm​(com.hybris.cockpitng.engine.WidgetInstanceManager wim,
                                                           java.util.Map<java.lang.String,​java.lang.String> parameters)
      • toIncludeClassification

        protected boolean toIncludeClassification​(java.util.Map<java.lang.String,​java.lang.String> params)
      • getNotificationService

        public com.hybris.backoffice.widgets.notificationarea.NotificationService getNotificationService()
      • setNotificationService

        public void setNotificationService​(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService)
      • setTypeService

        public void setTypeService​(TypeService typeService)
      • setLocalizationService

        public void setLocalizationService​(LocalizationService localizationService)
      • getObjectFacade

        public com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade getObjectFacade()
      • setObjectFacade

        public void setObjectFacade​(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade)
      • setExcelExportPreProcessor

        public void setExcelExportPreProcessor​(ExcelExportPreProcessor excelExportPreProcessor)