com.atlassian.jira.workflow.migration
Class WorkflowMigrationMapping

java.lang.Object
  extended by com.atlassian.jira.workflow.migration.WorkflowMigrationMapping

public class WorkflowMigrationMapping
extends Object

The class is used during workflow migration for a project. It holds mappings between statuses on old workflow and new workflow. As workflows are configurable per issue type of Enterprise Edition of JIRA, the status mappings are held on per issue type basis.

This class also holds ids of issues that start the migration on the wrong workflow. For example, if a previous workflow migration failed, some issues have already been migrated. We need to keep track of these issues to ensure that they get migrated again.


Constructor Summary
WorkflowMigrationMapping()
           
 
Method Summary
 void addIssueIdsOnWorongWorkflow(Collection<Long> issueIds)
           
 void addMapping(org.ofbiz.core.entity.GenericValue issueType, org.ofbiz.core.entity.GenericValue oldStatus, org.ofbiz.core.entity.GenericValue newStatus)
           
 org.ofbiz.core.entity.GenericValue getTargetStatus(org.ofbiz.core.entity.GenericValue issue)
           
 boolean isIssueOnWrongWorkflow(Long issueId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowMigrationMapping

public WorkflowMigrationMapping()
Method Detail

addMapping

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

addIssueIdsOnWorongWorkflow

public void addIssueIdsOnWorongWorkflow(Collection<Long> issueIds)

isIssueOnWrongWorkflow

public boolean isIssueOnWrongWorkflow(Long issueId)

getTargetStatus

public org.ofbiz.core.entity.GenericValue getTargetStatus(org.ofbiz.core.entity.GenericValue issue)


Copyright © 2002-2014 Atlassian. All Rights Reserved.