Package com.atlassian.jira.workflow
Class MockWorkflowScheme
java.lang.Object
com.atlassian.jira.workflow.MockWorkflowScheme
- All Implemented Interfaces:
WorkflowScheme
- Direct Known Subclasses:
MockAssignableWorkflowScheme,MockDraftWorkflowScheme
- Since:
- v5.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.workflow.WorkflowScheme
WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the default workflow for the scheme.getActualWorkflow(String issueTypeId) Returns the workflow to use given the passed issueTypeId.Return the default workflow as saved in the database.getConfiguredWorkflow(String issueTypeId) Return the Workflow for the passed IssueType as saved in the databse.getId()The id of the workflow scheme.Returns a map of the formissueTypeId -> workflowName.inthashCode()removeMapping(String issueTypeId) removeWorkflow(String workflowName) setDefaultWorkflow(String workflow) setMapping(String issueType, String workflow) setMappings(Map<String, String> workflowMap) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.workflow.WorkflowScheme
getDescription, getName, isDefault, isDraft
-
Constructor Details
-
MockWorkflowScheme
public MockWorkflowScheme() -
MockWorkflowScheme
-
MockWorkflowScheme
-
-
Method Details
-
getId
Description copied from interface:WorkflowSchemeThe id of the workflow scheme. Will only be null when not stored.- Specified by:
getIdin interfaceWorkflowScheme- Returns:
- the id of the workflow scheme.
-
getActualWorkflow
Description copied from interface:WorkflowSchemeReturns the workflow to use given the passed issueTypeId.- Specified by:
getActualWorkflowin interfaceWorkflowScheme- Parameters:
issueTypeId- the issue type.- Returns:
- the workflow associated with the passed issue type. Never null.
-
getActualDefaultWorkflow
Description copied from interface:WorkflowSchemeGet the default workflow for the scheme. Never null.- Specified by:
getActualDefaultWorkflowin interfaceWorkflowScheme- Returns:
- the default workflow for the scheme.
-
getMappings
Description copied from interface:WorkflowSchemeReturns a map of the formissueTypeId -> workflowName. ThenullissueTypeId is used to hold the value of the default workflow (if configured).- Specified by:
getMappingsin interfaceWorkflowScheme- Returns:
- Returns a map of the form
issueTypeId -> workflowName.
-
getConfiguredDefaultWorkflow
Description copied from interface:WorkflowSchemeReturn the default workflow as saved in the database. Can return null if no default is stored.- Specified by:
getConfiguredDefaultWorkflowin interfaceWorkflowScheme- Returns:
- the default workflow as configured in the database or null if no such default is configured.
-
getConfiguredWorkflow
Description copied from interface:WorkflowSchemeReturn the Workflow for the passed IssueType as saved in the databse. Can return null if no Workflow is associated with the passed IssueType.- Specified by:
getConfiguredWorkflowin interfaceWorkflowScheme- Returns:
- the Workflow associated with the passed workflow.
-
setId
-
setMappings
-
setMapping
-
setDefaultWorkflow
-
clearMappings
-
removeMapping
-
removeDefault
-
removeWorkflow
-
equals
-
hashCode
public int hashCode()
-