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, wait
clearMappings, getDefaultWorkflow, getId, getMapping, getMappings, removeDefault, removeMapping, removeWorkflow, setDefaultWorkflow, setMapping, setMappings
public ApplicationUser getLastModifiedUser()
getLastModifiedUser
in interface DraftWorkflowScheme.Builder
public Date getLastModifiedDate()
getLastModifiedDate
in interface DraftWorkflowScheme.Builder
public AssignableWorkflowScheme getParentScheme()
getParentScheme
in interface DraftWorkflowScheme.Builder
public DraftWorkflowScheme build()
build
in interface DraftWorkflowScheme.Builder
public 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.Builder
setDefaultWorkflow
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.Builder
setMapping
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.Builder
issueTypeId -> 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.Builder
removeMapping
in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
issueTypeId
- the issue type whose mapping is to be removed.@Nonnull public T removeDefault()
WorkflowScheme.Builder
removeDefault
in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
@Nonnull public T clearMappings()
WorkflowScheme.Builder
clearMappings
in interface WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>
@Nonnull public T removeWorkflow(@Nonnull String workflowName)
WorkflowScheme.Builder
removeWorkflow
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-2016 Atlassian. All Rights Reserved.