Package com.comalatech.workflow
Interface WorkflowConfigurationService
public interface WorkflowConfigurationService
Provides services for interacting with workflow configuration settings
- 
Method SummaryModifier and TypeMethodDescriptiongetEffectiveMacroTransformStatus(com.atlassian.confluence.spaces.Space space) Returns the effective "Published View Macro Transform" setting that defines if with page publishing workflows the include and excerpt-include macros should render the workflow approved version of the referenced page.getEffectiveResetApprovalStatus(com.atlassian.confluence.spaces.Space space) Returns the effective "Page Update Reset Approval" setting from a space.getEffectiveTasksMode(com.atlassian.confluence.spaces.Space space) Returns the effective "Tasks Mode" setting from a space.getEffectiveWorkflowVisibility(com.atlassian.confluence.spaces.Space space) Returns the effective "Workflow Activity and Drafts Visibility" setting from a space.getMacroTransformStatus(com.atlassian.confluence.spaces.Space space) Returns "Published View Macro Transform" setting for the given space.getResetApprovalStatus(com.atlassian.confluence.spaces.Space space) Returns "Page Update Reset Approval" setting from a spacegetTasksMode(com.atlassian.confluence.spaces.Space space) Returns "Tasks Mode" setting from a spacegetWorkflowVisibility(com.atlassian.confluence.spaces.Space space) Returns "Workflow Activity and Drafts Visibility" setting for the given spacebooleanisSnapshotsCreationEnabled(com.atlassian.confluence.spaces.Space space) Returns if the creation of automatic snapshots is enabled or not This feature requires a Comala Workflows Enterprise license.booleanisViewDraftByDefault(com.atlassian.confluence.spaces.Space space) Returns what version of pages should users view by default with internal page publishing workflowsvoidsetMacroTransformStatus(com.atlassian.confluence.spaces.Space space, MacroTransformStatus status) Sets the "Published View Macro Transform" setting that defines if with page publishing workflows the include and excerpt-include macros should render the workflow approved version of the referenced page.voidsetResetApprovalStatus(com.atlassian.confluence.spaces.Space space, PageUpdateResetApprovalStatus pageUpdateResetApprovalStatus) Sets "Page Update Reset Approval" setting in a spacevoidsetSnapshotsCreationEnabled(com.atlassian.confluence.spaces.Space space, boolean isAutoSnapshotEnabled) Setting to enable/disable automatic snapshot generation on final workflow state This feature requires a Comala Workflows Enterprise license.voidsetTasksMode(com.atlassian.confluence.spaces.Space space, TasksMode tasksMode) Sets "Tasks Mode" setting in a spacevoidsetViewDraftByDefault(com.atlassian.confluence.spaces.Space space, boolean isDraft) Sets the version of pages that users should view by default with internal page publishing workflows in a space.voidsetWorkflowVisibility(com.atlassian.confluence.spaces.Space space, WorkflowVisibility visibility) Sets "Workflow Activity and Drafts Visibility" setting in a space
- 
Method Details- 
getWorkflowVisibilityReturns "Workflow Activity and Drafts Visibility" setting for the given space- Parameters:
- space- space from which to get the option value
- Returns:
- workflow visibility setting for the given space.
 
- 
getEffectiveWorkflowVisibilityReturns the effective "Workflow Activity and Drafts Visibility" setting from a space. If it is set asWorkflowVisibility.DEFAULTit returns the Global level value for this setting.- Parameters:
- space- space from which to get the option value
- Returns:
- the effective workflow visibility setting.
 
- 
setWorkflowVisibilityvoid setWorkflowVisibility(com.atlassian.confluence.spaces.Space space, WorkflowVisibility visibility) Sets "Workflow Activity and Drafts Visibility" setting in a space- Parameters:
- space- space in which to set the option value
- visibility- workflow visibility value to set for the given space
 
