public class JCRWorkflowProcess extends DefaultTraversableAmetysObject<JCRWorkflowProcessFactory> implements WorkflowProcess, WorkflowAwareAmetysObject
| Modifier and Type | Field and Description | 
|---|---|
private static String | 
ATTACHMENTS_NODE_NAME  | 
static String | 
METADATA_CURRENT_STEP_ID
Constants for currentStepId Metadata* 
 | 
static String | 
METADATA_WORKFLOW_ID
Constants for workflowId Metadata* 
 | 
private static String | 
NODE_NAME_CREATOR  | 
private static String | 
PROPERTY_CREATION_DATE  | 
private static String | 
PROPERTY_DESCRIPTION  | 
private static String | 
PROPERTY_SITE  | 
private static String | 
PROPERTY_TITLE  | 
private static String | 
PROPERTY_WORKFLOW  | 
| Constructor and Description | 
|---|
JCRWorkflowProcess(Node node,
                  String parentPath,
                  JCRWorkflowProcessFactory factory)
Creates an  
JCRWorkflowProcess. | 
| Modifier and Type | Method and Description | 
|---|---|
Date | 
getCreationDate()
Get the creation date of the process 
 | 
UserIdentity | 
getCreator()
Get the creator of the process 
 | 
long | 
getCurrentStepId()
Retrieves the current step id of the Ametys object 
 | 
String | 
getDescription()
Get the process description 
 | 
ResourceCollection | 
getRootAttachments(boolean create)
Retrieves the attachments root node 
 | 
String | 
getSite()
Get the site where the process was created 
 | 
String | 
getTitle()
Get the process title 
 | 
String | 
getWorkflow()
Get the workflow linked to this process 
 | 
long | 
getWorkflowId()
Retrieves the workflow id associated with the Ametys object. 
 | 
void | 
setCreationDate(Date creationDate)
Set the creation date of the process 
 | 
void | 
setCreator(UserIdentity creator)
Set the creator of the process 
 | 
void | 
setCurrentStepId(long stepId)
Set the current step id of the Ametys object 
 | 
void | 
setDescription(String description)
Set the process description 
 | 
void | 
setSite(String site)
Set the site where the process was created 
 | 
void | 
setTitle(String title)
Set the process title 
 | 
void | 
setWorkflow(String workflowId)
Set the workflow linked to this process 
 | 
void | 
setWorkflowId(long workflowId)
Set the workflow id of this Ametys object. 
This method will throw Exception if the workflow id was already set on this Ametys object.  | 
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getChild, getChildren, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, hasChild, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChangesequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNodegetMetadataHolderneedsSave, rename, revertChanges, saveChangesequals, getId, getName, getParent, getParentPath, getPath, hashCoderemovegetChildAt, getChildPositionpublic static final String METADATA_WORKFLOW_ID
public static final String METADATA_CURRENT_STEP_ID
private static final String PROPERTY_DESCRIPTION
private static final String PROPERTY_TITLE
private static final String PROPERTY_WORKFLOW
private static final String PROPERTY_SITE
private static final String PROPERTY_CREATION_DATE
private static final String NODE_NAME_CREATOR
private static final String ATTACHMENTS_NODE_NAME
public JCRWorkflowProcess(Node node, String parentPath, JCRWorkflowProcessFactory factory)
JCRWorkflowProcess.node - the node backing this AmetysObjectparentPath - the parentPath in the Ametys hierarchyfactory - the JCRWorkflowProcessFactory which created the AmetysObjectpublic String getTitle() throws AmetysRepositoryException
WorkflowProcessgetTitle in interface WorkflowProcessAmetysRepositoryException - If a repository error occurredpublic void setTitle(String title)
WorkflowProcesssetTitle in interface WorkflowProcesstitle - The titlepublic String getWorkflow() throws AmetysRepositoryException
WorkflowProcessgetWorkflow in interface WorkflowProcessAmetysRepositoryException - If a repository error occurredpublic void setWorkflow(String workflowId)
WorkflowProcesssetWorkflow in interface WorkflowProcessworkflowId - The workflow idpublic String getDescription() throws AmetysRepositoryException
WorkflowProcessgetDescription in interface WorkflowProcessAmetysRepositoryException - If a repository error occurredpublic void setDescription(String description)
WorkflowProcesssetDescription in interface WorkflowProcessdescription - The descriptionpublic UserIdentity getCreator() throws AmetysRepositoryException
WorkflowProcessgetCreator in interface WorkflowProcessAmetysRepositoryException - If a repository error occurredpublic void setCreator(UserIdentity creator)
WorkflowProcesssetCreator in interface WorkflowProcesscreator - The creatorpublic String getSite() throws AmetysRepositoryException
WorkflowProcessgetSite in interface WorkflowProcessAmetysRepositoryException - If a repository error occurredpublic void setSite(String site)
WorkflowProcesssetSite in interface WorkflowProcesssite - The sitepublic Date getCreationDate() throws AmetysRepositoryException
WorkflowProcessgetCreationDate in interface WorkflowProcessAmetysRepositoryException - If a repository error occurredpublic void setCreationDate(Date creationDate)
WorkflowProcesssetCreationDate in interface WorkflowProcesscreationDate - The creation datepublic ResourceCollection getRootAttachments(boolean create) throws AmetysRepositoryException
WorkflowProcessgetRootAttachments in interface WorkflowProcesscreate - True to create the node if it does not existAmetysRepositoryException - if an error occurs.public long getWorkflowId() throws AmetysRepositoryException
WorkflowAwareAmetysObjectgetWorkflowId in interface WorkflowAwareAmetysObjectAmetysRepositoryException - if an error occurs.public void setWorkflowId(long workflowId) throws AmetysRepositoryException
WorkflowAwareAmetysObjectsetWorkflowId in interface WorkflowAwareAmetysObjectworkflowId - the workflow id of the object.AmetysRepositoryException - if an error occurs.public long getCurrentStepId() throws AmetysRepositoryException
WorkflowAwareAmetysObjectgetCurrentStepId in interface WorkflowAwareAmetysObjectAmetysRepositoryException - if an error occurs.public void setCurrentStepId(long stepId) throws AmetysRepositoryException
WorkflowAwareAmetysObjectsetCurrentStepId in interface WorkflowAwareAmetysObjectstepId - the step id to setAmetysRepositoryException - if an error occurs.