org.opencms.ade.publish.shared
Class CmsWorkflow

java.lang.Object
  extended by org.opencms.ade.publish.shared.CmsWorkflow
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsWorkflow
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

A bean which represents a possible workflow, containing an identifier, a user-readable name and a list of workflow actions.


Constructor Summary
protected CmsWorkflow()
          Constructor.
  CmsWorkflow(java.lang.String id, java.lang.String niceName, java.util.List<CmsWorkflowAction> actions)
          Creates a new workflow bean instance.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<CmsWorkflowAction> getActions()
          Returns the list of actions which are possible in this workflow.
 java.lang.String getId()
          Gets the workflow identifier.
 java.lang.String getNiceName()
          Gets the user-readable nice name for the workflow.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsWorkflow

public CmsWorkflow(java.lang.String id,
                   java.lang.String niceName,
                   java.util.List<CmsWorkflowAction> actions)
Creates a new workflow bean instance.

Parameters:
id - the identifier for the workflow type
niceName - the nice name for the workflow which is displayed to the user
actions - the actions which are possible in this workflow

CmsWorkflow

protected CmsWorkflow()
Constructor. For serialization only.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

getActions

public java.util.List<CmsWorkflowAction> getActions()
Returns the list of actions which are possible in this workflow.

Returns:
the actions possible in this workflow

getId

public java.lang.String getId()
Gets the workflow identifier.

Returns:
the workflow identifier

getNiceName

public java.lang.String getNiceName()
Gets the user-readable nice name for the workflow.

Returns:
the nice name for the workflow

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()