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

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

public class WorkflowMigrationTerminated
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
WorkflowMigrationTerminated(ErrorCollection errorCollection)
          Constructs a result that indicates termination due to the fact that errors were found with the data before the migration actaully began and any issues modified.
WorkflowMigrationTerminated(java.util.Map failedIssues)
          Constructs a result that indicates termination of the migration due to the fact that too many issues failed to migrate.
 
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

WorkflowMigrationTerminated

public WorkflowMigrationTerminated(ErrorCollection errorCollection)
Constructs a result that indicates termination due to the fact that errors were found with the data before the migration actaully began and any issues modified.

Parameters:
errorCollection - collection of any errors that were found. Must contain at least one error or error message and must not be null.
Throws:
java.lang.IllegalArgumentException - if null or empty error collection is passed.

WorkflowMigrationTerminated

public WorkflowMigrationTerminated(java.util.Map failedIssues)
Constructs a result that indicates termination of the migration due to the fact that too many issues failed to migrate.

Parameters:
failedIssues - the issue id to issue key map of issues that failed migration until the decision was made to terminate the migration. Must not be null or empty.
Throws:
java.lang.IllegalArgumentException - if null or empty map is passed.
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-2010 Atlassian. All Rights Reserved.