Package com.atlassian.plugin.manager
Class PluginPersistentState.Builder
java.lang.Object
com.atlassian.plugin.manager.PluginPersistentState.Builder
- Enclosing interface:
- PluginPersistentState
Builder for
PluginPersistentState instances.
This class is not thread safe. It should only be used in a method local context.
- Since:
- 2.3.0
-
Method Summary
Modifier and TypeMethodDescriptionAdd the plugin state.Deprecated.in 4.5.0 for removal in 6.0.create()create(PluginPersistentState state) removeState(String key) Remove a plugin's state.setEnabled(ModuleDescriptor<?> pluginModule, boolean isEnabled) setEnabled(Plugin plugin, boolean isEnabled) setPluginRestartState(String pluginKey, PluginRestartState state) setState(PluginPersistentState state) reset all plugin's state.toState()
-
Method Details
-
create
-
create
-
toState
-
setEnabled
public PluginPersistentState.Builder setEnabled(ModuleDescriptor<?> pluginModule, boolean isEnabled) -
setEnabled
-
setState
reset all plugin's state. -
addPluginEnabledState
Add the plugin state. -
addState
Deprecated.in 4.5.0 for removal in 6.0. UseaddPluginEnabledState(Map)insteadAdd the plugin state. -
removeState
Remove a plugin's state. -
setPluginRestartState
public PluginPersistentState.Builder setPluginRestartState(String pluginKey, PluginRestartState state) -
clearPluginRestartState
-