Package com.atlassian.confluence.plugin
Class DeprecatedPluginStateStore
java.lang.Object
com.atlassian.plugin.manager.store.DelegatingPluginPersistentStateStore
com.atlassian.confluence.plugin.DeprecatedPluginStateStore
- All Implemented Interfaces:
com.atlassian.plugin.manager.PluginPersistentStateStore
public class DeprecatedPluginStateStore
extends com.atlassian.plugin.manager.store.DelegatingPluginPersistentStateStore
This Plugin State Store will override the original state
so that we could decorated it with a list of deprecated plugin (plugin which is disable by default on new version but
if user upgrade Confluence from older version then it will keep the previous state)
- Since:
- 7.0.1
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecatedPluginStateStore(com.atlassian.plugin.manager.PluginPersistentStateStore delegatingStore, Collection<String> deprecatedPluginKeys) Constructor of DeprecatedPluginStateStore -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.plugin.manager.PluginPersistentStateStorecom.atlassian.plugin.manager.PluginPersistentStateload()This will decorate existing PluginPersistentState with deprecated plugin information if needed.Methods inherited from class com.atlassian.plugin.manager.store.DelegatingPluginPersistentStateStore
save
-
Constructor Details
-
DeprecatedPluginStateStore
public DeprecatedPluginStateStore(com.atlassian.plugin.manager.PluginPersistentStateStore delegatingStore, Collection<String> deprecatedPluginKeys) Constructor of DeprecatedPluginStateStore- Parameters:
delegatingStore- the target PluginPersistentStateStoredeprecatedPluginKeys- collection of plugin key needed to be disabled on branch new Confluence
-
-
Method Details
-
getDelegate
public com.atlassian.plugin.manager.PluginPersistentStateStore getDelegate()- Specified by:
getDelegatein classcom.atlassian.plugin.manager.store.DelegatingPluginPersistentStateStore
-
load
public com.atlassian.plugin.manager.PluginPersistentState load()This will decorate existing PluginPersistentState with deprecated plugin information if needed. There are several cases - Install Confluence from scratch, there is no previous state store => then this method will disable deprecated plugins - Upgrade Confluence from older version, there is a previous state store=> then if we are having deprecated plugins in previous state then leave it as it is - User manual re-able a deprecated plugin, we will have a state of that plugin in a state store then will leave it as it is- Specified by:
loadin interfacecom.atlassian.plugin.manager.PluginPersistentStateStore- Overrides:
loadin classcom.atlassian.plugin.manager.store.DelegatingPluginPersistentStateStore- Returns:
- decorated PluginPersistentState
-