Class BulkEditAttributesSelectorRenderer

java.lang.Object
com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.config.jaxb.wizard.ViewType,Map<String,String>>
com.hybris.cockpitng.widgets.configurableflow.renderer.DefaultCustomViewRenderer
com.hybris.backoffice.bulkedit.renderer.BulkEditAttributesSelectorRenderer
All Implemented Interfaces:
com.hybris.cockpitng.widgets.common.NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.config.jaxb.wizard.ViewType,Map<String,String>>, com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.config.jaxb.wizard.ViewType,Map<String,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
  • Field Details

  • Constructor Details

    • BulkEditAttributesSelectorRenderer

      public BulkEditAttributesSelectorRenderer()
  • Method Details

    • render

      public void render(org.zkoss.zk.ui.Component component, com.hybris.cockpitng.config.jaxb.wizard.ViewType viewType, Map<String,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,Map<String,String>>
      Specified by:
      render in class com.hybris.cockpitng.widgets.configurableflow.renderer.DefaultCustomViewRenderer
    • populateSelectableAttributes

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

      protected Set<String> getEditedTypes(BulkEditForm bulkEditForm)
    • canChangeProperty

      protected boolean canChangeProperty(Set<String> types, 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, Map<String,String> params)
    • extractExcludedQualifiers

      protected Set<String> extractExcludedQualifiers(Map<String,String> params)
    • getAttributesChooserConfig

      protected com.hybris.backoffice.attributechooser.AttributesChooserConfig getAttributesChooserConfig(Map<String,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)
    • getTypeService

      public TypeService getTypeService()
    • setTypeService

      public void setTypeService(TypeService typeService)