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()booleanbooleanisDraft()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, waitMethods 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:
getLastModifiedUserin interfaceDraftWorkflowScheme.Builder
-
getLastModifiedDate
- Specified by:
getLastModifiedDatein interfaceDraftWorkflowScheme.Builder
-
getParentScheme
- Specified by:
getParentSchemein interfaceDraftWorkflowScheme.Builder
-
build
- Specified by:
buildin interfaceDraftWorkflowScheme.Builder
-
isDraft
public boolean isDraft()- Specified by:
isDraftin interfaceWorkflowScheme.Builder<DraftWorkflowScheme.Builder>
-
isDefault
public boolean isDefault()- Specified by:
isDefaultin interfaceWorkflowScheme.Builder<DraftWorkflowScheme.Builder>
-
getDescription
- Specified by:
getDescriptionin interfaceWorkflowScheme.Builder<DraftWorkflowScheme.Builder>
-
getName
- Specified by:
getNamein interfaceWorkflowScheme.Builder<DraftWorkflowScheme.Builder>
-
setDefaultWorkflow
Description copied from interface:WorkflowScheme.BuilderSet the default workflow for the scheme.- Specified by:
setDefaultWorkflowin 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.BuilderSet the workflow for the passed issue type.- Specified by:
setMappingin 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.BuilderSet the workflow map for the scheme. Its basically a mapping fromissueTypeId -> workflowName.- Specified by:
setMappingsin 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.BuilderRemove the mapping for the passed issue type from the scheme.- Specified by:
removeMappingin 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.BuilderRemove the default mapping from the scheme.- Specified by:
removeDefaultin interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>- Returns:
- this builder.
-
clearMappings
Description copied from interface:WorkflowScheme.BuilderRemove all the mappings currently stored in the builder.- Specified by:
clearMappingsin interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>- Returns:
- this builder
-
removeWorkflow
Description copied from interface:WorkflowScheme.BuilderRemove 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:
removeWorkflowin interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>- Parameters:
workflowName- the name of the workflow to remove.- Returns:
- this builder.
-
getDefaultWorkflow
- Specified by:
getDefaultWorkflowin interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
-
getMapping
- Specified by:
getMappingin interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
-
getId
- Specified by:
getIdin interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
-
getMappings
- Specified by:
getMappingsin interfaceWorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
-