Package com.atlassian.jira.workflow
Class DraftWorkflowSchemeBuilder
java.lang.Object
com.atlassian.jira.workflow.DraftWorkflowSchemeBuilder
- All Implemented Interfaces:
DraftWorkflowScheme.Builder
,WorkflowScheme.Builder<DraftWorkflowScheme.Builder>
- Since:
- v5.2
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Remove all the mappings currently stored in the builder.getId()
getMapping
(String issueTypeId) getName()
boolean
boolean
isDraft()
Remove the default mapping from the scheme.removeMapping
(String issueTypeId) Remove the mapping for the passed issue type from the scheme.removeWorkflow
(String workflowName) Remove all explicit references to the passed workflow from the scheme.setDefaultWorkflow
(String workflowName) Set the default workflow for the scheme.setMapping
(String issueTypeId, String workflowName) Set the workflow for the passed issue type.setMappings
(Map<String, String> mappings) Set the workflow map for the scheme.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.jira.workflow.WorkflowScheme.Builder
clearMappings, getDefaultWorkflow, getId, getMapping, getMappings, removeDefault, removeMapping, removeWorkflow, setDefaultWorkflow, setMapping, setMappings
-
Method Details
-
getLastModifiedUser
- Specified by:
getLastModifiedUser
in interfaceDraftWorkflowScheme.Builder
-
getLastModifiedDate
- Specified by:
getLastModifiedDate
in interfaceDraftWorkflowScheme.Builder
-
getParentScheme
- Specified by:
getParentScheme
in interfaceDraftWorkflowScheme.Builder
-
build
- Specified by:
build
in interfaceDraftWorkflowScheme.Builder
-
isDraft
public boolean isDraft()- Specified by:
isDraft
in interfaceWorkflowScheme.Builder<DraftWorkflowScheme.Builder>
-
isDefault
public boolean isDefault()- Specified by:
isDefault
in interfaceWorkflowScheme.Builder<DraftWorkflowScheme.Builder>
-
getDescription
- Specified by:
getDescription
in interfaceWorkflowScheme.Builder<DraftWorkflowScheme.Builder>
-
getName
- Specified by:
getName
in interfaceWorkflowScheme.Builder<DraftWorkflowScheme.Builder>
-
setDefaultWorkflow
Description copied from interface:WorkflowScheme.Builder
Set the default workflow for the scheme.- Specified by:
setDefaultWorkflow
in interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
- Parameters:
workflowName
- the default workflow for the scheme.- Returns:
- the builder.
-
setMapping
@Nonnull public DraftWorkflowScheme.Builder setMapping(@Nonnull String issueTypeId, @Nonnull String workflowName) Description copied from interface:WorkflowScheme.Builder
Set the workflow for the passed issue type.- Specified by:
setMapping
in interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
- Parameters:
issueTypeId
- the issue type to map.workflowName
- the workflow to map- Returns:
- the builder.
-
setMappings
Description copied from interface:WorkflowScheme.Builder
Set the workflow map for the scheme. Its basically a mapping fromissueTypeId -> workflowName
.- Specified by:
setMappings
in interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
- Parameters:
mappings
- the mappings to set in the scheme.- Returns:
- this builder.
-
removeMapping
Description copied from interface:WorkflowScheme.Builder
Remove the mapping for the passed issue type from the scheme.- Specified by:
removeMapping
in interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
- Parameters:
issueTypeId
- the issue type whose mapping is to be removed.- Returns:
- this builder.
-
removeDefault
Description copied from interface:WorkflowScheme.Builder
Remove the default mapping from the scheme.- Specified by:
removeDefault
in interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
- Returns:
- this builder.
-
clearMappings
Description copied from interface:WorkflowScheme.Builder
Remove all the mappings currently stored in the builder.- Specified by:
clearMappings
in interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
- Returns:
- this builder
-
removeWorkflow
Description copied from interface:WorkflowScheme.Builder
Remove all explicit references to the passed workflow from the scheme. This method sets the default workflow to null if it matches the passed workflow.- Specified by:
removeWorkflow
in interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
- Parameters:
workflowName
- the name of the workflow to remove.- Returns:
- this builder.
-
getDefaultWorkflow
- Specified by:
getDefaultWorkflow
in interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
-
getMapping
- Specified by:
getMapping
in interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
-
getId
- Specified by:
getId
in interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
-
getMappings
- Specified by:
getMappings
in interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
-