public static interface

WorkflowScheme.Builder

com.atlassian.jira.workflow.WorkflowScheme.Builder<T extends com.atlassian.jira.workflow.WorkflowScheme.Builder<T>>
Known Indirect Subclasses

Class Overview

A builder that can be used to change a workflow scheme.

Summary

Public Methods
@Nonnull T 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 T removeDefault()
Remove the default mapping from the scheme.
@Nonnull T removeMapping(String issueTypeId)
Remove the mapping for the passed issue type from the scheme.
@Nonnull T removeWorkflow(String workflowName)
Remove all explicit references to the passed workflow from the scheme.
@Nonnull T setDefaultWorkflow(String workflowName)
Set the default workflow for the scheme.
@Nonnull T setMapping(String issueTypeId, String workflowName)
Set the workflow for the passed issue type.
@Nonnull T setMappings(Map<StringString> mappings)
Set the workflow map for the scheme.

Public Methods

@Nonnull public T 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 T removeDefault ()

Remove the default mapping from the scheme.

Returns
  • this builder.

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

Set the default workflow for the scheme.

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

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