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, wait
getDescription, getName, isDefault, isDraft
public MockWorkflowScheme()
public MockWorkflowScheme(Long id)
public MockWorkflowScheme(WorkflowScheme workflowScheme)
public Long getId()
WorkflowScheme
getId
in interface WorkflowScheme
@Nonnull public String getActualWorkflow(String issueTypeId)
WorkflowScheme
getActualWorkflow
in interface WorkflowScheme
issueTypeId
- the issue type.@Nonnull public String getActualDefaultWorkflow()
WorkflowScheme
getActualDefaultWorkflow
in interface WorkflowScheme
@Nonnull public Map<String,String> getMappings()
WorkflowScheme
issueTypeId -> workflowName
. The null
issueTypeId is used to hold
the value of the default workflow (if configured).getMappings
in interface WorkflowScheme
issueTypeId -> workflowName
.public String getConfiguredDefaultWorkflow()
WorkflowScheme
getConfiguredDefaultWorkflow
in interface WorkflowScheme
public String getConfiguredWorkflow(String issueTypeId)
WorkflowScheme
getConfiguredWorkflow
in interface WorkflowScheme
public 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-2017 Atlassian. All Rights Reserved.