Class CmsWorkflowAction

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.IsSerializable

    public class CmsWorkflowAction
    extends java.lang.Object
    implements com.google.gwt.user.client.rpc.IsSerializable
    Work flow action information.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ACTION_CANCEL
      The cancel workflow action.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CmsWorkflowAction()
      Constructor.
        CmsWorkflowAction​(java.lang.String actionKey, java.lang.String label, boolean isEnabled)
      Constructor.
        CmsWorkflowAction​(java.lang.String actionKey, java.lang.String label, boolean isEnabled, boolean isPublish)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAction()
      Returns the action key.
      java.lang.String getLabel()
      Returns the action label.
      boolean isEnabled()
      Returns if the action is enabled.
      boolean isPublish()
      Check whether this action is a publish action.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmsWorkflowAction

        public CmsWorkflowAction​(java.lang.String actionKey,
                                 java.lang.String label,
                                 boolean isEnabled)
        Constructor.

        Parameters:
        actionKey - the action key
        label - the action label
        isEnabled - true if the action is enabled
      • CmsWorkflowAction

        public CmsWorkflowAction​(java.lang.String actionKey,
                                 java.lang.String label,
                                 boolean isEnabled,
                                 boolean isPublish)
        Constructor.

        Parameters:
        actionKey - the action key
        label - the action label
        isEnabled - true if the action is enabled
        isPublish - a flag to distinguish publish actions from other workflow actions
      • CmsWorkflowAction

        protected CmsWorkflowAction()
        Constructor. For serialization only.

    • Method Detail

      • getAction

        public java.lang.String getAction()
        Returns the action key.

        Returns:
        the action key
      • getLabel

        public java.lang.String getLabel()
        Returns the action label.

        Returns:
        the action label
      • isEnabled

        public boolean isEnabled()
        Returns if the action is enabled.

        Returns:
        true if the action is enabled
      • isPublish

        public boolean isPublish()
        Check whether this action is a publish action.

        Returns:
        true if this is a publish action