com.atlassian.jira.web.action.admin.workflow
Class AbstractWorkflowMigrationResult

java.lang.Object
  extended by com.atlassian.jira.web.action.admin.workflow.AbstractWorkflowMigrationResult
All Implemented Interfaces:
WorkflowMigrationResult, Serializable
Direct Known Subclasses:
WorkflowMigrationSuccess, WorkflowMigrationTerminated

public abstract class AbstractWorkflowMigrationResult
extends Object
implements WorkflowMigrationResult

See Also:
Serialized Form

Field Summary
protected  Map<Long,String> failedIssues
           
 
Fields inherited from interface com.atlassian.jira.web.action.admin.workflow.WorkflowMigrationResult
SUCCESS, TERMINATED
 
Constructor Summary
protected AbstractWorkflowMigrationResult(Map<Long,String> failedIssues)
           
 
Method Summary
 Map<Long,String> getFailedIssues()
          A Map of issue ids to issue keys of failed issues.
 int getNumberOfFailedIssues()
          The number of issues that failed during the migration, or until the migration was terminated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.web.action.admin.workflow.WorkflowMigrationResult
getErrorCollection, getResult
 

Field Detail

failedIssues

protected final Map<Long,String> failedIssues
Constructor Detail

AbstractWorkflowMigrationResult

protected AbstractWorkflowMigrationResult(Map<Long,String> failedIssues)
Method Detail

getNumberOfFailedIssues

public int getNumberOfFailedIssues()
Description copied from interface: WorkflowMigrationResult
The number of issues that failed during the migration, or until the migration was terminated.

Specified by:
getNumberOfFailedIssues in interface WorkflowMigrationResult
Returns:
0 if no failures were encountered, or if the migration did not start due to found errors (see WorkflowMigrationResult.getNumberOfFailedIssues()). Or the number of failures during the migration, or until the migration was terminated.

getFailedIssues

public Map<Long,String> getFailedIssues()
Description copied from interface: WorkflowMigrationResult
A Map of issue ids to issue keys of failed issues.

Specified by:
getFailedIssues in interface WorkflowMigrationResult
Returns:
an empty map if WorkflowMigrationResult.getNumberOfFailedIssues() is 0 or a mapping of issue id to issue key for every failed issue during the migration.


Copyright © 2002-2015 Atlassian. All Rights Reserved.