com.atlassian.jira.workflow
Class MockAssignableWorkflowScheme
java.lang.Object
com.atlassian.jira.workflow.MockWorkflowScheme
com.atlassian.jira.workflow.MockAssignableWorkflowScheme
- All Implemented Interfaces:
- AssignableWorkflowScheme, WorkflowScheme
public class MockAssignableWorkflowScheme
- extends MockWorkflowScheme
- implements AssignableWorkflowScheme
- Since:
- v5.2
Methods inherited from class com.atlassian.jira.workflow.MockWorkflowScheme |
clearMappings, getActualDefaultWorkflow, getActualWorkflow, getConfiguredDefaultWorkflow, getConfiguredWorkflow, getId, getMappings, removeDefault, removeMapping, removeWorkflow, setDefaultWorkflow, setId, setMapping, setMappings |
MockAssignableWorkflowScheme
public MockAssignableWorkflowScheme()
MockAssignableWorkflowScheme
public MockAssignableWorkflowScheme(Long id,
String name)
MockAssignableWorkflowScheme
public MockAssignableWorkflowScheme(Long id,
String name,
String description)
MockAssignableWorkflowScheme
public MockAssignableWorkflowScheme(AssignableWorkflowScheme scheme)
toMock
public static com.google.common.base.Function<AssignableWorkflowScheme,MockAssignableWorkflowScheme> toMock()
builder
@Nonnull
public AssignableWorkflowScheme.Builder builder()
- Description copied from interface:
AssignableWorkflowScheme
- Return a builder initialised with the state of the current workflow scheme.
- Specified by:
builder
in interface AssignableWorkflowScheme
- Returns:
- a new builder initialised with the state of the current workflow scheme.
getName
public String getName()
- Description copied from interface:
AssignableWorkflowScheme
- The name of the workflow scheme.
- Specified by:
getName
in interface AssignableWorkflowScheme
- Specified by:
getName
in interface WorkflowScheme
- Returns:
- the name of the workflow scheme.
getDescription
public String getDescription()
- Description copied from interface:
AssignableWorkflowScheme
- The description of the workflow scheme.
- Specified by:
getDescription
in interface AssignableWorkflowScheme
- Specified by:
getDescription
in interface WorkflowScheme
- Returns:
- the description of the workflow scheme.
isDraft
public boolean isDraft()
- Description copied from interface:
WorkflowScheme
- Is the scheme a draft.
- Specified by:
isDraft
in interface WorkflowScheme
- Returns:
- true if this sceheme is a draft; false otherwise.
isDefault
public boolean isDefault()
- Description copied from interface:
WorkflowScheme
- Is the scheme the system default.
- Specified by:
isDefault
in interface WorkflowScheme
- Returns:
- true if this sceheme if the system default; false otherwise.
setDefaultScheme
public MockAssignableWorkflowScheme setDefaultScheme(boolean defaultScheme)
setDescription
public MockAssignableWorkflowScheme setDescription(String description)
setName
public MockAssignableWorkflowScheme setName(String name)
equals
public boolean equals(Object o)
- Overrides:
equals
in class MockWorkflowScheme
hashCode
public int hashCode()
- Overrides:
hashCode
in class MockWorkflowScheme
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002-2013 Atlassian. All Rights Reserved.