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

    Modifier and Type
    Method
    Description
    com.atlassian.plugin.manager.PluginPersistentStateStore
     
    com.atlassian.plugin.manager.PluginPersistentState
    This will decorate existing PluginPersistentState with deprecated plugin information if needed.

    Methods inherited from class com.atlassian.plugin.manager.store.DelegatingPluginPersistentStateStore

    save

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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