public class DraftWorkflowSchemeBuilder extends Object implements DraftWorkflowScheme.Builder
| Modifier and Type | Method and Description |
|---|---|
DraftWorkflowScheme |
build() |
T |
clearMappings()
Remove all the mappings currently stored in the builder.
|
String |
getDefaultWorkflow() |
String |
getDescription() |
Long |
getId() |
Date |
getLastModifiedDate() |
ApplicationUser |
getLastModifiedUser() |
String |
getMapping(String issueTypeId) |
Map<String,String> |
getMappings() |
String |
getName() |
AssignableWorkflowScheme |
getParentScheme() |
boolean |
isDefault() |
boolean |
isDraft() |
T |
removeDefault()
Remove the default mapping from the scheme.
|
T |
removeMapping(String issueTypeId)
Remove the mapping for the passed issue type from the scheme.
|
T |
removeWorkflow(String workflowName)
Remove all explicit references to the passed workflow from the scheme.
|
T |
setDefaultWorkflow(String workflowName)
Set the default workflow for the scheme.
|
T |
setMapping(String issueTypeId,
String workflowName)
Set the workflow for the passed issue type.
|
T |
setMappings(Map<String,String> mappings)
Set the workflow map for the scheme.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearMappings, getDefaultWorkflow, getId, getMapping, getMappings, removeDefault, removeMapping, removeWorkflow, setDefaultWorkflow, setMapping, setMappingspublic ApplicationUser getLastModifiedUser()
getLastModifiedUser in interface DraftWorkflowScheme.Builderpublic Date getLastModifiedDate()
getLastModifiedDate in interface DraftWorkflowScheme.Builderpublic AssignableWorkflowScheme getParentScheme()
getParentScheme in interface DraftWorkflowScheme.Builderpublic DraftWorkflowScheme build()
build in interface DraftWorkflowScheme.Builderpublic boolean isDraft()
isDraft in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>public boolean isDefault()
isDefault in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>public String getDescription()
getDescription in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>public String getName()
getName in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>@Nonnull public T setDefaultWorkflow(@Nonnull String workflowName)
WorkflowScheme.BuildersetDefaultWorkflow in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>workflowName - the default workflow for the scheme.@Nonnull public T setMapping(@Nonnull String issueTypeId, @Nonnull String workflowName)
WorkflowScheme.BuildersetMapping in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>issueTypeId - the issue type to map.workflowName - the workflow to map@Nonnull public T setMappings(@Nonnull Map<String,String> mappings)
WorkflowScheme.BuilderissueTypeId -> workflowName.setMappings in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>mappings - the mappings to set in the scheme.@Nonnull public T removeMapping(@Nonnull String issueTypeId)
WorkflowScheme.BuilderremoveMapping in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>issueTypeId - the issue type whose mapping is to be removed.@Nonnull public T removeDefault()
WorkflowScheme.BuilderremoveDefault in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>@Nonnull public T clearMappings()
WorkflowScheme.BuilderclearMappings in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>@Nonnull public T removeWorkflow(@Nonnull String workflowName)
WorkflowScheme.BuilderremoveWorkflow in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>workflowName - the name of the workflow to remove.public String getDefaultWorkflow()
getDefaultWorkflow in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>public String getMapping(@Nonnull String issueTypeId)
getMapping in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>public Long getId()
getId in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>public Map<String,String> getMappings()
getMappings in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>Copyright © 2002-2022 Atlassian. All Rights Reserved.