Class AmetysStep
java.lang.Object
org.ametys.plugins.workflow.store.AmetysStep
- All Implemented Interfaces:
 com.opensymphony.workflow.spi.Step
OSWorkflow step with additional properties.
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionAmetysStep(javax.jcr.Node node, AbstractJackrabbitWorkflowStore store) Build an ametys step. - 
Method Summary
Modifier and TypeMethodDescriptionintlonglonggetId()protected ObjectgetMultiValuedProperty(javax.jcr.Property property) Get a multi-valued property.getOwner()long[]getProperty(String name) Get a custom property value.Get all the custom property names.protected ObjectgetSingleValuedProperty(javax.jcr.Property property) Get a single-valued property.intvoidsave()Save the step.voidsetActionId(int actionId) Set the action ID.voidSet the caller.voidsetDueDate(Date dueDate) Set the step due date.voidsetFinishDate(Date finishDate) Set the step finish date.voidSet the owner.voidsetPreviousStepIds(long[] previousStepIds) Set the previous step IDs.voidsetProperty(String name, Object value) Set a custom property value.voidsetStartDate(Date startDate) Set the step start date.voidSet the status.voidsetStepId(int stepId) Set the step ID.toString() 
- 
Field Details
- 
__CUSTOM_PROP_PREFIX
Custom property prefix.- See Also:
 
 
 - 
 - 
Constructor Details
- 
AmetysStep
Build an ametys step.- Parameters:
 node- the backing JCR node.store- the workflow store.
 
 - 
 - 
Method Details
- 
getId
- Specified by:
 getIdin interfacecom.opensymphony.workflow.spi.Step
 - 
getEntryId
- Specified by:
 getEntryIdin interfacecom.opensymphony.workflow.spi.Step
 - 
getStepId
- Specified by:
 getStepIdin interfacecom.opensymphony.workflow.spi.Step
 - 
setStepId
Set the step ID.- Parameters:
 stepId- the step ID to set.
 - 
getActionId
- Specified by:
 getActionIdin interfacecom.opensymphony.workflow.spi.Step
 - 
setActionId
Set the action ID.- Parameters:
 actionId- the action ID to set.
 - 
getCaller
- Specified by:
 getCallerin interfacecom.opensymphony.workflow.spi.Step
 - 
setCaller
Set the caller.- Parameters:
 caller- the caller to set.
 - 
getStartDate
- Specified by:
 getStartDatein interfacecom.opensymphony.workflow.spi.Step
 - 
setStartDate
Set the step start date.- Parameters:
 startDate- the start date to set.
 - 
getDueDate
- Specified by:
 getDueDatein interfacecom.opensymphony.workflow.spi.Step
 - 
setDueDate
Set the step due date.- Parameters:
 dueDate- the due date to set.
 - 
getFinishDate
- Specified by:
 getFinishDatein interfacecom.opensymphony.workflow.spi.Step
 - 
setFinishDate
Set the step finish date.- Parameters:
 finishDate- the finish date to set.
 - 
getOwner
- Specified by:
 getOwnerin interfacecom.opensymphony.workflow.spi.Step
 - 
setOwner
Set the owner.- Parameters:
 owner- the owner to set.
 - 
getPreviousStepIds
- Specified by:
 getPreviousStepIdsin interfacecom.opensymphony.workflow.spi.Step
 - 
setPreviousStepIds
Set the previous step IDs.- Parameters:
 previousStepIds- the previous step IDs to set.
 - 
getStatus
- Specified by:
 getStatusin interfacecom.opensymphony.workflow.spi.Step
 - 
setStatus
Set the status.- Parameters:
 status- the status to set.
 - 
getProperty
Get a custom property value.- Parameters:
 name- the property name.- Returns:
 - the custom property value.
 
 - 
setProperty
Set a custom property value.- Parameters:
 name- the property name.value- the value to set.
 - 
getPropertyNames
Get all the custom property names.- Returns:
 - the custom property names.
 
 - 
save
Save the step. - 
getSingleValuedProperty
protected Object getSingleValuedProperty(javax.jcr.Property property) throws javax.jcr.RepositoryException Get a single-valued property.- Parameters:
 property- the JCR property.- Returns:
 - the property value.
 - Throws:
 javax.jcr.RepositoryException- if an error occurs.
 - 
getMultiValuedProperty
protected Object getMultiValuedProperty(javax.jcr.Property property) throws javax.jcr.RepositoryException Get a multi-valued property.- Parameters:
 property- the JCR property.- Returns:
 - the property value (as an array).
 - Throws:
 javax.jcr.RepositoryException- if an error occurs.
 - 
toString
 
 -