Package com.atlassian.upgrade
Class AbstractUpgradeTask
- java.lang.Object
-
- com.atlassian.upgrade.AbstractUpgradeTask
-
- All Implemented Interfaces:
UpgradeTask
public abstract class AbstractUpgradeTask extends Object implements UpgradeTask
- Author:
- Ara Abrahamian (ara_e_w@yahoo.com)
-
-
Field Summary
-
Fields inherited from interface com.atlassian.upgrade.UpgradeTask
log
-
-
Constructor Summary
Constructors Constructor Description AbstractUpgradeTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddError(UpgradeError error)voidaddErrors(String prefix, Collection<String> errors)Useful for adding a bunch of errors (like from a command) with a prefixvoidaddErrors(Collection<String> errors)StringgetBuildNumber()Collection<UpgradeError>getErrors()Return any errors that occur.StringgetShortDescription()A short (<50 chars) description of the upgrade actionvoidsetBuildNumber(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
-
-
-
-
Method Detail
-
getShortDescription
public String getShortDescription()
Description copied from interface:UpgradeTaskA short (<50 chars) description of the upgrade action- Specified by:
getShortDescriptionin interfaceUpgradeTask
-
addError
protected void addError(UpgradeError error)
-
addErrors
public void addErrors(String prefix, Collection<String> errors)
Useful for adding a bunch of errors (like from a command) with a prefix
-
addErrors
public void addErrors(Collection<String> errors)
-
getErrors
public Collection<UpgradeError> getErrors()
Description copied from interface:UpgradeTaskReturn any errors that occur. Each entry is an UpgradeError.- Specified by:
getErrorsin interfaceUpgradeTask
-
setBuildNumber
public void setBuildNumber(String buildNumber)
-
getBuildNumber
public String getBuildNumber()
- Specified by:
getBuildNumberin interfaceUpgradeTask- Returns:
- The build number that this upgrade is applicable to
-
-