public abstract class

MockWorkflowScheme

extends Object
implements WorkflowScheme
java.lang.Object
   ↳ com.atlassian.jira.workflow.MockWorkflowScheme
Known Direct Subclasses

Summary

Public Constructors
MockWorkflowScheme()
MockWorkflowScheme(Long id)
MockWorkflowScheme(WorkflowScheme workflowScheme)
Public Methods
MockWorkflowScheme clearMappings()
boolean equals(Object o)
@Nonnull String getActualDefaultWorkflow()
Get the default workflow for the scheme.
@Nonnull 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.
@Nonnull Map<StringString> 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<StringString> workflowMap)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.workflow.WorkflowScheme

Public Constructors

public MockWorkflowScheme ()

public MockWorkflowScheme (Long id)

public MockWorkflowScheme (WorkflowScheme workflowScheme)

Public Methods

public MockWorkflowScheme clearMappings ()

public boolean equals (Object o)

@Nonnull public String getActualDefaultWorkflow ()

Get the default workflow for the scheme. Never null.

Returns
  • the default workflow for the scheme.

@Nonnull public String getActualWorkflow (String issueTypeId)

Returns the workflow to use given the passed issueTypeId.

Parameters
issueTypeId the issue type.
Returns
  • the workflow associated with the passed issue type. Never null.

public String getConfiguredDefaultWorkflow ()

Return the default workflow as saved in the database. Can return null if no default is stored.

Returns
  • the default workflow as configured in the database or null if no such default is configured.

public String getConfiguredWorkflow (String issueTypeId)

Return the Workflow for the passed IssueType as saved in the databse. Can return null if no Workflow is associated with the passed IssueType.

Returns
  • the Workflow associated with the passed workflow.

public Long getId ()

The id of the workflow scheme. Will only be null when not stored.

Returns
  • the id of the workflow scheme.

@Nonnull public Map<StringString> getMappings ()

Returns a map of the form issueTypeId -> workflowName. The null issueTypeId is used to hold the value of the default workflow (if configured).

Returns
  • Returns a map of the form issueTypeId -> workflowName.

public int hashCode ()

public MockWorkflowScheme removeDefault ()

public MockWorkflowScheme removeMapping (String issueTypeId)

public MockWorkflowScheme removeWorkflow (String workflowName)

public MockWorkflowScheme setDefaultWorkflow (String workflow)

public MockWorkflowScheme setId (Long id)

public MockWorkflowScheme setMapping (String issueType, String workflow)

public MockWorkflowScheme setMappings (Map<StringString> workflowMap)