|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UpgradeManager
UpgradeManager is responsible for creating a list of UpgradeTasks. For simple upgrades (standard version build 20 to standard version build 21, for example) it's a simple list for that kind of version. A more sophisticated one (upgrade from standard to enterprise version, for example) can be modeled as a composite subclass of two UpgradeManagers. Note that all license specific code is strictly put into the corresponding subclass, so whatever check for enterprise license or things like that is in a specific subclass and not in form of if(enterprise) do blah code spread here and there.
Method Summary | |
---|---|
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()
|
boolean |
isUpgraded()
|
boolean |
needUpgrade()
|
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)
|
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |