Class WorkflowMigrationServiceImpl
java.lang.Object
com.atlassian.greenhopper.workflow.WorkflowMigrationServiceImpl
- All Implemented Interfaces:
WorkflowMigrationService
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowMigrationServiceImpl(com.atlassian.jira.workflow.migration.MigrationHelperFactory migrationHelperFactory, com.atlassian.jira.project.ProjectManager projectManager, com.atlassian.jira.workflow.WorkflowSchemeManager workflowSchemeManager) -
Method Summary
Modifier and TypeMethodDescriptionio.atlassian.fugue.Option<com.atlassian.jira.task.TaskDescriptor<com.atlassian.jira.web.action.admin.workflow.WorkflowMigrationResult>> doMigrate(long projectId, long workflowSchemeId) Attempts to migrate the specified project to the specified workflow scheme.
-
Constructor Details
-
WorkflowMigrationServiceImpl
public WorkflowMigrationServiceImpl(com.atlassian.jira.workflow.migration.MigrationHelperFactory migrationHelperFactory, com.atlassian.jira.project.ProjectManager projectManager, com.atlassian.jira.workflow.WorkflowSchemeManager workflowSchemeManager)
-
-
Method Details
-
doMigrate
public io.atlassian.fugue.Option<com.atlassian.jira.task.TaskDescriptor<com.atlassian.jira.web.action.admin.workflow.WorkflowMigrationResult>> doMigrate(long projectId, long workflowSchemeId) throws WorkflowMigrationException Description copied from interface:WorkflowMigrationServiceAttempts to migrate the specified project to the specified workflow scheme. If a project has no issues to migrate, the migration will be instant (re-association of project to new scheme). Otherwise, a long-running asynchronous task will be kicked off.- Specified by:
doMigratein interfaceWorkflowMigrationService- Parameters:
projectId- the ID of the projectworkflowSchemeId- the ID of the target workflow scheme- Returns:
- either a
TaskDescriptorto hold the status of the migration task, or nothing to signify that the migration was instant - Throws:
WorkflowMigrationException- if anything goes wrong underneath (mostly GenericEntityExceptions)
-