Package com.atlassian.jira.workflow
Class MockDraftWorkflowScheme.MockBuilder
java.lang.Object
com.atlassian.jira.workflow.MockDraftWorkflowScheme.MockBuilder
- All Implemented Interfaces:
DraftWorkflowScheme.Builder,WorkflowScheme.Builder<DraftWorkflowScheme.Builder>
- Enclosing class:
- MockDraftWorkflowScheme
public static class MockDraftWorkflowScheme.MockBuilder
extends Object
implements DraftWorkflowScheme.Builder
-
Constructor Summary
Constructors -
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.toString()
-
Constructor Details
-
MockBuilder
-
-
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
-
getDefaultWorkflow
- Specified by:
getDefaultWorkflowin interfaceWorkflowScheme.Builder<DraftWorkflowScheme.Builder>
-
getMapping
- Specified by:
getMappingin interfaceWorkflowScheme.Builder<DraftWorkflowScheme.Builder>
-
getMappings
- Specified by:
getMappingsin interfaceWorkflowScheme.Builder<DraftWorkflowScheme.Builder>
-
getId
- Specified by:
getIdin interfaceWorkflowScheme.Builder<DraftWorkflowScheme.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<DraftWorkflowScheme.Builder>- 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<DraftWorkflowScheme.Builder>- 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<DraftWorkflowScheme.Builder>- 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<DraftWorkflowScheme.Builder>- 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<DraftWorkflowScheme.Builder>- Returns:
- this builder.
-
clearMappings
Description copied from interface:WorkflowScheme.BuilderRemove all the mappings currently stored in the builder.- Specified by:
clearMappingsin interfaceWorkflowScheme.Builder<DraftWorkflowScheme.Builder>- 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<DraftWorkflowScheme.Builder>- Parameters:
workflowName- the name of the workflow to remove.- Returns:
- this builder.
-
toString
-