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, 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
private 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 AmetysObject
parentPath
- the parentPath in the Ametys hierarchyfactory
- the JCRWorkflowFactory which created the AmetysObjectpublic String getTitle() throws AmetysRepositoryException
Workflow
getTitle
in interface Workflow
AmetysRepositoryException
- If a repository error occurredpublic void setTitle(String title)
Workflow
public String getWorkflowDefinition() throws AmetysRepositoryException
Workflow
getWorkflowDefinition
in interface Workflow
AmetysRepositoryException
- If a repository error occurredpublic void setWorkflowDefinition(String workflowDefId)
Workflow
setWorkflowDefinition
in interface Workflow
workflowDefId
- The workflow definition idpublic String getDescription() throws AmetysRepositoryException
Workflow
getDescription
in interface Workflow
AmetysRepositoryException
- If a repository error occurredpublic void setDescription(String description)
Workflow
setDescription
in interface Workflow
description
- The descriptionpublic Object getVariable(String variableName) throws AmetysRepositoryException
Workflow
getVariable
in interface Workflow
variableName
- The name of the variable to retrieveAmetysRepositoryException
- If a repository error occurredpublic void setVariable(String variableName, Object value)
Workflow
setVariable
in interface Workflow
variableName
- The name of the variable to setvalue
- The value to setpublic UserIdentity getOwner() throws AmetysRepositoryException
Workflow
getOwner
in interface Workflow
AmetysRepositoryException
- If a repository error occurredpublic void setOwner(UserIdentity owner)
Workflow
public UserIdentity[] getAllowedUsers() throws AmetysRepositoryException
Workflow
getAllowedUsers
in interface Workflow
AmetysRepositoryException
- If a repository error occurredpublic void setAllowedUsers(UserIdentity[] allowedUsers)
Workflow
setAllowedUsers
in interface Workflow
allowedUsers
- The list of allowed userspublic GroupIdentity[] getAllowedGroups() throws AmetysRepositoryException
Workflow
getAllowedGroups
in interface Workflow
AmetysRepositoryException
- If a repository error occurredpublic void setAllowedGroups(GroupIdentity[] allowedGroups)
Workflow
setAllowedGroups
in interface Workflow
allowedGroups
- The list of allowed groupspublic ResourceCollection getRootAttachments() throws AmetysRepositoryException
Workflow
getRootAttachments
in interface Workflow
AmetysRepositoryException
- if an error occurs.