com.atlassian.plugin.store
Class MemoryPluginStateStore

java.lang.Object
  extended by com.atlassian.plugin.store.MemoryPluginStateStore
All Implemented Interfaces:
PluginStateStore

public class MemoryPluginStateStore
extends java.lang.Object
implements PluginStateStore

A basic plugin state store that stores state in memory. Not recommended for production use.


Constructor Summary
MemoryPluginStateStore()
           
 
Method Summary
 PluginManagerState loadPluginState()
          Get the saved activation state of loaded plugins or modules.
 void savePluginState(PluginManagerState state)
          Put the current global state of plugin activation/deactivation into permanent storage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryPluginStateStore

public MemoryPluginStateStore()
Method Detail

savePluginState

public void savePluginState(PluginManagerState state)
Description copied from interface: PluginStateStore
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.

Specified by:
savePluginState in interface PluginStateStore
Parameters:
state - the map of plugin and module activation states

loadPluginState

public PluginManagerState loadPluginState()
Description copied from interface: PluginStateStore
Get the saved activation state of loaded plugins or modules. The map will be identical to the one described in savePluginState.

Specified by:
loadPluginState in interface PluginStateStore
Returns:
the configured activation/deactivation state for plugins in this Confluence instance.


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.