Package com.atlassian.jira.upgrade
Class UpgradeResult
java.lang.Object
com.atlassian.jira.upgrade.UpgradeResult
Result of the upgrade process
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an UpgradeResult with no errors.UpgradeResult(String error) Creates status with only one error message and indexing params set to none.UpgradeResult(Collection<String> errors) Creates status with only one error message and indexing params set to none. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an error message to the result.List of errors that occurred during the upgradebooleanChecks whether this upgrade was successful.
-
Field Details
-
OK
-
-
Constructor Details
-
UpgradeResult
public UpgradeResult()Creates an UpgradeResult with no errors. Errors can be added usingaddError(String) -
UpgradeResult
Creates status with only one error message and indexing params set to none.- Parameters:
error- the only error message
-
UpgradeResult
Creates status with only one error message and indexing params set to none.- Parameters:
errors- a list of errors that occurred during the upgrade
-
-
Method Details
-
successful
public boolean successful()Checks whether this upgrade was successful.- Returns:
- true if upgrade tasks returned no errors
-
getErrors
List of errors that occurred during the upgrade- Returns:
- list of errors
-
addError
Add an error message to the result.- Parameters:
error- to add to the result
-