public class

WorkflowSchemeTemplateImpl

extends Object
implements WorkflowSchemeTemplate
java.lang.Object
   ↳ com.atlassian.jira.project.template.hook.WorkflowSchemeTemplateImpl

Summary

Public Constructors
WorkflowSchemeTemplateImpl(String name, String description, String defaultWorkflow, List<WorkflowTemplateImpl> workflowTemplates)
Public Methods
Optional<String> defaultWorkflow()
Returns the key of the default worfklow.
String description()
Returns the description of the workflow scheme.
boolean hasWorkflow(String workflowKey)
Indicates whether this workflow scheme template has a workflow which matches the specified workflow key.
String name()
Returns the name of the workflow scheme.
List<WorkflowTemplate> workflowTemplates()
Returns the workflow templates of this workflow scheme.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.project.template.hook.WorkflowSchemeTemplate

Public Constructors

public WorkflowSchemeTemplateImpl (String name, String description, String defaultWorkflow, List<WorkflowTemplateImpl> workflowTemplates)

Public Methods

public Optional<String> defaultWorkflow ()

Returns the key of the default worfklow.

Returns
  • the default workflow key

public String description ()

Returns the description of the workflow scheme.

Returns
  • the workflow scheme description

public boolean hasWorkflow (String workflowKey)

Indicates whether this workflow scheme template has a workflow which matches the specified workflow key.

Parameters
workflowKey unique id for the workflow
Returns
  • whether this workflow scheme has a workflow template with the specified key or not

public String name ()

Returns the name of the workflow scheme.

Returns
  • the workflow scheme name

public List<WorkflowTemplate> workflowTemplates ()

Returns the workflow templates of this workflow scheme.

Returns
  • list of workflow templates.