Package com.atlassian.jira.workflow
Class MockDraftWorkflowScheme
java.lang.Object
com.atlassian.jira.workflow.MockWorkflowScheme
com.atlassian.jira.workflow.MockDraftWorkflowScheme
- All Implemented Interfaces:
DraftWorkflowScheme,WorkflowScheme
- Since:
- v5.2
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.atlassian.jira.workflow.DraftWorkflowScheme
DraftWorkflowScheme.BuilderNested classes/interfaces inherited from interface com.atlassian.jira.workflow.WorkflowScheme
WorkflowScheme.Builder<T extends WorkflowScheme.Builder<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Return a builder initialised with the state of the current workflow scheme.booleanThe description of the workflow scheme.The date the scheme was last updated (or created).The user that last modified the scheme.getName()The name of the workflow scheme.Return a reference to the parent of the draft scheme.inthashCode()booleanIs the scheme the system default.booleanisDraft()Is the scheme a draft.setLastModifiedDate(Date lastModifiedDate) setLastModifiedUser(ApplicationUser lastModifiedUser) setParentScheme(AssignableWorkflowScheme parentScheme) 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
-
MockDraftWorkflowScheme
public MockDraftWorkflowScheme() -
MockDraftWorkflowScheme
-
MockDraftWorkflowScheme
-
MockDraftWorkflowScheme
-
-
Method Details
-
getLastModifiedUser
Description copied from interface:DraftWorkflowSchemeThe user that last modified the scheme.- Specified by:
getLastModifiedUserin interfaceDraftWorkflowScheme- Returns:
- the user that last modified the scheme. Can be null.
-
getLastModifiedDate
Description copied from interface:DraftWorkflowSchemeThe date the scheme was last updated (or created).- Specified by:
getLastModifiedDatein interfaceDraftWorkflowScheme- Returns:
- the date the scheme was last updated or created.
-
getParentScheme
Description copied from interface:DraftWorkflowSchemeReturn a reference to the parent of the draft scheme.- Specified by:
getParentSchemein interfaceDraftWorkflowScheme- Returns:
- a reference to the parent of the draft scheme.
-
setParentScheme
-
builder
Description copied from interface:DraftWorkflowSchemeReturn a builder initialised with the state of the current workflow scheme.- Specified by:
builderin interfaceDraftWorkflowScheme- Returns:
- a new builder initialised with the state of the current workflow scheme.
-
setLastModifiedUser
-
setLastModifiedDate
-
getName
Description copied from interface:WorkflowSchemeThe name of the workflow scheme.- Specified by:
getNamein interfaceWorkflowScheme- Returns:
- the name of the workflow scheme.
-
getDescription
Description copied from interface:WorkflowSchemeThe description of the workflow scheme.- 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.
-
equals
- Overrides:
equalsin classMockWorkflowScheme
-
hashCode
public int hashCode()- Overrides:
hashCodein classMockWorkflowScheme
-
toString
-