com.atlassian.jira.workflow.migration
Class DefaultMigrationHelperFactory

java.lang.Object
  extended by com.atlassian.jira.workflow.migration.DefaultMigrationHelperFactory
All Implemented Interfaces:
MigrationHelperFactory

public class DefaultMigrationHelperFactory
extends Object
implements MigrationHelperFactory

Since:
v5.1

Constructor Summary
DefaultMigrationHelperFactory(WorkflowManager workflowManager, OfBizDelegator delegator, WorkflowSchemeManager schemeManager, ConstantsManager constantsManager, JiraAuthenticationContext authCtx, TaskManager taskManager, IssueIndexManager issueIndexManager, WorkflowSchemeManager workflowSchemeManager, com.atlassian.event.api.EventPublisher eventPublisher, ProjectManager projectManager)
           
 
Method Summary
 AssignableWorkflowSchemeMigrationHelper createMigrationHelper(Project project, AssignableWorkflowScheme scheme)
          Create an instance of a AssignableWorkflowSchemeMigrationHelper.
 DraftWorkflowSchemeMigrationHelper createMigrationHelper(Project project, DraftWorkflowScheme draft)
          Create an instance of a DraftWorkflowSchemeSingleProjectMigrationHelper.
 DraftWorkflowSchemeMigrationHelper createMigrationHelper(Project initialProject, List<Project> projects, DraftWorkflowScheme draft)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMigrationHelperFactory

public DefaultMigrationHelperFactory(WorkflowManager workflowManager,
                                     OfBizDelegator delegator,
                                     WorkflowSchemeManager schemeManager,
                                     ConstantsManager constantsManager,
                                     JiraAuthenticationContext authCtx,
                                     TaskManager taskManager,
                                     IssueIndexManager issueIndexManager,
                                     WorkflowSchemeManager workflowSchemeManager,
                                     com.atlassian.event.api.EventPublisher eventPublisher,
                                     ProjectManager projectManager)
Method Detail

createMigrationHelper

public AssignableWorkflowSchemeMigrationHelper createMigrationHelper(Project project,
                                                                     AssignableWorkflowScheme scheme)
                                                              throws org.ofbiz.core.entity.GenericEntityException
Description copied from interface: MigrationHelperFactory
Create an instance of a AssignableWorkflowSchemeMigrationHelper.

Specified by:
createMigrationHelper in interface MigrationHelperFactory
Parameters:
project - the project to migration. Can't be null.
scheme - the scheme to migrate to. Can't be null.
Returns:
the created helper.
Throws:
org.ofbiz.core.entity.GenericEntityException - if DB errors.

createMigrationHelper

public DraftWorkflowSchemeMigrationHelper createMigrationHelper(Project project,
                                                                DraftWorkflowScheme draft)
                                                         throws org.ofbiz.core.entity.GenericEntityException
Description copied from interface: MigrationHelperFactory
Create an instance of a DraftWorkflowSchemeSingleProjectMigrationHelper.

Specified by:
createMigrationHelper in interface MigrationHelperFactory
Parameters:
project - the project to migration. Can't be null.
draft - the draft scheme to migrate to. Can't be null.
Returns:
the created helper.
Throws:
org.ofbiz.core.entity.GenericEntityException - if DB errors.

createMigrationHelper

public DraftWorkflowSchemeMigrationHelper createMigrationHelper(Project initialProject,
                                                                List<Project> projects,
                                                                DraftWorkflowScheme draft)
                                                         throws org.ofbiz.core.entity.GenericEntityException
Specified by:
createMigrationHelper in interface MigrationHelperFactory
Throws:
org.ofbiz.core.entity.GenericEntityException


Copyright © 2002-2012 Atlassian. All Rights Reserved.