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| 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, calculated from its persisted state AND default state.
|
boolean |
isEnabled(Plugin plugin)
Whether or not a plugin is enabled, calculated from its persisted state AND default state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilder, builder, getMap, getPluginStateMappublic Map<String,PluginEnabledState> getStatesMap()
StoredPluginStategetStatesMap in interface StoredPluginStatepublic boolean isEnabled(Plugin plugin)
StoredPluginStatePluginAccessor for that
information.isEnabled in interface StoredPluginStatepublic boolean isEnabled(ModuleDescriptor<?> pluginModule)
StoredPluginStatePluginAccessor for that
information.isEnabled in interface StoredPluginStatepublic Map<String,PluginEnabledState> getPluginEnabledStateMap(Plugin plugin)
StoredPluginStategetPluginEnabledStateMap in interface StoredPluginStateplugin - the pluginpublic PluginRestartState getPluginRestartState(String pluginKey)
StoredPluginStategetPluginRestartState in interface StoredPluginStatepluginKey - The plugin to queryCopyright © 2019 Atlassian. All rights reserved.