Class EnumerationAction

  • All Implemented Interfaces:
    com.hybris.cockpitng.actions.CockpitAction<java.util.Collection<java.lang.Object>,​java.lang.Object>, com.hybris.cockpitng.engine.ComponentWidgetAdapterAware

    public class EnumerationAction
    extends com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
    implements com.hybris.cockpitng.actions.CockpitAction<java.util.Collection<java.lang.Object>,​java.lang.Object>
    EnumerationAction is a generic class which allows to update a list of selected items with chosen enumeration value. Enumeration action accepts 2 parameters through configuration:
    • "qualifier" - is a required parameter. The type of the items is inferred from the input data and next, the type of the given qualifier is retrieved. For example, configuration for Product type can be provided as follows: <y:parameter> <y:name>qualifier</y:name> <y:value>approvalStatus</y:value> </y:parameter>
      "validatorId" - is an optional parameter. You can provide id of validator's bean which allows to check whether the given data can be updated with chosen enumeration value. For example: <y:parameter> <y:name>validatorId</y:name> <y:value>someBeanId</y:value> </y:parameter>