Class IntegrationActionContext

java.lang.Object
com.hybris.cockpitng.core.context.impl.DefaultCockpitContext
com.hybris.cockpitng.actions.ActionContext<Object>
de.hybris.platform.integrationbackoffice.widgets.common.actions.IntegrationActionContext
All Implemented Interfaces:
com.hybris.cockpitng.core.context.CockpitContext, Serializable

public class IntegrationActionContext extends com.hybris.cockpitng.actions.ActionContext<Object>
An action context object that extends the default implementation from ActionContext with some helper methods.
See Also:
  • Field Summary

    Fields inherited from class com.hybris.cockpitng.actions.ActionContext

    ACTION_UID, PARENT_WIDGET_MODEL, VIEW_MODE_PARAM, VIEWMODE_HIDDEN, VIEWMODE_ICONANDTEXT, VIEWMODE_ICONONLY, VIEWMODE_TEXTONLY
  • Constructor Summary

    Constructors
    Constructor
    Description
    IntegrationActionContext(com.hybris.cockpitng.actions.ActionContext<Object> context)
    Default constructor that passes up call to super.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the context objects from the data property of the ActionContext object.
    boolean
    Determines if the data property contains an empty collection.

    Methods inherited from class com.hybris.cockpitng.actions.ActionContext

    getCode, getData, getDefinition, getIconDisabledUri, getIconHoverUri, getIconUri, getLabel, getLabel, getName, getTriggerOnKeys, isHidden, isShowIcon, isShowIconAndText, isShowText, setData, setTriggerOnKeys

    Methods inherited from class com.hybris.cockpitng.core.context.impl.DefaultCockpitContext

    addAllParameters, clearParameters, containsParameter, getParameter, getParameterKeys, getParameters, removeParameter, setParameter, setParameters

    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.core.context.CockpitContext

    getParameterAsBoolean, getParameterAsInt
  • Constructor Details

    • IntegrationActionContext

      public IntegrationActionContext(com.hybris.cockpitng.actions.ActionContext<Object> context)
      Default constructor that passes up call to super.
      Parameters:
      context - Context object of action
  • Method Details

    • getContextObjects

      public List<Object> getContextObjects()
      Retrieves the context objects from the data property of the ActionContext object.
      Returns:
      List of object in context
    • isDataNotPresent

      public boolean isDataNotPresent()
      Determines if the data property contains an empty collection.
      Returns:
      If data contains an empty collection.