Class DelegatingPluginPersistentStateStore

java.lang.Object
com.atlassian.plugin.manager.store.DelegatingPluginPersistentStateStore
All Implemented Interfaces:
PluginPersistentStateStore

public abstract class DelegatingPluginPersistentStateStore extends Object implements PluginPersistentStateStore
Delegating wrapper for PluginPersistentStateStore.
Since:
3.2.0
  • Constructor Details

    • DelegatingPluginPersistentStateStore

      public DelegatingPluginPersistentStateStore()
  • Method Details

    • getDelegate

      public abstract PluginPersistentStateStore getDelegate()
      Obtain the delegate to use for dispatching a request.
      Returns:
      the PluginPersistentStateStore to delegate calls to, must not be null.
    • save

      public void save(PluginPersistentState state)
      Description copied from interface: PluginPersistentStateStore
      Put the current global state of plugin activation/deactivation into permanent storage. The map passed in should have keys of the form "plugin" or "plugin:module", and PluginEnabledState values representing whether the plugin or module is enabled and the timestamp when the plugin state was last changed).
      Specified by:
      save in interface PluginPersistentStateStore
      Parameters:
      state - the map of plugin and module activation states
    • load

      public PluginPersistentState load()
      Description copied from interface: PluginPersistentStateStore
      Get the saved activation state of loaded plugins or modules. The map will be identical to the one described in savePluginState.
      Specified by:
      load in interface PluginPersistentStateStore
      Returns:
      the configured activation/deactivation state for plugins in this instance.