Class BulkEditAttributesSelectorRenderer
- java.lang.Object
-
- com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer<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.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,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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PARAM_BULK_EDIT_FORM_MODEL_KEY
static java.lang.String
PARAM_EXCLUDED_QUALIFIERS
static java.lang.String
PARAM_INCLUDE_ALL_SUPPORTED
-
Constructor Summary
Constructors Constructor Description BulkEditAttributesSelectorRenderer()
-
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
-
-
-
-
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
-
-
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 interfacecom.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 classcom.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)
-
getTypeService
public TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
-