public class AmetysStep extends Object implements com.opensymphony.workflow.spi.Step
| Modifier and Type | Field and Description | 
|---|---|
protected static String | 
__CUSTOM_PROP_PREFIX
Custom property prefix. 
 | 
private Node | 
_node  | 
private AbstractJackrabbitWorkflowStore | 
_store  | 
| Constructor and Description | 
|---|
AmetysStep(Node node,
          AbstractJackrabbitWorkflowStore store)
Build an ametys step. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getActionId()  | 
String | 
getCaller()  | 
Date | 
getDueDate()  | 
long | 
getEntryId()  | 
Date | 
getFinishDate()  | 
long | 
getId()  | 
protected Object | 
getMultiValuedProperty(Property property)
Get a multi-valued property. 
 | 
(package private) Node | 
getNode()
Get the backing JCR node. 
 | 
String | 
getOwner()  | 
long[] | 
getPreviousStepIds()  | 
Object | 
getProperty(String name)
Get a custom property value. 
 | 
Set<String> | 
getPropertyNames()
Get all the custom property names. 
 | 
protected Object | 
getSingleValuedProperty(Property property)
Get a single-valued property. 
 | 
Date | 
getStartDate()  | 
String | 
getStatus()  | 
int | 
getStepId()  | 
void | 
save()
Save the step. 
 | 
void | 
setActionId(int actionId)
Set the action ID. 
 | 
void | 
setCaller(String caller)
Set the caller. 
 | 
void | 
setDueDate(Date dueDate)
Set the step due date. 
 | 
void | 
setFinishDate(Date finishDate)
Set the step finish date. 
 | 
void | 
setOwner(String owner)
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 | 
setStatus(String status)
Set the status. 
 | 
void | 
setStepId(int stepId)
Set the step ID. 
 | 
String | 
toString()  | 
protected static final String __CUSTOM_PROP_PREFIX
private AbstractJackrabbitWorkflowStore _store
public AmetysStep(Node node, AbstractJackrabbitWorkflowStore store)
node - the backing JCR node.store - the workflow store.public long getId()
getId in interface com.opensymphony.workflow.spi.Steppublic long getEntryId()
getEntryId in interface com.opensymphony.workflow.spi.Steppublic int getStepId()
getStepId in interface com.opensymphony.workflow.spi.Steppublic void setStepId(int stepId)
stepId - the step ID to set.public int getActionId()
getActionId in interface com.opensymphony.workflow.spi.Steppublic void setActionId(int actionId)
actionId - the action ID to set.public String getCaller()
getCaller in interface com.opensymphony.workflow.spi.Steppublic void setCaller(String caller)
caller - the caller to set.public Date getStartDate()
getStartDate in interface com.opensymphony.workflow.spi.Steppublic void setStartDate(Date startDate)
startDate - the start date to set.public Date getDueDate()
getDueDate in interface com.opensymphony.workflow.spi.Steppublic void setDueDate(Date dueDate)
dueDate - the due date to set.public Date getFinishDate()
getFinishDate in interface com.opensymphony.workflow.spi.Steppublic void setFinishDate(Date finishDate)
finishDate - the finish date to set.public String getOwner()
getOwner in interface com.opensymphony.workflow.spi.Steppublic long[] getPreviousStepIds()
getPreviousStepIds in interface com.opensymphony.workflow.spi.Steppublic void setPreviousStepIds(long[] previousStepIds)
previousStepIds - the previous step IDs to set.public String getStatus()
getStatus in interface com.opensymphony.workflow.spi.Steppublic void setStatus(String status)
status - the status to set.public Object getProperty(String name)
name - the property name.public void setProperty(String name, Object value)
name - the property name.value - the value to set.public Set<String> getPropertyNames()
public void save()
protected Object getSingleValuedProperty(Property property) throws RepositoryException
property - the JCR property.RepositoryException - if an error occurs.protected Object getMultiValuedProperty(Property property) throws RepositoryException
property - the JCR property.RepositoryException - if an error occurs.