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<CheckWorkflowEntitiesByNameResult> checkForSimplifiedWorkflowNamedAfterProject(com.atlassian.jira.project.Project project)
          Look for the existence of workflows or workflow schemes with the reserved name for "GreenHopper Simplified Workflow" for the given project.
 ServiceOutcome<com.atlassian.jira.scheme.Scheme> createSimplifiedWorkflowForExistingProject(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.project.Project project)
          Take the workflow of the existing project, and create a copy which is a GreenHopper Simplified Workflow.
 ServiceOutcome<java.lang.Void> createSimplifiedWorkflowForNewProject(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.project.Project project)
          Create a "GreenHopper Simplified Workflow" workflow scheme and workflow for the newly created project
 

Method Detail

checkForSimplifiedWorkflowNamedAfterProject

@NotNull
ServiceOutcome<CheckWorkflowEntitiesByNameResult> checkForSimplifiedWorkflowNamedAfterProject(com.atlassian.jira.project.Project project)
Look for the existence of workflows or workflow schemes with the reserved name for "GreenHopper Simplified Workflow" for the given project. This is used when attempting to convert an existing project's workflow into the GreenHopper Simplified Workflow.

Parameters:
project - the project
Returns:
the result
See Also:
CheckWorkflowEntitiesByNameResult

createSimplifiedWorkflowForNewProject

@NotNull
ServiceOutcome<java.lang.Void> createSimplifiedWorkflowForNewProject(com.atlassian.crowd.embedded.api.User user,
                                                                             com.atlassian.jira.project.Project project)
Create a "GreenHopper Simplified Workflow" workflow scheme and workflow for the newly created project


createSimplifiedWorkflowForExistingProject

@NotNull
ServiceOutcome<com.atlassian.jira.scheme.Scheme> createSimplifiedWorkflowForExistingProject(com.atlassian.crowd.embedded.api.User user,
                                                                                                    com.atlassian.jira.project.Project project)
Take the workflow of the existing project, and create a copy which is a GreenHopper Simplified Workflow. Does not associate the project to the workflow scheme.

Parameters:
user - the user
project - the existing project
Returns:
the new scheme which the project could be associated to


Copyright © 2007-2012 Atlassian. All Rights Reserved.