com.atlassian.jira.workflow.migration
Class AbstractWorkflowMigrationHelper

java.lang.Object
  extended by com.atlassian.jira.workflow.migration.AbstractWorkflowMigrationHelper
Direct Known Subclasses:
EnterpriseWorkflowMigrationHelper, ProfessionalWorkflowMigrationHelper

public abstract class AbstractWorkflowMigrationHelper
extends java.lang.Object


Constructor Summary
protected AbstractWorkflowMigrationHelper(org.ofbiz.core.entity.DelegatorInterface delegator, IssueManager issueManager, com.opensymphony.user.User user, I18nHelper i18nHelper)
           
 
Method Summary
protected  ConstantsManager getConstantsManager()
           
protected  org.ofbiz.core.entity.DelegatorInterface getDelegator()
           
protected  I18nHelper getI18nHelper()
           
protected  java.util.Collection getIssueIds(java.lang.Long projectId)
           
abstract  org.apache.log4j.Logger getLogger()
          Allows access to the underlying logger.
protected  java.util.Collection getUniqueStatuses(org.ofbiz.core.entity.EntityCondition condition)
          AbstractWorkflowMigrationHelper Retrieves a collection of unique status GenericValues for which issues exist given a EntityCondition that will be used as the SQL WHERE clause against the Issue table.
protected  com.opensymphony.user.User getUser()
           
abstract  WorkflowMigrationResult migrate(TaskProgressSink sink)
          Called to migrate the issues into a new workflow
protected  org.ofbiz.core.entity.GenericValue retrieveIssue(java.lang.Long issueId)
           
protected  Issue retrieveIssueObject(java.lang.Long issueId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWorkflowMigrationHelper

protected AbstractWorkflowMigrationHelper(org.ofbiz.core.entity.DelegatorInterface delegator,
                                          IssueManager issueManager,
                                          com.opensymphony.user.User user,
                                          I18nHelper i18nHelper)
Method Detail

migrate

public abstract WorkflowMigrationResult migrate(TaskProgressSink sink)
                                         throws org.ofbiz.core.entity.GenericEntityException,
                                                WorkflowException
Called to migrate the issues into a new workflow

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

getLogger

public abstract org.apache.log4j.Logger getLogger()
Allows access to the underlying logger.

Returns:
the Logger of the implementing Professional or Enterpise class.

getDelegator

protected final org.ofbiz.core.entity.DelegatorInterface getDelegator()

getConstantsManager

protected final ConstantsManager getConstantsManager()

getUser

protected final com.opensymphony.user.User getUser()

getI18nHelper

protected final I18nHelper getI18nHelper()

getIssueIds

protected java.util.Collection getIssueIds(java.lang.Long projectId)
                                    throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

retrieveIssue

protected org.ofbiz.core.entity.GenericValue retrieveIssue(java.lang.Long issueId)
                                                    throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

retrieveIssueObject

protected Issue retrieveIssueObject(java.lang.Long issueId)
                             throws DataAccessException
Throws:
DataAccessException

getUniqueStatuses

protected java.util.Collection getUniqueStatuses(org.ofbiz.core.entity.EntityCondition condition)
                                          throws org.ofbiz.core.entity.GenericEntityException
AbstractWorkflowMigrationHelper Retrieves a collection of unique status GenericValues for which issues exist given a EntityCondition that will be used as the SQL WHERE clause against the Issue table.

Throws:
org.ofbiz.core.entity.GenericEntityException


Copyright © 2002-2010 Atlassian. All Rights Reserved.