public class SpaceEditedTemplatesUpgradeTask extends Object implements com.atlassian.sal.api.upgrade.PluginUpgradeTask
ContentBlueprintAo keeps a reference to a list of ContentTemplateRefAo used when an user creates a
page from a blueprint. By default, the one that comes bundled with the plugin is used. If the user edits it, TemplateUpdatedListener updates the content template reference in AO. If the template was already modified before
upgrading Confluence, we need to update the content template reference in AO to use the user-defined one.| Constructor and Description |
|---|
SpaceEditedTemplatesUpgradeTask(com.atlassian.confluence.spaces.SpaceManager spaceManager,
PluginPageTemplateHelper pluginPageTemplateHelper,
TemplateUpdater templateUpdater) |
| 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 SpaceEditedTemplatesUpgradeTask(com.atlassian.confluence.spaces.SpaceManager spaceManager,
PluginPageTemplateHelper pluginPageTemplateHelper,
TemplateUpdater templateUpdater)
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.