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
abstract void doUpgrade()
Perform the upgrade.
abstract String getBuildNumber()
abstract BuildNumberUpgradeConstraint getConstraint()
abstract Collection<UpgradeError> getErrors()
Return any errors that occur.
abstract String getShortDescription()
A short (
abstract 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 abstract void doUpgrade ()

Perform the upgrade.

Throws
Exception

public abstract String getBuildNumber ()

Returns
  • The build number that this upgrade is applicable to

public abstract BuildNumberUpgradeConstraint getConstraint ()

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

public abstract Collection<UpgradeError> getErrors ()

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

Returns

public abstract String getShortDescription ()

A short (

public abstract void validate ()

Validates that this upgrade task can be performed.

Throws
Exception