com.atlassian.greenhopper.service.workflow
Class WorkflowCreationServiceImpl
java.lang.Object
com.atlassian.greenhopper.global.AbstractLoggable
com.atlassian.greenhopper.service.workflow.WorkflowCreationServiceImpl
- All Implemented Interfaces:
- WorkflowCreationService
@Service
public class WorkflowCreationServiceImpl
- extends AbstractLoggable
- implements WorkflowCreationService
Implementation of the workflow creation service
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkflowCreationServiceImpl
public WorkflowCreationServiceImpl()
initialize
public void initialize()
- Initializes this service
- Specified by:
initialize in interface WorkflowCreationService
getOrCreateWorkflowScheme
@NotNull
public ServiceOutcome<com.atlassian.jira.scheme.Scheme> getOrCreateWorkflowScheme(WorkflowCreationService.Preset preset)
- Description copied from interface:
WorkflowCreationService
- Get the default GreenHopper workflow scheme. Associated with the JiraWorkflow returned by getOrCreateSampleGHWorkflow
Will create both scheme and workflow if not yet created
- Specified by:
getOrCreateWorkflowScheme in interface WorkflowCreationService
getOrCreateWorkflow
@NotNull
public ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> getOrCreateWorkflow(WorkflowCreationService.Preset preset)
- Description copied from interface:
WorkflowCreationService
- Get or create the default GreenHopper workflow. A call to this method will create the workflow if not yet existing
- Specified by:
getOrCreateWorkflow in interface WorkflowCreationService
doesProjectUseWorkflow
@NotNull
public ServiceOutcome<java.lang.Boolean> doesProjectUseWorkflow(com.atlassian.jira.project.Project project,
WorkflowCreationService.Preset preset)
- Specified by:
doesProjectUseWorkflow in interface WorkflowCreationService
- Parameters:
project - the project in question
- Returns:
- true if project uses sample GH workflow
associateProjectWithWorkflow
@NotNull
public ServiceOutcome<java.lang.Void> associateProjectWithWorkflow(com.atlassian.jira.project.Project project,
WorkflowCreationService.Preset preset)
- Description copied from interface:
WorkflowCreationService
- Associate a project with a given preset
- Specified by:
associateProjectWithWorkflow in interface WorkflowCreationService
Copyright © 2007-2012 Atlassian. All Rights Reserved.