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
-
Constructor Summary
ConstructorDescriptionAmetysStep
(javax.jcr.Node node, AbstractJackrabbitWorkflowStore store) Build an ametys step. -
Method Summary
Modifier and TypeMethodDescriptionint
long
long
getId()
protected Object
getMultiValuedProperty
(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 Object
getSingleValuedProperty
(javax.jcr.Property property) Get a single-valued property.int
void
save()
Save the step.void
setActionId
(int actionId) Set the action ID.void
Set the caller.void
setDueDate
(Date dueDate) Set the step due date.void
setFinishDate
(Date finishDate) Set the step finish date.void
Set the owner.void
setPreviousStepIds
(long[] previousStepIds) Set the previous step IDs.void
setProperty
(String name, Object value) Set a custom property value.void
setStartDate
(Date startDate) Set the step start date.void
Set the status.void
setStepId
(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:
getId
in interfacecom.opensymphony.workflow.spi.Step
-
getEntryId
- Specified by:
getEntryId
in interfacecom.opensymphony.workflow.spi.Step
-
getStepId
- Specified by:
getStepId
in interfacecom.opensymphony.workflow.spi.Step
-
setStepId
Set the step ID.- Parameters:
stepId
- the step ID to set.
-
getActionId
- Specified by:
getActionId
in interfacecom.opensymphony.workflow.spi.Step
-
setActionId
Set the action ID.- Parameters:
actionId
- the action ID to set.
-
getCaller
- Specified by:
getCaller
in interfacecom.opensymphony.workflow.spi.Step
-
setCaller
Set the caller.- Parameters:
caller
- the caller to set.
-
getStartDate
- Specified by:
getStartDate
in interfacecom.opensymphony.workflow.spi.Step
-
setStartDate
Set the step start date.- Parameters:
startDate
- the start date to set.
-
getDueDate
- Specified by:
getDueDate
in interfacecom.opensymphony.workflow.spi.Step
-
setDueDate
Set the step due date.- Parameters:
dueDate
- the due date to set.
-
getFinishDate
- Specified by:
getFinishDate
in interfacecom.opensymphony.workflow.spi.Step
-
setFinishDate
Set the step finish date.- Parameters:
finishDate
- the finish date to set.
-
getOwner
- Specified by:
getOwner
in interfacecom.opensymphony.workflow.spi.Step
-
setOwner
Set the owner.- Parameters:
owner
- the owner to set.
-
getPreviousStepIds
- Specified by:
getPreviousStepIds
in interfacecom.opensymphony.workflow.spi.Step
-
setPreviousStepIds
Set the previous step IDs.- Parameters:
previousStepIds
- the previous step IDs to set.
-
getStatus
- Specified by:
getStatus
in 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
-