public class GlobalBlueprintsUpgradeTask extends Object implements com.atlassian.sal.api.upgrade.PluginUpgradeTask
Note: The reason of combining the above tasks is... When we are upgrading Global Blueprints and sorting through the disabled ones, we are creating clones for them and adding that to Bandana. However, if the global blueprints have been edited, we want to store the UUID of the customised global blueprint and not the clone UUID. Before combining the upgrade tasks, only template edited upgrade task knew about which templates were edited, and creates the customised global blueprint. At this point, if the blueprint is disabled, the Bandana entry will need to be modified. Due of this coupling of customisation and disabling of global bps, we decided to combine the upgrade tasks.
| Constructor and Description |
|---|
GlobalBlueprintsUpgradeTask(com.atlassian.plugin.PluginAccessor pluginAccessor,
ContentBlueprintManager contentBlueprintManager,
com.atlassian.plugin.PluginController pluginController,
TemplateUpdater templateUpdater,
BlueprintStateController blueprintStateController,
PluginPageTemplateHelper pluginPageTemplateHelper) |
| Modifier and Type | Method and Description |
|---|---|
Collection<com.atlassian.sal.api.message.Message> |
doUpgrade() |
int |
getBuildNumber()
The build number for this upgrade task.
|
String |
getPluginKey() |
String |
getShortDescription() |
public GlobalBlueprintsUpgradeTask(com.atlassian.plugin.PluginAccessor pluginAccessor,
ContentBlueprintManager contentBlueprintManager,
com.atlassian.plugin.PluginController pluginController,
TemplateUpdater templateUpdater,
BlueprintStateController blueprintStateController,
PluginPageTemplateHelper pluginPageTemplateHelper)
public int getBuildNumber()
getBuildNumber in interface com.atlassian.sal.api.upgrade.PluginUpgradeTaskpublic String getShortDescription()
getShortDescription in interface com.atlassian.sal.api.upgrade.PluginUpgradeTaskpublic Collection<com.atlassian.sal.api.message.Message> doUpgrade()
doUpgrade in interface com.atlassian.sal.api.upgrade.PluginUpgradeTaskpublic String getPluginKey()
getPluginKey in interface com.atlassian.sal.api.upgrade.PluginUpgradeTaskCopyright © 2017 Atlassian. All rights reserved.