Class BulkEditAttributesSelectorRenderer

  • All Implemented Interfaces:
    com.hybris.cockpitng.widgets.common.NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.cockpitng.config.jaxb.wizard.ViewType,​java.util.Map<java.lang.String,​java.lang.String>>, com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.cockpitng.config.jaxb.wizard.ViewType,​java.util.Map<java.lang.String,​java.lang.String>>

    public class BulkEditAttributesSelectorRenderer
    extends com.hybris.cockpitng.widgets.configurableflow.renderer.DefaultCustomViewRenderer
    Renderers attributes selector for bulk edit. Params:
    • "bulkEditFormModelKey" - path to bulk edit for BulkEditForm in widget model - required
    • excludedQualifiers - comma separated list of qualifiers which should not be shown to the user
    • includeAllSupported - defines if include all attributes switch is available
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canBeAppliedForManyItems​(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute attribute)  
      protected boolean canChangeProperty​(java.util.Set<java.lang.String> types, java.lang.String property)  
      protected java.util.Set<java.lang.String> extractExcludedQualifiers​(java.util.Map<java.lang.String,​java.lang.String> params)  
      com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.backoffice.attributechooser.AttributesChooserConfig,​com.hybris.backoffice.attributechooser.AttributeChooserForm> getAttributeChooserRenderer()  
      protected com.hybris.backoffice.attributechooser.AttributesChooserConfig getAttributesChooserConfig​(java.util.Map<java.lang.String,​java.lang.String> params)  
      protected BulkEditForm getBulkEditForm​(com.hybris.cockpitng.engine.WidgetInstanceManager wim, java.util.Map<java.lang.String,​java.lang.String> params)  
      protected java.util.Set<java.lang.String> getEditedTypes​(BulkEditForm bulkEditForm)  
      com.hybris.cockpitng.i18n.CockpitLocaleService getLocaleService()  
      com.hybris.backoffice.widgets.notificationarea.NotificationService getNotificationService()  
      com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade getPermissionFacade()  
      com.hybris.cockpitng.dataaccess.facades.type.TypeFacade getTypeFacade()  
      TypeService getTypeService()  
      protected boolean isEditable​(com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)  
      protected boolean isManyToOneRelation​(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute attribute)  
      protected java.util.Set<com.hybris.backoffice.attributechooser.Attribute> populateSelectableAttributes​(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, java.util.Set<java.lang.String> editedTypes, java.util.Set<java.lang.String> excludedQualifiers)  
      void render​(org.zkoss.zk.ui.Component component, com.hybris.cockpitng.config.jaxb.wizard.ViewType viewType, java.util.Map<java.lang.String,​java.lang.String> params, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager wim)  
      void setAttributeChooserRenderer​(com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.backoffice.attributechooser.AttributesChooserConfig,​com.hybris.backoffice.attributechooser.AttributeChooserForm> attributeChooserRenderer)  
      void setLocaleService​(com.hybris.cockpitng.i18n.CockpitLocaleService localeService)  
      void setNotificationService​(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService)  
      void setPermissionFacade​(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade)  
      void setTypeFacade​(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)  
      void setTypeService​(TypeService typeService)  
      • Methods inherited from class com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer

        addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer

        render
    • Field Detail

      • PARAM_EXCLUDED_QUALIFIERS

        public static final java.lang.String PARAM_EXCLUDED_QUALIFIERS
        See Also:
        Constant Field Values
      • PARAM_BULK_EDIT_FORM_MODEL_KEY

        public static final java.lang.String PARAM_BULK_EDIT_FORM_MODEL_KEY
        See Also:
        Constant Field Values
      • PARAM_INCLUDE_ALL_SUPPORTED

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

      • BulkEditAttributesSelectorRenderer

        public BulkEditAttributesSelectorRenderer()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.Component component,
                           com.hybris.cockpitng.config.jaxb.wizard.ViewType viewType,
                           java.util.Map<java.lang.String,​java.lang.String> params,
                           com.hybris.cockpitng.dataaccess.facades.type.DataType dataType,
                           com.hybris.cockpitng.engine.WidgetInstanceManager wim)
        Specified by:
        render in interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.cockpitng.config.jaxb.wizard.ViewType,​java.util.Map<java.lang.String,​java.lang.String>>
        Specified by:
        render in class com.hybris.cockpitng.widgets.configurableflow.renderer.DefaultCustomViewRenderer
      • populateSelectableAttributes

        protected java.util.Set<com.hybris.backoffice.attributechooser.Attribute> populateSelectableAttributes​(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType,
                                                                                                               java.util.Set<java.lang.String> editedTypes,
                                                                                                               java.util.Set<java.lang.String> excludedQualifiers)
      • getEditedTypes

        protected java.util.Set<java.lang.String> getEditedTypes​(BulkEditForm bulkEditForm)
      • canChangeProperty

        protected boolean canChangeProperty​(java.util.Set<java.lang.String> types,
                                            java.lang.String property)
      • isEditable

        protected boolean isEditable​(com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)
      • canBeAppliedForManyItems

        protected boolean canBeAppliedForManyItems​(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType,
                                                   com.hybris.cockpitng.dataaccess.facades.type.DataAttribute attribute)
      • isManyToOneRelation

        protected boolean isManyToOneRelation​(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType,
                                              com.hybris.cockpitng.dataaccess.facades.type.DataAttribute attribute)
      • getBulkEditForm

        protected BulkEditForm getBulkEditForm​(com.hybris.cockpitng.engine.WidgetInstanceManager wim,
                                               java.util.Map<java.lang.String,​java.lang.String> params)
      • extractExcludedQualifiers

        protected java.util.Set<java.lang.String> extractExcludedQualifiers​(java.util.Map<java.lang.String,​java.lang.String> params)
      • getAttributesChooserConfig

        protected com.hybris.backoffice.attributechooser.AttributesChooserConfig getAttributesChooserConfig​(java.util.Map<java.lang.String,​java.lang.String> params)
      • getAttributeChooserRenderer

        public com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.backoffice.attributechooser.AttributesChooserConfig,​com.hybris.backoffice.attributechooser.AttributeChooserForm> getAttributeChooserRenderer()
      • setAttributeChooserRenderer

        public void setAttributeChooserRenderer​(com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.backoffice.attributechooser.AttributesChooserConfig,​com.hybris.backoffice.attributechooser.AttributeChooserForm> attributeChooserRenderer)
      • getLocaleService

        public com.hybris.cockpitng.i18n.CockpitLocaleService getLocaleService()
      • setLocaleService

        public void setLocaleService​(com.hybris.cockpitng.i18n.CockpitLocaleService localeService)
      • getPermissionFacade

        public com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade getPermissionFacade()
      • setPermissionFacade

        public void setPermissionFacade​(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade)
      • getTypeFacade

        public com.hybris.cockpitng.dataaccess.facades.type.TypeFacade getTypeFacade()
      • setTypeFacade

        public void setTypeFacade​(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)
      • 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)