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, saveChanges
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getNode
getMetadataHolder
needsSave, rename, revertChanges, saveChanges
equals, getId, getName, getParent, getParentPath, getPath, hashCode
remove
getChildAt, getChildPosition
public 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 AmetysObject
parentPath
- the parentPath in the Ametys hierarchyfactory
- the JCRWorkflowProcessFactory which created the AmetysObjectpublic String getTitle() throws AmetysRepositoryException
WorkflowProcess
getTitle
in interface WorkflowProcess
AmetysRepositoryException
- If a repository error occurredpublic void setTitle(String title)
WorkflowProcess
setTitle
in interface WorkflowProcess
title
- The titlepublic String getWorkflow() throws AmetysRepositoryException
WorkflowProcess
getWorkflow
in interface WorkflowProcess
AmetysRepositoryException
- If a repository error occurredpublic void setWorkflow(String workflowId)
WorkflowProcess
setWorkflow
in interface WorkflowProcess
workflowId
- The workflow idpublic String getDescription() throws AmetysRepositoryException
WorkflowProcess
getDescription
in interface WorkflowProcess
AmetysRepositoryException
- If a repository error occurredpublic void setDescription(String description)
WorkflowProcess
setDescription
in interface WorkflowProcess
description
- The descriptionpublic UserIdentity getCreator() throws AmetysRepositoryException
WorkflowProcess
getCreator
in interface WorkflowProcess
AmetysRepositoryException
- If a repository error occurredpublic void setCreator(UserIdentity creator)
WorkflowProcess
setCreator
in interface WorkflowProcess
creator
- The creatorpublic String getSite() throws AmetysRepositoryException
WorkflowProcess
getSite
in interface WorkflowProcess
AmetysRepositoryException
- If a repository error occurredpublic void setSite(String site)
WorkflowProcess
setSite
in interface WorkflowProcess
site
- The sitepublic Date getCreationDate() throws AmetysRepositoryException
WorkflowProcess
getCreationDate
in interface WorkflowProcess
AmetysRepositoryException
- If a repository error occurredpublic void setCreationDate(Date creationDate)
WorkflowProcess
setCreationDate
in interface WorkflowProcess
creationDate
- The creation datepublic ResourceCollection getRootAttachments(boolean create) throws AmetysRepositoryException
WorkflowProcess
getRootAttachments
in interface WorkflowProcess
create
- True to create the node if it does not existAmetysRepositoryException
- if an error occurs.public long getWorkflowId() throws AmetysRepositoryException
WorkflowAwareAmetysObject
getWorkflowId
in interface WorkflowAwareAmetysObject
AmetysRepositoryException
- if an error occurs.public void setWorkflowId(long workflowId) throws AmetysRepositoryException
WorkflowAwareAmetysObject
setWorkflowId
in interface WorkflowAwareAmetysObject
workflowId
- the workflow id of the object.AmetysRepositoryException
- if an error occurs.public long getCurrentStepId() throws AmetysRepositoryException
WorkflowAwareAmetysObject
getCurrentStepId
in interface WorkflowAwareAmetysObject
AmetysRepositoryException
- if an error occurs.public void setCurrentStepId(long stepId) throws AmetysRepositoryException
WorkflowAwareAmetysObject
setCurrentStepId
in interface WorkflowAwareAmetysObject
stepId
- the step id to setAmetysRepositoryException
- if an error occurs.