public abstract class MockWorkflowScheme extends Object implements WorkflowScheme
WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>>| Constructor and Description |
|---|
MockWorkflowScheme() |
MockWorkflowScheme(Long id) |
MockWorkflowScheme(WorkflowScheme workflowScheme) |
| Modifier and Type | Method and Description |
|---|---|
MockWorkflowScheme |
clearMappings() |
boolean |
equals(Object o) |
String |
getActualDefaultWorkflow()
Get the default workflow for the scheme.
|
String |
getActualWorkflow(String issueTypeId)
Returns the workflow to use given the passed issueTypeId.
|
String |
getConfiguredDefaultWorkflow()
Return the default workflow as saved in the database.
|
String |
getConfiguredWorkflow(String issueTypeId)
Return the Workflow for the passed IssueType as saved in the databse.
|
Long |
getId()
The id of the workflow scheme.
|
Map<String,String> |
getMappings()
Returns a map of the form
issueTypeId -> workflowName. |
int |
hashCode() |
MockWorkflowScheme |
removeDefault() |
MockWorkflowScheme |
removeMapping(String issueTypeId) |
MockWorkflowScheme |
removeWorkflow(String workflowName) |
MockWorkflowScheme |
setDefaultWorkflow(String workflow) |
MockWorkflowScheme |
setId(Long id) |
MockWorkflowScheme |
setMapping(String issueType,
String workflow) |
MockWorkflowScheme |
setMappings(Map<String,String> workflowMap) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDescription, getName, isDefault, isDraftpublic MockWorkflowScheme()
public MockWorkflowScheme(Long id)
public MockWorkflowScheme(WorkflowScheme workflowScheme)
public Long getId()
WorkflowSchemegetId in interface WorkflowScheme@Nonnull public String getActualWorkflow(String issueTypeId)
WorkflowSchemegetActualWorkflow in interface WorkflowSchemeissueTypeId - the issue type.@Nonnull public String getActualDefaultWorkflow()
WorkflowSchemegetActualDefaultWorkflow in interface WorkflowScheme@Nonnull public Map<String,String> getMappings()
WorkflowSchemeissueTypeId -> workflowName. The null issueTypeId is used to hold
the value of the default workflow (if configured).getMappings in interface WorkflowSchemeissueTypeId -> workflowName.public String getConfiguredDefaultWorkflow()
WorkflowSchemegetConfiguredDefaultWorkflow in interface WorkflowSchemepublic String getConfiguredWorkflow(String issueTypeId)
WorkflowSchemegetConfiguredWorkflow in interface WorkflowSchemepublic MockWorkflowScheme setId(Long id)
public MockWorkflowScheme setMappings(Map<String,String> workflowMap)
public MockWorkflowScheme setMapping(String issueType, String workflow)
public MockWorkflowScheme setDefaultWorkflow(String workflow)
public MockWorkflowScheme clearMappings()
public MockWorkflowScheme removeMapping(String issueTypeId)
public MockWorkflowScheme removeDefault()
public MockWorkflowScheme removeWorkflow(String workflowName)
Copyright © 2002-2022 Atlassian. All Rights Reserved.