com.atlassian.greenhopper.service.workflow
Interface WorkflowCreationService

All Known Implementing Classes:
WorkflowCreationServiceImpl

public interface WorkflowCreationService

Encapsulates JIRA workflow creation logic


Nested Class Summary
static class WorkflowCreationService.Preset
           
static class WorkflowCreationService.Status
           
 
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()
          Initalizes predefined workflows
 

Method Detail

initialize

void initialize()
Initalizes predefined workflows


getOrCreateWorkflowScheme

@NotNull
ServiceOutcome<com.atlassian.jira.scheme.Scheme> getOrCreateWorkflowScheme(WorkflowCreationService.Preset preset)
Get the default GreenHopper workflow scheme. Associated with the JiraWorkflow returned by getOrCreateSampleGHWorkflow Will create both scheme and workflow if not yet created


getOrCreateWorkflow

@NotNull
ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> getOrCreateWorkflow(WorkflowCreationService.Preset preset)
Get or create the default GreenHopper workflow. A call to this method will create the workflow if not yet existing


doesProjectUseWorkflow

@NotNull
ServiceOutcome<java.lang.Boolean> doesProjectUseWorkflow(com.atlassian.jira.project.Project project,
                                                                 WorkflowCreationService.Preset preset)
Parameters:
project - the project in question
Returns:
true if project uses sample GH workflow

associateProjectWithWorkflow

@NotNull
ServiceOutcome<java.lang.Void> associateProjectWithWorkflow(com.atlassian.jira.project.Project project,
                                                                    WorkflowCreationService.Preset preset)
Associate a project with a given preset



Copyright © 2007-2012 Atlassian. All Rights Reserved.