- 
getResetApprovalStatusReturns "Page Update Reset Approval" setting from a space- Parameters:
- space- space from which to get the option value
- Returns:
- page update reset approval status setting for the given space
 
- 
getEffectiveResetApprovalStatusPageUpdateResetApprovalStatus getEffectiveResetApprovalStatus(com.atlassian.confluence.spaces.Space space) Returns the effective "Page Update Reset Approval" setting from a space. If it is set asPageUpdateResetApprovalStatus.DEFAULTit returns the Global level value for this setting.- Parameters:
- space- space from which to get the option value
- Returns:
- the effective page update reset approval status setting for the given space
 
- 
setResetApprovalStatusvoid setResetApprovalStatus(com.atlassian.confluence.spaces.Space space, PageUpdateResetApprovalStatus pageUpdateResetApprovalStatus) Sets "Page Update Reset Approval" setting in a space- Parameters:
- space- space in which to set the option value
- pageUpdateResetApprovalStatus- page update reset approval status setting to set for the given space
 
- 
getTasksModeReturns "Tasks Mode" setting from a space- Parameters:
- space- space from which to get the option value
- Returns:
- tasks mode setting for the given space
 
- 
getEffectiveTasksModeReturns the effective "Tasks Mode" setting from a space. If it is set asTasksMode.DEFAULTit returns the Global level value for this setting.- Parameters:
- space- space from which to get the option value
- Returns:
- the effective tasks mode setting for the given space
 
- 
setTasksModeSets "Tasks Mode" setting in a space- Parameters:
- space- space in which to set the option value
- tasksMode- tasks mode setting to set for the given space
 
- 
isViewDraftByDefaultboolean isViewDraftByDefault(com.atlassian.confluence.spaces.Space space) Returns what version of pages should users view by default with internal page publishing workflows- Parameters:
- space- space in which to check the option value
- Returns:
- true if default view is "draft/latest" and false if it is "published"
 
- 
setViewDraftByDefaultvoid setViewDraftByDefault(com.atlassian.confluence.spaces.Space space, boolean isDraft) Sets the version of pages that users should view by default with internal page publishing workflows in a space. True value for "draft/latest" and false for "published"- Parameters:
- space- space in which to set the option value
 
- 
getMacroTransformStatusReturns "Published View Macro Transform" setting for the given space. That setting defines if with page publishing workflows the include and excerpt-include macros should render the workflow approved version of the referenced page.- Parameters:
- space- space from which to get the option value
- Returns:
- published view macro transform setting for the given space
 
- 
getEffectiveMacroTransformStatusReturns the effective "Published View Macro Transform" setting that defines if with page publishing workflows the include and excerpt-include macros should render the workflow approved version of the referenced page. If it is set asMacroTransformStatus.DEFAULTit returns the Global level value for this setting.- Parameters:
- space- space from which to get the option value
- Returns:
- effective published view macro transform setting for the given space
 
- 
setMacroTransformStatusvoid setMacroTransformStatus(com.atlassian.confluence.spaces.Space space, MacroTransformStatus status) Sets the "Published View Macro Transform" setting that defines if with page publishing workflows the include and excerpt-include macros should render the workflow approved version of the referenced page.- Parameters:
- space- space in which to set the option value
- status- macro transform status to set for the given space
 
- 
isSnapshotsCreationEnabledboolean isSnapshotsCreationEnabled(com.atlassian.confluence.spaces.Space space) Returns if the creation of automatic snapshots is enabled or not This feature requires a Comala Workflows Enterprise license.- Parameters:
- space- space in which to check the option value
- Returns:
- true/false
 
- 
setSnapshotsCreationEnabledvoid setSnapshotsCreationEnabled(com.atlassian.confluence.spaces.Space space, boolean isAutoSnapshotEnabled) Setting to enable/disable automatic snapshot generation on final workflow state This feature requires a Comala Workflows Enterprise license.- Parameters:
- space- space in which to set the option value
 
 
-