Class WorkflowSchemeTemplateImpl
java.lang.Object
com.atlassian.jira.project.template.hook.WorkflowSchemeTemplateImpl
- All Implemented Interfaces:
WorkflowSchemeTemplate
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowSchemeTemplateImpl
(String name, String description, String defaultWorkflow, List<WorkflowTemplateImpl> workflowTemplates) -
Method Summary
Modifier and TypeMethodDescriptionReturns the key of the default worfklow.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.name()
Returns the name of the workflow scheme.Returns the workflow templates of this workflow scheme.
-
Constructor Details
-
WorkflowSchemeTemplateImpl
public WorkflowSchemeTemplateImpl(String name, String description, String defaultWorkflow, List<WorkflowTemplateImpl> workflowTemplates)
-
-
Method Details
-
name
Description copied from interface:WorkflowSchemeTemplate
Returns the name of the workflow scheme.- Specified by:
name
in interfaceWorkflowSchemeTemplate
- Returns:
- the workflow scheme name
-
description
Description copied from interface:WorkflowSchemeTemplate
Returns the description of the workflow scheme.- Specified by:
description
in interfaceWorkflowSchemeTemplate
- Returns:
- the workflow scheme description
-
defaultWorkflow
Description copied from interface:WorkflowSchemeTemplate
Returns the key of the default worfklow.- Specified by:
defaultWorkflow
in interfaceWorkflowSchemeTemplate
- Returns:
- the default workflow key
-
workflowTemplates
Description copied from interface:WorkflowSchemeTemplate
Returns the workflow templates of this workflow scheme.- Specified by:
workflowTemplates
in interfaceWorkflowSchemeTemplate
- Returns:
- list of workflow templates.
-
hasWorkflow
Description copied from interface:WorkflowSchemeTemplate
Indicates whether this workflow scheme template has a workflow which matches the specified workflow key.- Specified by:
hasWorkflow
in interfaceWorkflowSchemeTemplate
- Parameters:
workflowKey
- unique id for the workflow- Returns:
- whether this workflow scheme has a workflow template with the specified key or not
-