com.atlassian.greenhopper.service.workflow
Class WorkflowCreationServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.service.workflow.WorkflowCreationServiceImpl
All Implemented Interfaces:
WorkflowCreationService

@Service
public class WorkflowCreationServiceImpl
extends AbstractLoggable
implements WorkflowCreationService

Implementation of the workflow creation service


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.greenhopper.service.workflow.WorkflowCreationService
WorkflowCreationService.Preset, WorkflowCreationService.Status
 
Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
WorkflowCreationServiceImpl()
           
 
Method Summary
 ServiceOutcome<java.lang.Void> associateProjectWithWorkflow(com.atlassian.jira.project.Project project, WorkflowCreationService.Preset preset)
          Associate a project with a given preset
 ServiceOutcome<java.lang.Boolean> doesProjectUseWorkflow(com.atlassian.jira.project.Project project, WorkflowCreationService.Preset preset)
           
 ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> getOrCreateWorkflow(WorkflowCreationService.Preset preset)
          Get or create the default GreenHopper workflow.
 ServiceOutcome<com.atlassian.jira.scheme.Scheme> getOrCreateWorkflowScheme(WorkflowCreationService.Preset preset)
          Get the default GreenHopper workflow scheme.
 void initialize()
          Initializes this service
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logError, logException, logInfo, logTrace, logWarn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowCreationServiceImpl

public WorkflowCreationServiceImpl()
Method Detail

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.