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

java.lang.Object
  extended by com.atlassian.jira.web.action.admin.workflow.WorkflowMigrationResultForMultipleProjects
All Implemented Interfaces:
WorkflowMigrationResult

public class WorkflowMigrationResultForMultipleProjects
extends Object
implements WorkflowMigrationResult


Field Summary
 
Fields inherited from interface com.atlassian.jira.web.action.admin.workflow.WorkflowMigrationResult
SUCCESS, TERMINATED
 
Constructor Summary
WorkflowMigrationResultForMultipleProjects(List<WorkflowMigrationResult> results)
           
 
Method Summary
 ErrorCollection getErrorCollection()
          Returns a collection of errors that were found before starting the migration.
 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.
 int getResult()
          Returns the result of the workflow migration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowMigrationResultForMultipleProjects

public WorkflowMigrationResultForMultipleProjects(List<WorkflowMigrationResult> results)
Method Detail

getResult

public int getResult()
Description copied from interface: WorkflowMigrationResult
Returns the result of the workflow migration.

Specified by:
getResult in interface WorkflowMigrationResult
Returns:
Either WorkflowMigrationResult.SUCCESS or WorkflowMigrationResult.TERMINATED

getErrorCollection

public ErrorCollection getErrorCollection()
Description copied from interface: WorkflowMigrationResult
Returns a collection of errors that were found before starting the migration.

Specified by:
getErrorCollection in interface WorkflowMigrationResult

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-2013 Atlassian. All Rights Reserved.