Package com.atlassian.upgrade
Class AbstractUpgradeTask
java.lang.Object
com.atlassian.upgrade.AbstractUpgradeTask
- All Implemented Interfaces:
UpgradeTask
- Author:
- Ara Abrahamian (ara_e_w@yahoo.com)
-
Field Summary
Fields inherited from interface com.atlassian.upgrade.UpgradeTask
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addError
(UpgradeError error) void
addErrors
(String prefix, Collection<String> errors) Useful for adding a bunch of errors (like from a command) with a prefixvoid
addErrors
(Collection<String> errors) Return any errors that occur.A short (<50 chars) description of the upgrade actionvoid
setBuildNumber
(String buildNumber) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.upgrade.UpgradeTask
doUpgrade
-
Constructor Details
-
AbstractUpgradeTask
public AbstractUpgradeTask()
-
-
Method Details
-
getShortDescription
Description copied from interface:UpgradeTask
A short (<50 chars) description of the upgrade action- Specified by:
getShortDescription
in interfaceUpgradeTask
-
addError
-
addErrors
Useful for adding a bunch of errors (like from a command) with a prefix -
addErrors
-
getErrors
Description copied from interface:UpgradeTask
Return any errors that occur. Each entry is an UpgradeError.- Specified by:
getErrors
in interfaceUpgradeTask
-
setBuildNumber
-
getBuildNumber
- Specified by:
getBuildNumber
in interfaceUpgradeTask
- Returns:
- The build number that this upgrade is applicable to
-