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

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

public class WorkflowMigrationSuccess
extends AbstractWorkflowMigrationResult


Field Summary
 
Fields inherited from class com.atlassian.jira.web.action.admin.workflow.AbstractWorkflowMigrationResult
failedIssues
 
Fields inherited from interface com.atlassian.jira.web.action.admin.workflow.WorkflowMigrationResult
SUCCESS, TERMINATED
 
Constructor Summary
WorkflowMigrationSuccess(Map<Long,String> failedIssues)
          Construct a result that indicates success.
 
Method Summary
 ErrorCollection getErrorCollection()
          Returns a collection of errors that were found before starting the migration.
 int getResult()
          Returns the result of the workflow migration.
 
Methods inherited from class com.atlassian.jira.web.action.admin.workflow.AbstractWorkflowMigrationResult
getFailedIssues, getNumberOfFailedIssues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowMigrationSuccess

public WorkflowMigrationSuccess(Map<Long,String> failedIssues)
Construct a result that indicates success.

Parameters:
failedIssues - a map of issue ids to issue keys of issues that failed to migrate during the migration. If there were no failures this must be an empty map.
Method Detail

getResult

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

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.



Copyright © 2002-2013 Atlassian. All Rights Reserved.