com.atlassian.confluence.upgrade
Interface UpgradeManager

All Known Implementing Classes:
AbstractUpgradeManager, DefaultUpgradeManager

public interface UpgradeManager

UpgradeManager is responsible for creating a list of UpgradeTasks. For simple upgardes (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 subclas 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 bla code spread here and there.


Method Summary
 java.util.List<UpgradeError> getErrors()
           
 boolean isUpgraded()
           
 boolean needUpgrade()
           
 void upgrade(com.atlassian.johnson.JohnsonEventContainer agentJohnson)
           
 

Method Detail

upgrade

void upgrade(com.atlassian.johnson.JohnsonEventContainer agentJohnson)
             throws UpgradeException
Throws:
UpgradeException

getErrors

java.util.List<UpgradeError> getErrors()

needUpgrade

boolean needUpgrade()

isUpgraded

boolean isUpgraded()
Returns:
true if the UpgradeManager was able to successfully upgrade this instance, or if no upgrade was necessary; otherwise false.


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.