Class 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 Detail

      • DeprecatedPluginStateStore

        public DeprecatedPluginStateStore​(com.atlassian.plugin.manager.PluginPersistentStateStore delegatingStore,
                                          Collection<String> deprecatedPluginKeys)
        Constructor of DeprecatedPluginStateStore
        Parameters:
        delegatingStore - the target PluginPersistentStateStore
        deprecatedPluginKeys - 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 class com.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 interface com.atlassian.plugin.manager.PluginPersistentStateStore
        Overrides:
        load in class com.atlassian.plugin.manager.store.DelegatingPluginPersistentStateStore
        Returns:
        decorated PluginPersistentState