com.atlassian.sal.core.upgrade
Class PluginUpgrader
java.lang.Object
com.atlassian.sal.core.upgrade.PluginUpgrader
public class PluginUpgrader
- extends Object
Performs an upgrade of a plugin. Originally copied from Confluence's AbstractUpgradeManager.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUILD
public static final String BUILD
- See Also:
- Constant Field Values
upgradeTasks
protected List<PluginUpgradeTask> upgradeTasks
plugin
protected com.atlassian.plugin.Plugin plugin
pluginSettings
protected PluginSettings pluginSettings
errors
protected List<Message> errors
PluginUpgrader
protected PluginUpgrader(com.atlassian.plugin.Plugin plugin,
PluginSettings pluginSettings,
List<PluginUpgradeTask> upgradeTasks)
upgrade
protected List<Message> upgrade()
doUpgrade
protected void doUpgrade()
upgradeTaskSucceeded
protected void upgradeTaskSucceeded(PluginUpgradeTask upgradeTask)
upgradeTaskFailed
protected void upgradeTaskFailed(PluginUpgradeTask upgradeTask,
Collection<Message> messages)
getErrors
protected List<Message> getErrors()
needUpgrade
protected boolean needUpgrade()
getDataBuildNumber
protected int getDataBuildNumber()
- This is the build number of the current version that the user is running under.
setDataBuildNumber
protected void setDataBuildNumber(int buildNumber)
postUpgrade
protected void postUpgrade()
Copyright © 2015 Atlassian. All rights reserved.