Package com.comalatech.workflow.template
Interface WorkflowTemplateManager
public interface WorkflowTemplateManager
Manage workflow templates
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateGlobalTemplate
(String workflowName) Activate global workflow template so it can be applied to spaces or pages.void
addWorkflowTemplate
(com.atlassian.confluence.spaces.Space space, String workflowMarkup) Adds a workflow template to a spacevoid
copyGlobalTemplate
(String workflowName) Copies a global workflow templatevoid
deactivateGlobalTemplate
(String workflowName) Deactivate global workflow template so it can't be applied to spaces or pages.Returns the global workflow templatesgetWorkflowTemplates
(com.atlassian.confluence.spaces.Space space) Returns the workflow templates for a given spacevoid
removeWorkflowTemplate
(com.atlassian.confluence.spaces.Space space, String workflowName) Removes a workflow template from a space.
-
Method Details
-
getWorkflowTemplates
Returns the global workflow templates- Returns:
- a list of workflows templates that are set globally
-
getWorkflowTemplates
Returns the workflow templates for a given space- Parameters:
space
- the space to get the workflow templates for- Returns:
- a list of workflow templates that are set on the given space.
-
addWorkflowTemplate
void addWorkflowTemplate(com.atlassian.confluence.spaces.Space space, String workflowMarkup) throws WorkflowException Adds a workflow template to a space- Parameters:
space
- the space to add the workflow template toworkflowMarkup
- the workflow markup to add- Throws:
WorkflowException
- if there was an error with the workflow markup
-
removeWorkflowTemplate
Removes a workflow template from a space.- Parameters:
space
- the space to remove the workflow template fromworkflowName
- the name of the workflow to remove
-
copyGlobalTemplate
Copies a global workflow template- Parameters:
workflowName
- the name of the workflow to copy
-
deactivateGlobalTemplate
Deactivate global workflow template so it can't be applied to spaces or pages.- Parameters:
workflowName
- the name of the workflow to deactivate- Throws:
WorkflowException
-
activateGlobalTemplate
Activate global workflow template so it can be applied to spaces or pages.- Parameters:
workflowName
- the name of the workflow to activate- Throws:
WorkflowException
-