T
- the type of builder to return.public static interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
Modifier and Type | Method and Description |
---|---|
T |
clearMappings()
Remove all the mappings currently stored in the builder.
|
String |
getDefaultWorkflow() |
String |
getDescription() |
Long |
getId() |
String |
getMapping(String issueTypeId) |
Map<String,String> |
getMappings() |
String |
getName() |
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.
|
String getDefaultWorkflow()
Long getId()
boolean isDraft()
boolean isDefault()
String getDescription()
String getName()
@Nonnull T setDefaultWorkflow(@Nonnull String workflowName)
workflowName
- the default workflow for the scheme.@Nonnull T setMapping(@Nonnull String issueTypeId, @Nonnull String workflowName)
issueTypeId
- the issue type to map.workflowName
- the workflow to map@Nonnull T setMappings(@Nonnull Map<String,String> mappings)
issueTypeId -> workflowName
.mappings
- the mappings to set in the scheme.@Nonnull T removeMapping(@Nonnull String issueTypeId)
issueTypeId
- the issue type whose mapping is to be removed.@Nonnull T removeDefault()
@Nonnull T clearMappings()
@Nonnull T removeWorkflow(@Nonnull String workflowName)
workflowName
- the name of the workflow to remove.Copyright © 2002-2019 Atlassian. All Rights Reserved.