com.flexive.shared.workflow
Class Step

java.lang.Object
  extended by com.flexive.shared.workflow.Step
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
StepEdit

public class Step
extends java.lang.Object
implements java.io.Serializable

StepEngine data beans.

Author:
Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Field Summary
protected  long aclId
           
protected  long id
           
protected  long stepDefinitionId
           
protected  long workflowId
           
 
Constructor Summary
protected Step()
          Protected default constructor.
  Step(long id, long stepDefinitionId, long aclId)
          Creates a new workflow step that is not assigned to an existing workflow.
  Step(long id, long stepDefinitionId, long workflowId, long aclId)
          Creates a new workflow step.
  Step(long id, Step step)
          Creates a new workflow step.
  Step(Step step)
          Copy constructor
 
Method Summary
 StepEdit asEditable()
          Returns this step as an editable instance.
 boolean equals(java.lang.Object o)
          Compares two workflow steps by their internal ID.
 long getAclId()
          Returns the id of the ACL assigned to the step.
 long getId()
          Returns the unique id of the step.
 long getStepDefinitionId()
          Returns the unqiue stepDefinition id this step belongs to.
 long getWorkflowId()
          Returns the of the workfow the step belongs to.
 int hashCode()
          
 boolean isEditStep()
          Returns true id the step is the EDIT step.
 boolean isLiveStep()
          Returns true id the step is the LIVE step.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected long id

workflowId

protected long workflowId

stepDefinitionId

protected long stepDefinitionId

aclId

protected long aclId
Constructor Detail

Step

public Step(long id,
            long stepDefinitionId,
            long workflowId,
            long aclId)
Creates a new workflow step.

Parameters:
id - the step ID
stepDefinitionId - the step definition ID
workflowId - the workflow ID
aclId - the ACL ID for the step

Step

public Step(long id,
            long stepDefinitionId,
            long aclId)
Creates a new workflow step that is not assigned to an existing workflow.

Parameters:
id - the step ID
stepDefinitionId - the step definition ID
aclId - the ACL ID for the step

Step

public Step(long id,
            Step step)
Creates a new workflow step.

Parameters:
id - the step ID
step - the step instance to be used for the other fields

Step

public Step(Step step)
Copy constructor

Parameters:
step - source step

Step

protected Step()
Protected default constructor.

Method Detail

asEditable

public StepEdit asEditable()
Returns this step as an editable instance.

Returns:
this step as an editable instance.

equals

public boolean equals(java.lang.Object o)
Compares two workflow steps by their internal ID.

Overrides:
equals in class java.lang.Object
Parameters:
o - the step this object should be compared to
Returns:
true if the steps are equal

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

getStepDefinitionId

public long getStepDefinitionId()
Returns the unqiue stepDefinition id this step belongs to.

Returns:
the unqiue stepDefinition id this step belongs to.

getId

public long getId()
Returns the unique id of the step.

Returns:
the unique id of the step

getWorkflowId

public long getWorkflowId()
Returns the of the workfow the step belongs to.

Returns:
the id of the workfow the step belongs to

getAclId

public long getAclId()
Returns the id of the ACL assigned to the step.

Returns:
the id of the ACL assigned to the step.

isLiveStep

public boolean isLiveStep()
Returns true id the step is the LIVE step.

Returns:
true if the step is the LIVE step.

isEditStep

public boolean isEditStep()
Returns true id the step is the EDIT step.

Returns:
true if the step is the EDIT step.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object