Class DeprecatedPluginStateStore

  • All Implemented Interfaces:

    public class DeprecatedPluginStateStore
    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)
    • Constructor Detail

      • DeprecatedPluginStateStore

        public DeprecatedPluginStateStore​(com.atlassian.plugin.manager.PluginPersistentStateStore delegatingStore,
                                          Collection<String> deprecatedPluginKeys)
        Constructor of DeprecatedPluginStateStore
        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
      • 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
        load in class
        decorated PluginPersistentState