|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PluginPersistentState
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.
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Boolean> |
getMap()
Get the map of all states. |
PluginRestartState |
getPluginRestartState(java.lang.String pluginKey)
Gets whether the plugin is expected to be upgraded, installed, or removed on next restart |
java.util.Map<java.lang.String,java.lang.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. |
| Method Detail |
|---|
java.util.Map<java.lang.String,java.lang.Boolean> getMap()
boolean isEnabled(Plugin plugin)
boolean isEnabled(ModuleDescriptor<?> pluginModule)
java.util.Map<java.lang.String,java.lang.Boolean> getPluginStateMap(Plugin plugin)
plugin -
PluginRestartState getPluginRestartState(java.lang.String pluginKey)
pluginKey - The plugin to query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||