Package com.atlassian.plugin.manager
Interface PluginPersistentState
- All Superinterfaces:
StoredPluginState
- All Known Implementing Classes:
DefaultPluginPersistentState
Interface that represents a configuration state for plugins and plugin modules. The configuration state (enabled
or disabled) is separate from the plugins and modules themselves because a plugin may have multiple
states depending on the context.
- Since:
- 2.2.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forPluginPersistentStateinstances.static class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(PluginPersistentState state) getMap()Deprecated.getPluginStateMap(Plugin plugin) Deprecated.please useStoredPluginState.getPluginEnabledStateMap(Plugin)insteadMethods inherited from interface com.atlassian.plugin.StoredPluginState
getPluginEnabledStateMap, getPluginRestartState, getStatesMap, isEnabled, isEnabled
-
Method Details
-
builder
- Returns:
- a new builder
- Since:
- 5.0
-
builder
- Returns:
- a new builder that is initialized with the provided
state - Since:
- 5.0
-
getMap
Deprecated.please useStoredPluginState.getStatesMap()insteadGet the map of all states. Deprecated since 4.5.0- Returns:
- The map that maps plugins and modules' keys to an actual enabled state (Boolean.True/Boolean.False).
-
getPluginStateMap
Deprecated.please useStoredPluginState.getPluginEnabledStateMap(Plugin)insteadGet state map of the given plugin and its modules. Deprecated since 4.5.0- Parameters:
plugin- the plugin- Returns:
- The map that maps the plugin and its modules' keys to plugin state (Boolean.TRUE/Boolean.FALSE).
-
StoredPluginState.getStatesMap()instead