public interface WorkflowService
Modifier and Type | Field and Description |
---|---|
static String |
CUSTOM_THEME_HTML_FOOTER |
static String |
CUSTOM_THEME_HTML_HEADER |
static String |
CUSTOM_THEME_HTML_MENU |
Modifier and Type | Method and Description |
---|---|
void |
activateSpaceWorkflow(com.atlassian.confluence.spaces.Space space,
String workflowName)
Activate the given space workflow
|
void |
addWorkflowTemplate(com.atlassian.confluence.spaces.Space space,
String workflowMarkup)
Deprecated.
|
void |
deactivateSpaceWorflow(com.atlassian.confluence.spaces.Space space,
String workflowName)
Deactivate the given space workflow.
|
List<Workflow> |
getActiveWorkflows(com.atlassian.confluence.core.ContentEntityObject content)
returns the workflow that is active on the given Content Object (Page, BlogPost)
|
String |
getCustomThemeWorkflowHtml(com.atlassian.confluence.core.ContentEntityObject content)
Deprecated.
|
String |
getVersion()
Retrieves the version of Ad hoc Workflows
|
Workflow |
getWorkflow(com.atlassian.confluence.core.ContentEntityObject content)
Returns the workflow that is set on a content object (Page, Blogpost).
|
Workflow |
getWorkflow(com.atlassian.confluence.spaces.Space space,
String workflowName)
Returns the space workflow with the given name.
|
Map<String,String> |
getWorkflowHtmlElements(com.atlassian.confluence.core.ContentEntityObject content)
Provides the html content to include in a page to allow the Workflow menu
and other items to be displayed in a custom theme.
|
Map<String,String> |
getWorkflowHtmlElements(com.atlassian.confluence.core.ContentEntityObject content,
boolean publishedVersion)
Provides the html content to include in a page to allow the Workflow menu
and other items to be displayed in a custom theme.
|
List<Workflow> |
getWorkflows(com.atlassian.confluence.spaces.Space space)
Returns the workflows for the given space.
|
List<Workflow> |
getWorkflowTemplates()
Deprecated.
from 1.3 use
WorkflowTemplateManager.getWorkflowTemplates() |
List<Workflow> |
getWorkflowTemplates(com.atlassian.confluence.spaces.Space space)
Deprecated.
from 1.3 use
WorkflowTemplateManager.getWorkflowTemplates(Space) |
Workflow |
loadWorkflow(com.atlassian.confluence.core.ContentEntityObject content,
String workflowMarkup)
Loads the given workflowMarkup into the content
|
Workflow |
loadWorkflow(com.atlassian.confluence.spaces.Space space,
String workflowMarkup)
Loads the given workflowMarkup as a space workflow.
|
void |
removeWorkflow(com.atlassian.confluence.core.ContentEntityObject content)
Removes the workflow from a given content object
|
void |
removeWorkflow(com.atlassian.confluence.spaces.Space space,
String workflowName)
Removes the given workflow from a space
|
void |
removeWorkflowTemplate(com.atlassian.confluence.spaces.Space space,
String workflowName)
Deprecated.
|
static final String CUSTOM_THEME_HTML_MENU
static final String CUSTOM_THEME_HTML_HEADER
static final String CUSTOM_THEME_HTML_FOOTER
String getVersion()
Workflow loadWorkflow(com.atlassian.confluence.core.ContentEntityObject content, String workflowMarkup) throws WorkflowException
content
- the content objectworkflowMarkup
- the workflow markupWorkflowException
- if the markup provided is not valid, or if there is a problem
loading the workflow to the contentWorkflow loadWorkflow(com.atlassian.confluence.spaces.Space space, String workflowMarkup) throws WorkflowException
space
- the space to add the workflow toworkflowMarkup
- the workflow markupWorkflowException
- if the markup provided is not valid, or if there is a problem
loading the workflow to the spacevoid removeWorkflow(com.atlassian.confluence.core.ContentEntityObject content)
content
- the content object to remove the workflow fromvoid removeWorkflow(com.atlassian.confluence.spaces.Space space, String workflowName)
space
- the space to remove the workflow fromworkflowName
- the name of the workflow to be removedWorkflow getWorkflow(com.atlassian.confluence.core.ContentEntityObject content)
getActiveWorkflows(ContentEntityObject)
for all applicable
workflows on a content object.content
- the content to get the workflow forList<Workflow> getActiveWorkflows(com.atlassian.confluence.core.ContentEntityObject content)
content
- Workflow getWorkflow(com.atlassian.confluence.spaces.Space space, String workflowName)
space
- the space where the workflow is setworkflowName
- the name of the workflow to returnList<Workflow> getWorkflows(com.atlassian.confluence.spaces.Space space)
space
- void activateSpaceWorkflow(com.atlassian.confluence.spaces.Space space, String workflowName)
space
- workflowName
- the name of the workflow to activate.void deactivateSpaceWorflow(com.atlassian.confluence.spaces.Space space, String workflowName)
space
- workflowName
- the name of the workflow to deactivate.List<Workflow> getWorkflowTemplates()
WorkflowTemplateManager.getWorkflowTemplates()
List<Workflow> getWorkflowTemplates(com.atlassian.confluence.spaces.Space space)
WorkflowTemplateManager.getWorkflowTemplates(Space)
space
- the space to get the workflow templates forvoid addWorkflowTemplate(com.atlassian.confluence.spaces.Space space, String workflowMarkup) throws WorkflowException
WorkflowTemplateManager.addWorkflowTemplate(Space, String)
space
- the space to add the workflow template toworkflowMarkup
- the workflow markup to addWorkflowException
- if there was an error with the workflow markupvoid removeWorkflowTemplate(com.atlassian.confluence.spaces.Space space, String workflowName)
WorkflowTemplateManager.removeWorkflowTemplate(Space, String)
space
- the space to remove the workflow template fromworkflowName
- the name of the workflow to removeString getCustomThemeWorkflowHtml(com.atlassian.confluence.core.ContentEntityObject content)
getWorkflowHtmlElements(ContentEntityObject)
content
- the page to get the custom html forMap<String,String> getWorkflowHtmlElements(com.atlassian.confluence.core.ContentEntityObject content)
getWorkflowHtmlElements(ContentEntityObject, boolean)
with the
false param.content
- Map<String,String> getWorkflowHtmlElements(com.atlassian.confluence.core.ContentEntityObject content, boolean publishedVersion)
content
- publishedVersion
- Copyright © 2021 Comala Technology Solutions, Inc.. All rights reserved.