com.atlassian.jira.workflow
Class MockAssignableWorkflowScheme

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

public class MockAssignableWorkflowScheme
extends MockWorkflowScheme
implements AssignableWorkflowScheme

Since:
v5.2

Nested Class Summary
static class MockAssignableWorkflowScheme.MockBuilder
           
 
Nested classes/interfaces inherited from interface com.atlassian.jira.workflow.AssignableWorkflowScheme
AssignableWorkflowScheme.Builder
 
Constructor Summary
MockAssignableWorkflowScheme()
           
MockAssignableWorkflowScheme(AssignableWorkflowScheme scheme)
           
MockAssignableWorkflowScheme(Long id, String name)
           
MockAssignableWorkflowScheme(Long id, String name, String description)
           
 
Method Summary
 AssignableWorkflowScheme.Builder 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.
 String getName()
          The name of the workflow scheme.
 int hashCode()
           
 boolean isDefault()
          Is the scheme the system default.
 boolean isDraft()
          Is the scheme a draft.
 MockAssignableWorkflowScheme setDefaultScheme(boolean defaultScheme)
           
 MockAssignableWorkflowScheme setDescription(String description)
           
 MockAssignableWorkflowScheme setName(String name)
           
static com.google.common.base.Function<AssignableWorkflowScheme,MockAssignableWorkflowScheme> toMock()
           
 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

MockAssignableWorkflowScheme

public MockAssignableWorkflowScheme()

MockAssignableWorkflowScheme

public MockAssignableWorkflowScheme(Long id,
                                    String name)

MockAssignableWorkflowScheme

public MockAssignableWorkflowScheme(Long id,
                                    String name,
                                    String description)

MockAssignableWorkflowScheme

public MockAssignableWorkflowScheme(AssignableWorkflowScheme scheme)
Method Detail

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.