public static class

MockDraftWorkflowScheme.MockBuilder

extends Object
implements DraftWorkflowScheme.Builder
java.lang.Object
   ↳ com.atlassian.jira.workflow.MockDraftWorkflowScheme.MockBuilder

Summary

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

Public Constructors

public MockDraftWorkflowScheme.MockBuilder (DraftWorkflowScheme ws)

Public Methods

public DraftWorkflowScheme build ()

@Nonnull public DraftWorkflowScheme.Builder clearMappings ()

Remove all the mappings currently stored in the builder.

Returns
  • this builder

public String getDefaultWorkflow ()

public String getDescription ()

public Long getId ()

public Date getLastModifiedDate ()

public ApplicationUser getLastModifiedUser ()

public String getMapping (String issueTypeId)

public Map<StringString> getMappings ()

public String getName ()

public AssignableWorkflowScheme getParentScheme ()

public boolean isDefault ()

public boolean isDraft ()

@Nonnull public DraftWorkflowScheme.Builder removeDefault ()

Remove the default mapping from the scheme.

Returns
  • this builder.

@Nonnull public DraftWorkflowScheme.Builder 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 DraftWorkflowScheme.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 DraftWorkflowScheme.Builder setDefaultWorkflow (String workflowName)

Set the default workflow for the scheme.

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

@Nonnull public DraftWorkflowScheme.Builder 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 DraftWorkflowScheme.Builder 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.

public String toString ()