Package com.atlassian.plugin.manager
Interface PluginPersistentStateStore
- All Known Implementing Classes:
DelegatingPluginPersistentStateStore,LoadOnlyPluginPersistentStateStore,MemoryPluginPersistentStateStore,SynchronizedPluginPersistentStateStore
public interface PluginPersistentStateStore
A wrapper object that the user implements to store the persisted state of plugins.
- Since:
- 2.2.0
-
Method Summary
Modifier and TypeMethodDescriptionload()Get the saved activation state of loaded plugins or modules.voidsave(PluginPersistentState state) Put the current global state of plugin activation/deactivation into permanent storage.
-
Method Details
-
save
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).- Parameters:
state- the map of plugin and module activation states
-
load
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 instance.
-