com.atlassian.jira.workflow
Class MockDraftWorkflowScheme

java.lang.Object
  extended by com.atlassian.jira.workflow.MockWorkflowScheme
      extended by com.atlassian.jira.workflow.MockDraftWorkflowScheme
All Implemented Interfaces:
DraftWorkflowScheme, WorkflowScheme

public class MockDraftWorkflowScheme
extends MockWorkflowScheme
implements DraftWorkflowScheme

Since:
v5.2

Nested Class Summary
static class MockDraftWorkflowScheme.MockBuilder
           
 
Nested classes/interfaces inherited from interface com.atlassian.jira.workflow.DraftWorkflowScheme
DraftWorkflowScheme.Builder
 
Constructor Summary
MockDraftWorkflowScheme()
           
MockDraftWorkflowScheme(DraftWorkflowScheme ws)
           
MockDraftWorkflowScheme(Long id)
           
MockDraftWorkflowScheme(Long l, AssignableWorkflowScheme parentScheme)
           
 
Method Summary
 MockDraftWorkflowScheme.MockBuilder builder()
          Return a builder initialised with the state of the current workflow scheme.
 boolean equals(Object o)
           
 String getDescription()
          The description of the workflow scheme.
 Date getLastModifiedDate()
          The date the scheme was last updated (or created).
 ApplicationUser getLastModifiedUser()
          The user that last modified the scheme.
 String getName()
          The name of the workflow scheme.
 AssignableWorkflowScheme getParentScheme()
          Return a reference to the parent of the draft scheme.
 int hashCode()
           
 boolean isDefault()
          Is the scheme the system default.
 boolean isDraft()
          Is the scheme a draft.
 MockDraftWorkflowScheme setLastModifiedDate(Date lastModifiedDate)
           
 MockDraftWorkflowScheme setLastModifiedUser(ApplicationUser lastModifiedUser)
           
 MockDraftWorkflowScheme setParentScheme(AssignableWorkflowScheme parentScheme)
           
 String toString()
           
 
Methods inherited from class com.atlassian.jira.workflow.MockWorkflowScheme
clearMappings, getActualDefaultWorkflow, getActualWorkflow, getConfiguredDefaultWorkflow, getConfiguredWorkflow, getId, getMappings, removeDefault, removeMapping, removeWorkflow, setDefaultWorkflow, setId, setMapping, setMappings
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.workflow.WorkflowScheme
getActualDefaultWorkflow, getActualWorkflow, getConfiguredDefaultWorkflow, getConfiguredWorkflow, getId, getMappings
 

Constructor Detail

MockDraftWorkflowScheme

public MockDraftWorkflowScheme()

MockDraftWorkflowScheme

public MockDraftWorkflowScheme(Long id)

MockDraftWorkflowScheme

public MockDraftWorkflowScheme(DraftWorkflowScheme ws)

MockDraftWorkflowScheme

public MockDraftWorkflowScheme(Long l,
                               AssignableWorkflowScheme parentScheme)
Method Detail

getLastModifiedUser

public ApplicationUser getLastModifiedUser()
Description copied from interface: DraftWorkflowScheme
The user that last modified the scheme.

Specified by:
getLastModifiedUser in interface DraftWorkflowScheme
Returns:
the user that last modified the scheme. Can be null.

getLastModifiedDate

@Nonnull
public Date getLastModifiedDate()
Description copied from interface: DraftWorkflowScheme
The date the scheme was last updated (or created).

Specified by:
getLastModifiedDate in interface DraftWorkflowScheme
Returns:
the date the scheme was last updated or created.

getParentScheme

public AssignableWorkflowScheme getParentScheme()
Description copied from interface: DraftWorkflowScheme
Return a reference to the parent of the draft scheme.

Specified by:
getParentScheme in interface DraftWorkflowScheme
Returns:
a reference to the parent of the draft scheme.

setParentScheme

public MockDraftWorkflowScheme setParentScheme(AssignableWorkflowScheme parentScheme)

builder

public MockDraftWorkflowScheme.MockBuilder builder()
Description copied from interface: DraftWorkflowScheme
Return a builder initialised with the state of the current workflow scheme.

Specified by:
builder in interface DraftWorkflowScheme
Returns:
a new builder initialised with the state of the current workflow scheme.

setLastModifiedUser

public MockDraftWorkflowScheme setLastModifiedUser(ApplicationUser lastModifiedUser)

setLastModifiedDate

public MockDraftWorkflowScheme setLastModifiedDate(Date lastModifiedDate)

getName

public String getName()
Description copied from interface: WorkflowScheme
The name of the workflow scheme.

Specified by:
getName in interface WorkflowScheme
Returns:
the name of the workflow scheme.

getDescription

public String getDescription()
Description copied from interface: WorkflowScheme
The description of the workflow scheme.

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.

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-2014 Atlassian. All Rights Reserved.