public class

DraftWorkflowSchemeBuilder

extends Object
implements DraftWorkflowScheme.Builder WorkflowScheme.Builder<T extends Builder<T>>
java.lang.Object
   ↳ com.atlassian.jira.workflow.DraftWorkflowSchemeBuilder

Summary

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

public DraftWorkflowScheme build ()

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

Remove the default mapping from the scheme.

Returns
  • this builder.

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