public interface UpgradeManager
Modifier and Type | Field and Description |
---|---|
static int |
MINIMUM_SUPPORTED_UPGRADE_BUILD_NUMBER
The lowest build number we will attempt to upgrade from.
|
static String |
MINIMUM_SUPPORTED_UPGRADE_VERSION
The Confluence version corresponding to the build numbers above.
|
Modifier and Type | Method and Description |
---|---|
boolean |
configuredBuildNumberNewerThan(String buildNumber)
Returns true if the passed build number is less than the configured build number - that is, the version of
the currently running Confluence is newer than the version passed.
|
void |
entireUpgradeFinished()
Called when all immediate and deferred upgrade actions have been performed *if* an upgrade was needed.
|
List<UpgradeError> |
getErrors() |
String |
getExportBuildNumber(boolean spaceExport)
Tells the earliest version the exports will be compatible with.
|
String |
getOldestSpaceImportAllowed()
Calculates the oldest build number from which a space can be imported.
|
Map<String,PluginExportCompatibility> |
getPluginExportCompatibility(boolean spaceExport)
Returns the list of plugins with data (especially plugins with Active Objects data) and
tells how backward-compatible they are.
|
boolean |
isUpgraded() |
boolean |
needUpgrade() |
void |
setDatabaseBuildNumber()
Once installation is complete, we'll need to set the database build number in the database,
so that a subsequent startup of Confluence is able to check that the home directory build
number matches the database build number (see https://jira.atlassian.com/browse/CONF-13798).
|
boolean |
taskNewerThan(String buildNumber,
UpgradeTask upgradeTask)
Returns true if the build number for the task is greater than the passed build number.
|
void |
upgrade(com.atlassian.johnson.JohnsonEventContainer agentJohnson) |
static final int MINIMUM_SUPPORTED_UPGRADE_BUILD_NUMBER
static final String MINIMUM_SUPPORTED_UPGRADE_VERSION
void upgrade(com.atlassian.johnson.JohnsonEventContainer agentJohnson) throws UpgradeException
UpgradeException
List<UpgradeError> getErrors()
boolean needUpgrade()
boolean isUpgraded()
boolean configuredBuildNumberNewerThan(String buildNumber)
boolean taskNewerThan(String buildNumber, UpgradeTask upgradeTask)
void entireUpgradeFinished()
String getOldestSpaceImportAllowed()
String getExportBuildNumber(boolean spaceExport)
spaceExport
- true if the export is about a space, false for a global export.Map<String,PluginExportCompatibility> getPluginExportCompatibility(boolean spaceExport)
Returns the list of plugins with data (especially plugins with Active Objects data) and tells how backward-compatible they are.
If at least one plugin isn't compatible, the importer silently doesn't import any data.
What is a compatible version?
The data is exported as-is in XML and reimported in an earlier version. If the earlier version of the plugin is able to read the data without fault, then it is compatible. Note that there is no downgrade task, obviously.
spaceExport
- true if the export is about a space, false for a global export.void setDatabaseBuildNumber()
Copyright © 2003–2020 Atlassian. All rights reserved.