com.atlassian.jira.workflow.migration.professional
Class ProfessionalWorkflowMigrationHelper

java.lang.Object
  extended by com.atlassian.jira.workflow.migration.AbstractWorkflowMigrationHelper
      extended by com.atlassian.jira.workflow.migration.professional.ProfessionalWorkflowMigrationHelper

public class ProfessionalWorkflowMigrationHelper
extends AbstractWorkflowMigrationHelper


Field Summary
(package private)  JiraAuthenticationContext authenticationContext
           
(package private)  JiraWorkflow existingWorkflow
           
(package private)  JiraWorkflow targetWorkflow
           
 
Constructor Summary
ProfessionalWorkflowMigrationHelper(ProjectManager projectManager, WorkflowManager workflowManager, org.ofbiz.core.entity.GenericDelegator delegator, JiraAuthenticationContext authenticationContext, IssueManager issueManager)
           
 
Method Summary
 void addMapping(org.ofbiz.core.entity.GenericValue oldStatus, org.ofbiz.core.entity.GenericValue newStatus)
           
 void calculateInputRequired(String workflowName)
           
 List getStatusesNeedingMigration()
           
 Map getWorkflowMigrationMapping()
           
 WorkflowMigrationResult migrate()
           
(package private)  void migrateIssue(org.ofbiz.core.entity.GenericValue issueGV)
          This will throw an exception if the issue failed to migrate correctly If this occurs we will drop into the below block and add the issue to the failedIssue map.
 
Methods inherited from class com.atlassian.jira.workflow.migration.AbstractWorkflowMigrationHelper
getConstantsManager, getDelegator, getIssueIds, getUniqueStatuses, retrieveIssue, retrieveIssueObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

existingWorkflow

JiraWorkflow existingWorkflow

targetWorkflow

JiraWorkflow targetWorkflow

authenticationContext

JiraAuthenticationContext authenticationContext
Constructor Detail

ProfessionalWorkflowMigrationHelper

public ProfessionalWorkflowMigrationHelper(ProjectManager projectManager,
                                           WorkflowManager workflowManager,
                                           org.ofbiz.core.entity.GenericDelegator delegator,
                                           JiraAuthenticationContext authenticationContext,
                                           IssueManager issueManager)
Method Detail

calculateInputRequired

public void calculateInputRequired(String workflowName)
                            throws org.ofbiz.core.entity.GenericEntityException,
                                   WorkflowException
Throws:
org.ofbiz.core.entity.GenericEntityException
WorkflowException

migrate

public WorkflowMigrationResult migrate()
                                throws org.ofbiz.core.entity.GenericEntityException,
                                       WorkflowException
Throws:
org.ofbiz.core.entity.GenericEntityException
WorkflowException

migrateIssue

void migrateIssue(org.ofbiz.core.entity.GenericValue issueGV)
            throws Exception
This will throw an exception if the issue failed to migrate correctly If this occurs we will drop into the below block and add the issue to the failedIssue map.

Parameters:
issueGV -
Throws:
Exception

addMapping

public void addMapping(org.ofbiz.core.entity.GenericValue oldStatus,
                       org.ofbiz.core.entity.GenericValue newStatus)

getWorkflowMigrationMapping

public Map getWorkflowMigrationMapping()

getStatusesNeedingMigration

public List getStatusesNeedingMigration()


Copyright © 2002-2007 Atlassian. All Rights Reserved.