com.atlassian.jira.workflow.migration
Class AbstractWorkflowMigrationHelper
java.lang.Object
com.atlassian.jira.workflow.migration.AbstractWorkflowMigrationHelper
- Direct Known Subclasses:
- EnterpriseWorkflowMigrationHelper, ProfessionalWorkflowMigrationHelper
public abstract class AbstractWorkflowMigrationHelper
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWorkflowMigrationHelper
protected AbstractWorkflowMigrationHelper(org.ofbiz.core.entity.DelegatorInterface delegator,
IssueManager issueManager,
User user,
I18nHelper i18nHelper)
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 User getUser()
getI18nHelper
protected final I18nHelper getI18nHelper()
getIssueIds
protected Collection getIssueIds(Long projectId)
throws org.ofbiz.core.entity.GenericEntityException
- Throws:
org.ofbiz.core.entity.GenericEntityException
retrieveIssue
protected org.ofbiz.core.entity.GenericValue retrieveIssue(Long issueId)
throws org.ofbiz.core.entity.GenericEntityException
- Throws:
org.ofbiz.core.entity.GenericEntityException
retrieveIssueObject
protected Issue retrieveIssueObject(Long issueId)
throws DataAccessException
- Throws:
DataAccessException
getUniqueStatuses
protected 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-2009 Atlassian. All Rights Reserved.