public class PluginUpgrader extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BUILD |
protected List<Message> |
errors |
protected com.atlassian.plugin.Plugin |
plugin |
protected PluginSettings |
pluginSettings |
protected List<PluginUpgradeTask> |
upgradeTasks |
Modifier | Constructor and Description |
---|---|
protected |
PluginUpgrader(com.atlassian.plugin.Plugin plugin,
PluginSettings pluginSettings,
List<PluginUpgradeTask> upgradeTasks) |
Modifier and Type | Method and Description |
---|---|
protected void |
doUpgrade() |
protected int |
getDataBuildNumber()
This is the build number of the current version that the user is running under.
|
protected List<Message> |
getErrors() |
protected boolean |
needUpgrade() |
protected void |
postUpgrade() |
protected void |
setDataBuildNumber(int buildNumber) |
protected List<Message> |
upgrade() |
protected void |
upgradeTaskFailed(PluginUpgradeTask upgradeTask,
Collection<Message> messages) |
protected void |
upgradeTaskSucceeded(PluginUpgradeTask upgradeTask) |
public static final String BUILD
protected List<PluginUpgradeTask> upgradeTasks
protected com.atlassian.plugin.Plugin plugin
protected PluginSettings pluginSettings
protected PluginUpgrader(com.atlassian.plugin.Plugin plugin, PluginSettings pluginSettings, List<PluginUpgradeTask> upgradeTasks)
protected void doUpgrade()
protected void upgradeTaskSucceeded(PluginUpgradeTask upgradeTask)
protected void upgradeTaskFailed(PluginUpgradeTask upgradeTask, Collection<Message> messages)
protected boolean needUpgrade()
protected int getDataBuildNumber()
protected void setDataBuildNumber(int buildNumber)
protected void postUpgrade()
Copyright © 2015 Atlassian. All rights reserved.