|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.manager.DefaultPluginPersistentState
public final class 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.atlassian.plugin.manager.PluginPersistentState |
|---|
PluginPersistentState.Builder, PluginPersistentState.Util |
| Constructor Summary | |
|---|---|
DefaultPluginPersistentState()
Deprecated. create PluginPersistentState instances using the
PluginPersistentState.Builder |
|
DefaultPluginPersistentState(Map<String,Boolean> map)
Deprecated. create PluginPersistentState instances using the
PluginPersistentState.Builder |
|
DefaultPluginPersistentState(PluginPersistentState state)
Deprecated. |
|
| Method Summary | |
|---|---|
Map<String,Boolean> |
getMap()
Get the map of all states. |
PluginRestartState |
getPluginRestartState(String pluginKey)
Gets whether the plugin is expected to be upgraded, installed, or removed on next restart |
Map<String,Boolean> |
getPluginStateMap(Plugin plugin)
Get state map of the given plugin and its modules |
boolean |
isEnabled(ModuleDescriptor<?> pluginModule)
Whether or not a given plugin module is enabled in this state, calculated from it's current state AND default state. |
boolean |
isEnabled(Plugin plugin)
Whether or not a plugin is enabled, calculated from it's current state AND default state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated public DefaultPluginPersistentState()
PluginPersistentState instances using the
PluginPersistentState.Builder
PluginPersistentState.
@Deprecated public DefaultPluginPersistentState(Map<String,Boolean> map)
PluginPersistentState instances using the
PluginPersistentState.Builder
PluginPersistentState with the supplied states.
map - of the plugin states using the Plugin.getKey() as the key.@Deprecated public DefaultPluginPersistentState(PluginPersistentState state)
state - | Method Detail |
|---|
public Map<String,Boolean> getMap()
PluginPersistentState
getMap in interface PluginPersistentStatepublic boolean isEnabled(Plugin plugin)
PluginPersistentState
isEnabled in interface PluginPersistentStatepublic boolean isEnabled(ModuleDescriptor<?> pluginModule)
PluginPersistentState
isEnabled in interface PluginPersistentStatepublic Map<String,Boolean> getPluginStateMap(Plugin plugin)
PluginPersistentState
getPluginStateMap in interface PluginPersistentStatepublic PluginRestartState getPluginRestartState(String pluginKey)
PluginPersistentState
getPluginRestartState in interface PluginPersistentStatepluginKey - The plugin to query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||