| java.lang.Object | |
| ↳ | com.atlassian.plugin.manager.DefaultPluginPersistentState |
Immutable implementation of the PluginPersistentState interface.
The state stored in this object represents only the differences between the desired state and the default state configured in the plugin. So if "getPluginState()" or "getPluginModuleState()" return null, then the manager should assume that the default state applies instead.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This constructor is deprecated.
create
PluginPersistentState instances using the
PluginPersistentState.Builder
| |||||||||||
This constructor is deprecated.
create
PluginPersistentState instances using the
PluginPersistentState.Builder
| |||||||||||
Copy constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get the map of all states.
| |||||||||||
Gets whether the plugin is expected to be upgraded, installed, or removed on next restart
| |||||||||||
Get state map of the given plugin and its modules
| |||||||||||
Whether or not a plugin is enabled, calculated from it's current state AND default state.
| |||||||||||
Whether or not a given plugin module is enabled in this state, calculated from it's current state AND default state.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.plugin.manager.PluginPersistentState
| |||||||||||
This constructor is deprecated.
create PluginPersistentState instances using the
PluginPersistentState.Builder
Creates an empty PluginPersistentState.
This constructor is deprecated.
create PluginPersistentState instances using the
PluginPersistentState.Builder
Creates a PluginPersistentState with the supplied states.
| map | of the plugin states using the getKey() as the key. |
|---|
Copy constructor. Doesn't make sense to use as the map is immutable. Just use the
Get the map of all states.
Gets whether the plugin is expected to be upgraded, installed, or removed on next restart
| pluginKey | The plugin to query |
|---|
Get state map of the given plugin and its modules
Whether or not a plugin is enabled, calculated from it's current state AND default state.
Whether or not a given plugin module is enabled in this state, calculated from it's current state AND default state.