Package com.atlassian.confluence.plugin
Class EmptyPluginPersistentState
- java.lang.Object
-
- com.atlassian.confluence.plugin.EmptyPluginPersistentState
-
- All Implemented Interfaces:
com.atlassian.plugin.manager.PluginPersistentState
,com.atlassian.plugin.StoredPluginState
public class EmptyPluginPersistentState extends Object implements com.atlassian.plugin.manager.PluginPersistentState
Represents plugin state that is never persisted. This class always simply returns the default enable state of any given plugin or module.- Since:
- 7.0.1
-
-
Constructor Summary
Constructors Constructor Description EmptyPluginPersistentState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,com.atlassian.plugin.manager.PluginEnabledState>
getPluginEnabledStateMap(com.atlassian.plugin.Plugin plugin)
com.atlassian.plugin.PluginRestartState
getPluginRestartState(String s)
Map<String,com.atlassian.plugin.manager.PluginEnabledState>
getStatesMap()
boolean
isEnabled(com.atlassian.plugin.ModuleDescriptor<?> moduleDescriptor)
boolean
isEnabled(com.atlassian.plugin.Plugin plugin)
-
-
-
Method Detail
-
getStatesMap
public Map<String,com.atlassian.plugin.manager.PluginEnabledState> getStatesMap()
- Specified by:
getStatesMap
in interfacecom.atlassian.plugin.StoredPluginState
-
isEnabled
public boolean isEnabled(com.atlassian.plugin.Plugin plugin)
- Specified by:
isEnabled
in interfacecom.atlassian.plugin.StoredPluginState
-
isEnabled
public boolean isEnabled(com.atlassian.plugin.ModuleDescriptor<?> moduleDescriptor)
- Specified by:
isEnabled
in interfacecom.atlassian.plugin.StoredPluginState
-
getPluginEnabledStateMap
public Map<String,com.atlassian.plugin.manager.PluginEnabledState> getPluginEnabledStateMap(com.atlassian.plugin.Plugin plugin)
- Specified by:
getPluginEnabledStateMap
in interfacecom.atlassian.plugin.StoredPluginState
-
getPluginRestartState
public com.atlassian.plugin.PluginRestartState getPluginRestartState(String s)
- Specified by:
getPluginRestartState
in interfacecom.atlassian.plugin.StoredPluginState
-
-