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


Constructor Summary
ProfessionalWorkflowMigrationHelper(java.lang.String workflowName, ProjectManager projectManager, WorkflowSchemeManager workflowSchemeManager, WorkflowManager workflowManager, org.ofbiz.core.entity.GenericDelegator delegator, IssueManager issueManager, com.opensymphony.user.User user, I18nHelper i18nHelper)
           
 
Method Summary
 void addMapping(org.ofbiz.core.entity.GenericValue oldStatus, org.ofbiz.core.entity.GenericValue newStatus)
           
 void calculateInputRequired(java.lang.String workflowName)
           
 org.apache.log4j.Logger getLogger()
          Allows access to the underlying logger.
 java.util.List getStatusesNeedingMigration()
           
 java.util.Map getWorkflowMigrationMapping()
           
 WorkflowMigrationResult migrate(TaskProgressSink taskProgressSink)
          Called to migrate the issues into a new workflow
 
Methods inherited from class com.atlassian.jira.workflow.migration.AbstractWorkflowMigrationHelper
getConstantsManager, getDelegator, getI18nHelper, getIssueIds, getUniqueStatuses, getUser, retrieveIssue, retrieveIssueObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfessionalWorkflowMigrationHelper

public ProfessionalWorkflowMigrationHelper(java.lang.String workflowName,
                                           ProjectManager projectManager,
                                           WorkflowSchemeManager workflowSchemeManager,
                                           WorkflowManager workflowManager,
                                           org.ofbiz.core.entity.GenericDelegator delegator,
                                           IssueManager issueManager,
                                           com.opensymphony.user.User user,
                                           I18nHelper i18nHelper)
Method Detail

calculateInputRequired

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

migrate

public WorkflowMigrationResult migrate(TaskProgressSink taskProgressSink)
                                throws org.ofbiz.core.entity.GenericEntityException,
                                       WorkflowException
Description copied from class: AbstractWorkflowMigrationHelper
Called to migrate the issues into a new workflow

Specified by:
migrate in class AbstractWorkflowMigrationHelper
Parameters:
taskProgressSink - a TaskProgressSink to allow for asynch running of the migration
Returns:
a WorkflowMigrationResult that describes how the migration went
Throws:
org.ofbiz.core.entity.GenericEntityException - - if OfBiz entity exceptions happen
WorkflowException - - if the workflow is in a bad way

addMapping

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

getWorkflowMigrationMapping

public java.util.Map getWorkflowMigrationMapping()

getStatusesNeedingMigration

public java.util.List getStatusesNeedingMigration()

getLogger

public org.apache.log4j.Logger getLogger()
Description copied from class: AbstractWorkflowMigrationHelper
Allows access to the underlying logger.

Specified by:
getLogger in class AbstractWorkflowMigrationHelper
Returns:
the Logger of the implementing Professional or Enterpise class.


Copyright © 2002-2010 Atlassian. All Rights Reserved.