public interface

UpgradeTask

com.atlassian.confluence.upgrade.UpgradeTask
Known Indirect Subclasses

Summary

Fields
public static final Logger log All upgrade tasks should use this log for convenience, unless there's some overriding reason to use a different log
Public Methods
void doUpgrade()
Perform the upgrade.
String getBuildNumber()
BuildNumberUpgradeConstraint getConstraint()
Collection<UpgradeError> getErrors()
Return any errors that occur.
String getShortDescription()
A short (
void validate()
Validates that this upgrade task can be performed.

Fields

public static final Logger log

All upgrade tasks should use this log for convenience, unless there's some overriding reason to use a different log

Public Methods

public void doUpgrade ()

Perform the upgrade.

Throws
Exception

public String getBuildNumber ()

Returns
  • The build number that this upgrade is applicable to

public BuildNumberUpgradeConstraint getConstraint ()

Returns
  • the constraint that must be passed for this task to be run.

public Collection<UpgradeError> getErrors ()

Return any errors that occur. Each entry is an UpgradeError.

Returns

public String getShortDescription ()

A short (

public void validate ()

Validates that this upgrade task can be performed.

Throws
Exception