Package 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
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.atlassian.jira.workflow.AssignableWorkflowScheme
AssignableWorkflowScheme.BuilderNested classes/interfaces inherited from interface com.atlassian.jira.workflow.WorkflowScheme
WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>> -
Constructor Summary
ConstructorsConstructorDescriptionMockAssignableWorkflowScheme(Long id, String name) MockAssignableWorkflowScheme(Long id, String name, String description) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Return a builder initialised with the state of the current workflow scheme.booleanThe description of the workflow scheme.getName()The name of the workflow scheme.inthashCode()booleanIs the scheme the system default.booleanisDraft()Is the scheme a draft.setDefaultScheme(boolean defaultScheme) setDescription(String description) static com.google.common.base.Function<AssignableWorkflowScheme,MockAssignableWorkflowScheme> toMock()toString()Methods inherited from class com.atlassian.jira.workflow.MockWorkflowScheme
clearMappings, getActualDefaultWorkflow, getActualWorkflow, getConfiguredDefaultWorkflow, getConfiguredWorkflow, getId, getMappings, removeDefault, removeMapping, removeWorkflow, setDefaultWorkflow, setId, setMapping, setMappingsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.jira.workflow.WorkflowScheme
getActualDefaultWorkflow, getActualWorkflow, getConfiguredDefaultWorkflow, getConfiguredWorkflow, getId, getMappings
-
Constructor Details
-
MockAssignableWorkflowScheme
public MockAssignableWorkflowScheme() -
MockAssignableWorkflowScheme
-
MockAssignableWorkflowScheme
-
MockAssignableWorkflowScheme
-
-
Method Details
-
toMock
public static com.google.common.base.Function<AssignableWorkflowScheme,MockAssignableWorkflowScheme> toMock() -
builder
Description copied from interface:AssignableWorkflowSchemeReturn a builder initialised with the state of the current workflow scheme.- Specified by:
builderin interfaceAssignableWorkflowScheme- Returns:
- a new builder initialised with the state of the current workflow scheme.
-
getName
Description copied from interface:AssignableWorkflowSchemeThe name of the workflow scheme.- Specified by:
getNamein interfaceAssignableWorkflowScheme- Specified by:
getNamein interfaceWorkflowScheme- Returns:
- the name of the workflow scheme.
-
getDescription
Description copied from interface:AssignableWorkflowSchemeThe description of the workflow scheme.- Specified by:
getDescriptionin interfaceAssignableWorkflowScheme- Specified by:
getDescriptionin interfaceWorkflowScheme- Returns:
- the description of the workflow scheme.
-
isDraft
public boolean isDraft()Description copied from interface:WorkflowSchemeIs the scheme a draft.- Specified by:
isDraftin interfaceWorkflowScheme- Returns:
- true if this sceheme is a draft; false otherwise.
-
isDefault
public boolean isDefault()Description copied from interface:WorkflowSchemeIs the scheme the system default.- Specified by:
isDefaultin interfaceWorkflowScheme- Returns:
- true if this sceheme if the system default; false otherwise.
-
setDefaultScheme
-
setDescription
-
setName
-
equals
- Overrides:
equalsin classMockWorkflowScheme
-
hashCode
public int hashCode()- Overrides:
hashCodein classMockWorkflowScheme
-
toString
-