Package org.opencms.ade.publish.shared
Class CmsWorkflowAction
- java.lang.Object
-
- org.opencms.ade.publish.shared.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.
-
-
-
Field Detail
-
ACTION_CANCEL
public static final java.lang.String ACTION_CANCEL
The cancel workflow action.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsWorkflowAction
public CmsWorkflowAction(java.lang.String actionKey, java.lang.String label, boolean isEnabled)
Constructor.- Parameters:
actionKey
- the action keylabel
- the action labelisEnabled
-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 keylabel
- the action labelisEnabled
-true
if the action is enabledisPublish
- 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
-
-