org.opencms.ade.publish.shared
Class CmsWorkflowAction

java.lang.Object
  extended by 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
static java.lang.String ACTION_CANCEL
          The cancel workflow action.
 
Constructor Summary
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
 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
 

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 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