public final class DefaultPluginPersistentState extends Object implements Serializable, PluginPersistentState
PluginPersistentState interface.
The state stored in this object represents changes done by a user to the plugin's state. If "getPluginState()" or "getPluginModuleState()" return null, then the manager should assume that the default state applies instead.
PluginPersistentState.Builder, PluginPersistentState.Util| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,PluginEnabledState> |
getPluginEnabledStateMap(Map<String,Boolean> map) |
Map<String,PluginEnabledState> |
getPluginEnabledStateMap(Plugin plugin)
Get state map of the given plugin and its modules.
|
PluginRestartState |
getPluginRestartState(String pluginKey)
Gets whether the plugin is expected to be upgraded, installed, or removed on next restart
|
Map<String,PluginEnabledState> |
getStatesMap()
Get the map of all states with the update timestamp for each of them.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMap, getPluginStateMap@Deprecated public DefaultPluginPersistentState()
PluginPersistentState instances using the
PluginPersistentState.BuilderPluginPersistentState.@Deprecated public DefaultPluginPersistentState(Map<String,Boolean> map)
PluginPersistentState instances using the
PluginPersistentState.BuilderPluginPersistentState with the supplied states.map - of the plugin states using the Plugin.getKey() as the key.@Deprecated public DefaultPluginPersistentState(PluginPersistentState state)
state - public Map<String,PluginEnabledState> getStatesMap()
PluginPersistentStategetStatesMap in interface PluginPersistentStatePluginEnabledStatepublic boolean isEnabled(Plugin plugin)
PluginPersistentStateisEnabled in interface PluginPersistentStatepublic boolean isEnabled(ModuleDescriptor<?> pluginModule)
PluginPersistentStateisEnabled in interface PluginPersistentStatepublic Map<String,PluginEnabledState> getPluginEnabledStateMap(Plugin plugin)
PluginPersistentStategetPluginEnabledStateMap in interface PluginPersistentStateplugin - the pluginPluginEnabledStatepublic PluginRestartState getPluginRestartState(String pluginKey)
PluginPersistentStategetPluginRestartState in interface PluginPersistentStatepluginKey - The plugin to queryCopyright © 2018 Atlassian. All rights reserved.