public class

DefaultPluginPersistentStateStore

extends Object
implements PluginPersistentStateStore
java.lang.Object
   ↳ com.atlassian.plugin.refimpl.DefaultPluginPersistentStateStore

Summary

Public Constructors
DefaultPluginPersistentStateStore(File directory)
Public Methods
PluginPersistentState load()
Get the saved activation state of loaded plugins or modules.
void save(PluginPersistentState state)
Put the current global state of plugin activation/deactivation into permanent storage.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.manager.PluginPersistentStateStore

Public Constructors

public DefaultPluginPersistentStateStore (File directory)

Public Methods

public PluginPersistentState load ()

Get the saved activation state of loaded plugins or modules. The map will be identical to the one described in savePluginState.

Returns
  • the configured activation/deactivation state for plugins in this Confluence instance.

public void save (PluginPersistentState state)

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 Boolean values representing whether the plugin or module is enabled (true if it's enabled).

Callers should only pass in values for those plugins or modules that are not in their default state.

Parameters
state the map of plugin and module activation states