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
Constructors Constructor Description DeprecatedPluginStateStore(com.atlassian.plugin.manager.PluginPersistentStateStore delegatingStore, Collection<String> deprecatedPluginKeys)
Constructor of DeprecatedPluginStateStore
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.plugin.manager.PluginPersistentStateStore
getDelegate()
com.atlassian.plugin.manager.PluginPersistentState
load()
This will decorate existing PluginPersistentState with deprecated plugin information if needed.
-
-
-
Constructor Detail
-
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 Detail
-
getDelegate
public com.atlassian.plugin.manager.PluginPersistentStateStore getDelegate()
- Specified by:
getDelegate
in 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:
load
in interfacecom.atlassian.plugin.manager.PluginPersistentStateStore
- Overrides:
load
in classcom.atlassian.plugin.manager.store.DelegatingPluginPersistentStateStore
- Returns:
- decorated PluginPersistentState
-
-