com.atlassian.plugin.manager.store
Class MemoryPluginPersistentStateStore

java.lang.Object
  extended by com.atlassian.plugin.manager.store.MemoryPluginPersistentStateStore
All Implemented Interfaces:
PluginPersistentStateStore

public class MemoryPluginPersistentStateStore
extends Object
implements PluginPersistentStateStore

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


Constructor Summary
MemoryPluginPersistentStateStore()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryPluginPersistentStateStore

public MemoryPluginPersistentStateStore()
Method Detail

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 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:
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 Confluence instance.


Copyright © 2014 Atlassian. All rights reserved.