public abstract class AbstractUpgradeTask extends Object implements UpgradeTask, BackupSupport, org.springframework.beans.factory.BeanNameAware
log
Constructor and Description |
---|
AbstractUpgradeTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAllErrors(Collection<UpgradeError> errors) |
protected void |
addError(String errorMessage) |
protected void |
addError(UpgradeError error) |
String |
getBuildNumber() |
BuildNumberUpgradeConstraint |
getConstraint() |
Collection<UpgradeError> |
getErrors()
Return any errors that occur.
|
String |
getName()
The human-readable name of the upgrade task
|
String |
getShortDescription()
A short (<50 chars) description of the upgrade action
|
boolean |
isDatabaseUpgrade() |
void |
setBeanName(String name) |
void |
setBuildNumber(String buildNumber) |
void |
validate()
This is only implemented in this abstract base class for the convenience of the large number of older
upgrade tasks.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doUpgrade
breaksBackwardCompatibility, runOnSpaceImport
public String getShortDescription()
UpgradeTaskInfo
getShortDescription
in interface UpgradeTaskInfo
protected void addError(UpgradeError error)
protected void addError(String errorMessage)
protected void addAllErrors(Collection<UpgradeError> errors)
public Collection<UpgradeError> getErrors()
UpgradeTask
UpgradeError
.getErrors
in interface UpgradeTask
UpgradeError
objects, sometimes null.public void setBuildNumber(String buildNumber)
public String getBuildNumber()
getBuildNumber
in interface UpgradeTaskInfo
public void validate() throws Exception
This is only implemented in this abstract base class for the convenience of the large number of older upgrade tasks.
If you are implementing a new UpgradeTask you must give some consideration to implementing validation as well.
validate
in interface UpgradeTask
Exception
public BuildNumberUpgradeConstraint getConstraint()
getConstraint
in interface UpgradeTask
public void setBeanName(String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public String getName()
UpgradeTaskInfo
getName
in interface UpgradeTaskInfo
public boolean isDatabaseUpgrade()
isDatabaseUpgrade
in interface UpgradeTaskInfo
Copyright © 2003–2017 Atlassian. All rights reserved.