|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.workflow.MockWorkflowScheme
public abstract class MockWorkflowScheme
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.workflow.WorkflowScheme |
---|
WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>> |
Constructor Summary | |
---|---|
MockWorkflowScheme()
|
|
MockWorkflowScheme(Long id)
|
|
MockWorkflowScheme(WorkflowScheme workflowScheme)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.jira.workflow.WorkflowScheme |
---|
getDescription, getName, isDefault, isDraft |
Constructor Detail |
---|
public MockWorkflowScheme()
public MockWorkflowScheme(Long id)
public MockWorkflowScheme(WorkflowScheme workflowScheme)
Method Detail |
---|
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)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |