|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.workflow.DraftWorkflowSchemeBuilder
public class DraftWorkflowSchemeBuilder
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.jira.workflow.WorkflowScheme.Builder |
|---|
clearMappings, getDefaultWorkflow, getId, getMapping, getMappings, removeDefault, removeMapping, removeWorkflow, setDefaultWorkflow, setMapping, setMappings |
| Method Detail |
|---|
public 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.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.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.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>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||