com.atlassian.jira.workflow.migration.enterprise
Class EnterpriseWorkflowMigrationHelper

java.lang.Object
  extended by com.atlassian.jira.workflow.migration.AbstractWorkflowMigrationHelper
      extended by com.atlassian.jira.workflow.migration.enterprise.EnterpriseWorkflowMigrationHelper

public class EnterpriseWorkflowMigrationHelper
extends AbstractWorkflowMigrationHelper


Constructor Summary
EnterpriseWorkflowMigrationHelper(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue targetScheme, WorkflowManager workflowManager, org.ofbiz.core.entity.DelegatorInterface delegator, IssueManager issueManager, SchemeManager schemeManager, I18nHelper i18nHelper, com.opensymphony.user.User user)
           
 
Method Summary
 void addMapping(org.ofbiz.core.entity.GenericValue issueType, org.ofbiz.core.entity.GenericValue oldStatus, org.ofbiz.core.entity.GenericValue newStatus)
           
 void associateProjectAndWorkflowScheme(SchemeManager schemeManager, org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue scheme)
           
 org.apache.log4j.Logger getLogger()
          Allows access to the underlying logger.
 java.util.Collection getStatusesNeedingMigration(org.ofbiz.core.entity.GenericValue issueType)
           
 java.util.List getTypesNeedingMigration()
           
 WorkflowMigrationResult migrate(TaskProgressSink sink)
          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

EnterpriseWorkflowMigrationHelper

public EnterpriseWorkflowMigrationHelper(org.ofbiz.core.entity.GenericValue project,
                                         org.ofbiz.core.entity.GenericValue targetScheme,
                                         WorkflowManager workflowManager,
                                         org.ofbiz.core.entity.DelegatorInterface delegator,
                                         IssueManager issueManager,
                                         SchemeManager schemeManager,
                                         I18nHelper i18nHelper,
                                         com.opensymphony.user.User user)
                                  throws WorkflowException,
                                         org.ofbiz.core.entity.GenericEntityException
Throws:
WorkflowException
org.ofbiz.core.entity.GenericEntityException
Method Detail

getTypesNeedingMigration

public java.util.List getTypesNeedingMigration()

getStatusesNeedingMigration

public java.util.Collection getStatusesNeedingMigration(org.ofbiz.core.entity.GenericValue issueType)

migrate

public WorkflowMigrationResult migrate(TaskProgressSink sink)
                                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:
sink - 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 issueType,
                       org.ofbiz.core.entity.GenericValue oldStatus,
                       org.ofbiz.core.entity.GenericValue newStatus)

associateProjectAndWorkflowScheme

public void associateProjectAndWorkflowScheme(SchemeManager schemeManager,
                                              org.ofbiz.core.entity.GenericValue project,
                                              org.ofbiz.core.entity.GenericValue scheme)
                                       throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

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.