com.flexive.shared.workflow
Class StepEdit

java.lang.Object
  extended by com.flexive.shared.workflow.Step
      extended by com.flexive.shared.workflow.StepEdit
All Implemented Interfaces:
SelectableObject, java.io.Serializable

public class StepEdit
extends Step
implements java.io.Serializable

Editable workflow step.

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

Field Summary
 
Fields inherited from class com.flexive.shared.workflow.Step
aclId, id, stepDefinitionId, workflowId
 
Constructor Summary
StepEdit()
          Default constructor
StepEdit(long stepDefinitionId)
          Ctor for a new step based on a step definition using the default ACL
StepEdit(Step step)
          Constructor from a Step
 
Method Summary
static StepEdit createNew(long stepDefinitionId)
          Convenience method to create new step based on a step definition using the default ACL
 void setAclId(long aclId)
          Sets the ACL ID to be used for this step.
 void setId(long id)
          Sets the ID for this step.
 void setStepDefinitionId(long stepDefinitionId)
          Sets the step definition ID to be used for this step.
 void setWorkflowId(long workflowId)
          Sets the workflow ID for this step.
 
Methods inherited from class com.flexive.shared.workflow.Step
asEditable, equals, getAclId, getId, getStepDefinitionId, getWorkflowId, hashCode, isEditStep, isLiveStep, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StepEdit

public StepEdit(Step step)
Constructor from a Step

Parameters:
step - the source step

StepEdit

public StepEdit()
Default constructor


StepEdit

public StepEdit(long stepDefinitionId)
Ctor for a new step based on a step definition using the default ACL

Parameters:
stepDefinitionId - step definition to use
Method Detail

setAclId

public void setAclId(long aclId)
Sets the ACL ID to be used for this step.

Parameters:
aclId - the ACL ID to be used for this step.

setId

public void setId(long id)
Sets the ID for this step.

Parameters:
id - the ID for this step.

setStepDefinitionId

public void setStepDefinitionId(long stepDefinitionId)
Sets the step definition ID to be used for this step.

Parameters:
stepDefinitionId - the step definition ID to be used for this step.

setWorkflowId

public void setWorkflowId(long workflowId)
Sets the workflow ID for this step.

Parameters:
workflowId - the workflow ID for this step.

createNew

public static StepEdit createNew(long stepDefinitionId)
Convenience method to create new step based on a step definition using the default ACL

Parameters:
stepDefinitionId - step definition to use
Returns:
StepEdit