com.atlassian.jira.web.action.admin.workflow
Class WorkflowMigrationTerminated
java.lang.Object
com.atlassian.jira.web.action.admin.workflow.AbstractWorkflowMigrationResult
com.atlassian.jira.web.action.admin.workflow.WorkflowMigrationTerminated
- All Implemented Interfaces:
- WorkflowMigrationResult
public class WorkflowMigrationTerminated
- extends AbstractWorkflowMigrationResult
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(Map failedIssues)
Constructs a result that indicates termination of the migration due to the fact that too many
issues failed to migrate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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:
IllegalArgumentException
- if null or empty error collection is passed.
WorkflowMigrationTerminated
public WorkflowMigrationTerminated(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:
IllegalArgumentException
- if null or empty map is passed.
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-2012 Atlassian. All Rights Reserved.