Class WorkflowMigrationServiceImpl

java.lang.Object
com.atlassian.greenhopper.workflow.WorkflowMigrationServiceImpl
All Implemented Interfaces:
WorkflowMigrationService

@Service public class WorkflowMigrationServiceImpl extends Object implements WorkflowMigrationService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WorkflowMigrationServiceImpl

      public WorkflowMigrationServiceImpl()
  • 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: WorkflowMigrationService
      Attempts 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:
      doMigrate in interface WorkflowMigrationService
      Parameters:
      projectId - the ID of the project
      workflowSchemeId - the ID of the target workflow scheme
      Returns:
      either a TaskDescriptor to hold the status of the migration task, or nothing to signify that the migration was instant
      Throws:
      WorkflowMigrationException