public class JCRWorkflow extends DefaultTraversableAmetysObject<JCRWorkflowFactory> implements Workflow
| Modifier and Type | Field and Description |
|---|---|
private static String |
NODE_NAME_ALLOWED_GROUP |
private static String |
NODE_NAME_ALLOWED_GROUPS |
private static String |
NODE_NAME_ALLOWED_USER |
private static String |
NODE_NAME_ALLOWED_USERS |
private static String |
NODE_NAME_ATTACHMENTS |
private static String |
NODE_NAME_OWNER |
private static String |
NODE_NAME_WORKFLOW_VARIABLES |
private static String |
PROPERTY_DESCRIPTION |
private static String |
PROPERTY_TITLE |
private static String |
PROPERTY_WORKFLOW_DEFINITION |
| Constructor and Description |
|---|
JCRWorkflow(Node node,
String parentPath,
JCRWorkflowFactory factory)
Creates an
JCRWorkflow. |
| Modifier and Type | Method and Description |
|---|---|
GroupIdentity[] |
getAllowedGroups()
Get the list of groups allowed to create a process from this workflow
|
UserIdentity[] |
getAllowedUsers()
Get the list of users allowed to create a process from this workflow
|
String |
getDescription()
Get the workflow description
|
UserIdentity |
getOwner()
Get the owner of the workflow
|
ResourceCollection |
getRootAttachments()
Retrieves the attachments root node
|
String |
getTitle()
Get the workflow title
|
Object |
getVariable(String variableName)
Get the value of a variable of the workflow
|
String |
getWorkflowDefinition()
Get the workflow definition linked to this workflow
|
void |
setAllowedGroups(GroupIdentity[] allowedGroups)
Set the list of groups allowed to create a process from this workflow
|
void |
setAllowedUsers(UserIdentity[] allowedUsers)
Set the list of users allowed to create a process from this workflow
|
void |
setDescription(String description)
Set the workflow description
|
void |
setOwner(UserIdentity owner)
Set the owner of the workflow
|
void |
setTitle(String title)
Set the workflow title
|
void |
setVariable(String variableName,
Object value)
Set the value of a variable of the workflow
|
void |
setWorkflowDefinition(String workflowDefId)
Set the workflow definition linked to this workflow
|
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, getChildPositionprivate static final String PROPERTY_DESCRIPTION
private static final String PROPERTY_TITLE
private static final String NODE_NAME_OWNER
private static final String PROPERTY_WORKFLOW_DEFINITION
private static final String NODE_NAME_ALLOWED_USERS
private static final String NODE_NAME_ALLOWED_USER
private static final String NODE_NAME_ALLOWED_GROUPS
private static final String NODE_NAME_ALLOWED_GROUP
private static final String NODE_NAME_WORKFLOW_VARIABLES
private static final String NODE_NAME_ATTACHMENTS
public JCRWorkflow(Node node, String parentPath, JCRWorkflowFactory factory)
JCRWorkflow.node - the node backing this AmetysObjectparentPath - the parentPath in the Ametys hierarchyfactory - the JCRWorkflowFactory which created the AmetysObjectpublic String getTitle() throws AmetysRepositoryException
WorkflowgetTitle in interface WorkflowAmetysRepositoryException - If a repository error occurredpublic void setTitle(String title)
Workflowpublic String getWorkflowDefinition() throws AmetysRepositoryException
WorkflowgetWorkflowDefinition in interface WorkflowAmetysRepositoryException - If a repository error occurredpublic void setWorkflowDefinition(String workflowDefId)
WorkflowsetWorkflowDefinition in interface WorkflowworkflowDefId - The workflow definition idpublic String getDescription() throws AmetysRepositoryException
WorkflowgetDescription in interface WorkflowAmetysRepositoryException - If a repository error occurredpublic void setDescription(String description)
WorkflowsetDescription in interface Workflowdescription - The descriptionpublic Object getVariable(String variableName) throws AmetysRepositoryException
WorkflowgetVariable in interface WorkflowvariableName - The name of the variable to retrieveAmetysRepositoryException - If a repository error occurredpublic void setVariable(String variableName, Object value)
WorkflowsetVariable in interface WorkflowvariableName - The name of the variable to setvalue - The value to setpublic UserIdentity getOwner() throws AmetysRepositoryException
WorkflowgetOwner in interface WorkflowAmetysRepositoryException - If a repository error occurredpublic void setOwner(UserIdentity owner)
Workflowpublic UserIdentity[] getAllowedUsers() throws AmetysRepositoryException
WorkflowgetAllowedUsers in interface WorkflowAmetysRepositoryException - If a repository error occurredpublic void setAllowedUsers(UserIdentity[] allowedUsers)
WorkflowsetAllowedUsers in interface WorkflowallowedUsers - The list of allowed userspublic GroupIdentity[] getAllowedGroups() throws AmetysRepositoryException
WorkflowgetAllowedGroups in interface WorkflowAmetysRepositoryException - If a repository error occurredpublic void setAllowedGroups(GroupIdentity[] allowedGroups)
WorkflowsetAllowedGroups in interface WorkflowallowedGroups - The list of allowed groupspublic ResourceCollection getRootAttachments() throws AmetysRepositoryException
WorkflowgetRootAttachments in interface WorkflowAmetysRepositoryException - if an error occurs.