public interface ApprovalService
StateService
Modifier and Type | Method and Description |
---|---|
Approval |
approve(com.atlassian.confluence.core.ContentEntityObject content,
String name,
String userName,
String password,
String comment)
Approves the content.
|
void |
assign(com.atlassian.confluence.core.ContentEntityObject content,
String name,
Assignee assignee,
String comment)
Assigns the named approval on the given content
|
void |
assign(com.atlassian.confluence.core.ContentEntityObject content,
String name,
String assignee,
String comment)
Deprecated.
|
Iterator<ContentTask> |
getAssigned(Set<String> spaceKeys,
String userName)
Deprecated.
This method will be removed in upcoming versions.
We encourage developers to use CQL based searches for retrieving lists of content. Either by using the Confluence CQLSearchService interface or the CQL Search REST API. You can found the list of available CQL mappings for Comala Workflows in our documentation wiki. |
Rejection |
reject(com.atlassian.confluence.core.ContentEntityObject content,
String name,
String userName,
String password,
String comment)
Rejects the content
|
void |
unassign(com.atlassian.confluence.core.ContentEntityObject content,
String name,
String assignee,
String comment)
Unassigns the named approval on the given content
|
Approval approve(com.atlassian.confluence.core.ContentEntityObject content, String name, String userName, String password, String comment) throws WorkflowException
content
- the content objectname
- the name of the approval. It must be valid for the current StateuserName
- the name of the user approvingpassword
- required if the approval requires user+password signaturecomment
- a comment to be recorded with the approval @return the Approval recordWorkflowException
Rejection reject(com.atlassian.confluence.core.ContentEntityObject content, String name, String userName, String password, String comment) throws WorkflowException
content
- the content objectname
- the name of the rejection. It must be valid for the current StateuserName
- the name of the user rejectingpassword
- required if the approval requires user+password signaturecomment
- a comment to be recorded with the rejectionWorkflowException
@Deprecated void assign(com.atlassian.confluence.core.ContentEntityObject content, String name, String assignee, String comment) throws WorkflowException
content
- the content objectname
- the name of the approval. It must be valid for the current Stateassignee
- the assignee namecomment
- a comment to be send with the assignmentWorkflowException
void assign(com.atlassian.confluence.core.ContentEntityObject content, String name, Assignee assignee, String comment) throws WorkflowException
content
- the content objectname
- the name of the approval. It must be valid for the current Stateassignee
- the assignee datacomment
- a comment to be send with the assignmentWorkflowException
void unassign(com.atlassian.confluence.core.ContentEntityObject content, String name, String assignee, String comment) throws WorkflowException
content
- the content objectname
- the name of the approval. It must be valid for the current Stateassignee
- the name of the assigneeWorkflowException
Iterator<ContentTask> getAssigned(Set<String> spaceKeys, String userName)
spaceKeys
- a comma separated list of space keysuserName
- the user's nameCopyright © 2021 Comala Technology Solutions, Inc.. All rights reserved.