public static class

MockAssignableWorkflowScheme.MockBuilder

extends Object
implements AssignableWorkflowScheme.Builder
java.lang.Object
   ↳ com.atlassian.jira.workflow.MockAssignableWorkflowScheme.MockBuilder

Summary

Public Constructors
MockAssignableWorkflowScheme.MockBuilder(AssignableWorkflowScheme ws)
Public Methods
@Nonnull MockAssignableWorkflowScheme build()
@Nonnull MockAssignableWorkflowScheme.MockBuilder clearMappings()
Remove all the mappings currently stored in the builder.
String getDefaultWorkflow()
String getDescription()
Long getId()
String getMapping(String issueTypeId)
Map<StringString> getMappings()
String getName()
boolean isDefault()
boolean isDraft()
@Nonnull MockAssignableWorkflowScheme.MockBuilder removeDefault()
Remove the default mapping from the scheme.
@Nonnull MockAssignableWorkflowScheme.MockBuilder removeMapping(String issueTypeId)
Remove the mapping for the passed issue type from the scheme.
@Nonnull AssignableWorkflowScheme.Builder removeWorkflow(String workflowName)
Remove all explicit references to the passed workflow from the scheme.
@Nonnull MockAssignableWorkflowScheme.MockBuilder setDefaultWorkflow(String workflowName)
Set the default workflow for the scheme.
@Nonnull AssignableWorkflowScheme.Builder setDescription(String description)
Set the description of the workflow scheme.
@Nonnull MockAssignableWorkflowScheme.MockBuilder setMapping(String issueTypeId, String workflowName)
Set the workflow for the passed issue type.
@Nonnull MockAssignableWorkflowScheme.MockBuilder setMappings(Map<StringString> mappings)
Set the workflow map for the scheme.
@Nonnull AssignableWorkflowScheme.Builder setName(String name)
Set the name of the worklflow scheme.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.workflow.AssignableWorkflowScheme.Builder
From interface com.atlassian.jira.workflow.WorkflowScheme.Builder

Public Constructors

public MockAssignableWorkflowScheme.MockBuilder (AssignableWorkflowScheme ws)

Public Methods

@Nonnull public MockAssignableWorkflowScheme build ()

@Nonnull public MockAssignableWorkflowScheme.MockBuilder clearMappings ()

Remove all the mappings currently stored in the builder.

Returns
  • this builder

public String getDefaultWorkflow ()

public String getDescription ()

public Long getId ()

public String getMapping (String issueTypeId)

public Map<StringString> getMappings ()

public String getName ()

public boolean isDefault ()

public boolean isDraft ()

@Nonnull public MockAssignableWorkflowScheme.MockBuilder removeDefault ()

Remove the default mapping from the scheme.

Returns
  • this builder.

@Nonnull public MockAssignableWorkflowScheme.MockBuilder removeMapping (String issueTypeId)

Remove the mapping for the passed issue type from the scheme.

Parameters
issueTypeId the issue type whose mapping is to be removed.
Returns
  • this builder.

@Nonnull public AssignableWorkflowScheme.Builder removeWorkflow (String workflowName)

Remove all explicit references to the passed workflow from the scheme. This method sets the default workflow to null if it matches the passed workflow.

Parameters
workflowName the name of the workflow to remove.
Returns
  • this builder.

@Nonnull public MockAssignableWorkflowScheme.MockBuilder setDefaultWorkflow (String workflowName)

Set the default workflow for the scheme.

Parameters
workflowName the default workflow for the scheme.
Returns
  • the builder.

@Nonnull public AssignableWorkflowScheme.Builder setDescription (String description)

Set the description of the workflow scheme.

Parameters
description the description of the workflow scheme.
Returns
  • the builder.

@Nonnull public MockAssignableWorkflowScheme.MockBuilder setMapping (String issueTypeId, String workflowName)

Set the workflow for the passed issue type.

Parameters
issueTypeId the issue type to map.
workflowName the workflow to map
Returns
  • the builder.

@Nonnull public MockAssignableWorkflowScheme.MockBuilder setMappings (Map<StringString> mappings)

Set the workflow map for the scheme. Its basically a mapping from issueTypeId -> workflowName.

Parameters
mappings the mappings to set in the scheme.
Returns
  • this builder.

@Nonnull public AssignableWorkflowScheme.Builder setName (String name)

Set the name of the worklflow scheme.

Parameters
name the name of the workflow scheme.
Returns
  • the builder.