Package com.comalatech.workflow.template
Interface WorkflowTemplateManager
-
public interface WorkflowTemplateManager
Manage workflow templates
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
activateGlobalTemplate(java.lang.String workflowName)
Activate global workflow template so it can be applied to spaces or pages.void
addWorkflowTemplate(com.atlassian.confluence.spaces.Space space, java.lang.String workflowMarkup)
Adds a workflow template to a spacevoid
copyGlobalTemplate(java.lang.String workflowName)
Copies a global workflow templatevoid
deactivateGlobalTemplate(java.lang.String workflowName)
Deactivate global workflow template so it can't be applied to spaces or pages.java.util.List<Workflow>
getWorkflowTemplates()
Returns the global workflow templatesjava.util.List<Workflow>
getWorkflowTemplates(com.atlassian.confluence.spaces.Space space)
Returns the workflow templates for a given spacevoid
removeWorkflowTemplate(com.atlassian.confluence.spaces.Space space, java.lang.String workflowName)
Removes a workflow template from a space.
-
-
-
Method Detail
-
getWorkflowTemplates
java.util.List<Workflow> getWorkflowTemplates()
Returns the global workflow templates- Returns:
- a list of workflows templates that are set globally
-
getWorkflowTemplates
java.util.List<Workflow> getWorkflowTemplates(com.atlassian.confluence.spaces.Space space)
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, java.lang.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
void removeWorkflowTemplate(com.atlassian.confluence.spaces.Space space, java.lang.String workflowName)
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
void copyGlobalTemplate(java.lang.String workflowName)
Copies a global workflow template- Parameters:
workflowName
- the name of the workflow to copy
-
deactivateGlobalTemplate
void deactivateGlobalTemplate(java.lang.String workflowName) throws WorkflowException
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
void activateGlobalTemplate(java.lang.String workflowName) throws WorkflowException
Activate global workflow template so it can be applied to spaces or pages.- Parameters:
workflowName
- the name of the workflow to activate- Throws:
WorkflowException
-
-