Package com.atlassian.confluence.plugin
Class EventDispatchingPluginController
- java.lang.Object
-
- com.atlassian.confluence.plugin.EventDispatchingPluginController
-
- All Implemented Interfaces:
com.atlassian.plugin.PluginController
public class EventDispatchingPluginController extends Object implements com.atlassian.plugin.PluginController
Delegates each control operation to aPluginController
then fires an event to replicate operations across the Confluence cluster.
-
-
Constructor Summary
Constructors Constructor Description EventDispatchingPluginController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.plugin.ModuleDescriptor<?>
addDynamicModule(com.atlassian.plugin.Plugin plugin, org.dom4j.Element module)
void
disablePlugin(String key)
void
disablePluginModule(String completeKey)
void
disablePluginWithoutPersisting(String key)
void
enablePluginModule(String completeKey)
void
enablePlugins(String... keys)
Set<String>
installPlugins(com.atlassian.plugin.PluginArtifact... pluginArtifacts)
void
removeDynamicModule(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.ModuleDescriptor<?> module)
void
revertRestartRequiredChange(String pluginKey)
int
scanForNewPlugins()
void
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
void
setPluginController(com.atlassian.plugin.PluginController pluginController)
void
setPluginDataDao(PluginDataDao pluginDataDao)
void
uninstall(com.atlassian.plugin.Plugin plugin)
-
-
-
Method Detail
-
setPluginDataDao
public void setPluginDataDao(PluginDataDao pluginDataDao)
-
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
-
setPluginController
public void setPluginController(com.atlassian.plugin.PluginController pluginController)
-
disablePlugin
public void disablePlugin(String key)
- Specified by:
disablePlugin
in interfacecom.atlassian.plugin.PluginController
-
enablePluginModule
public void enablePluginModule(String completeKey)
- Specified by:
enablePluginModule
in interfacecom.atlassian.plugin.PluginController
-
disablePluginModule
public void disablePluginModule(String completeKey)
- Specified by:
disablePluginModule
in interfacecom.atlassian.plugin.PluginController
-
installPlugins
public Set<String> installPlugins(com.atlassian.plugin.PluginArtifact... pluginArtifacts) throws com.atlassian.plugin.PluginParseException
- Specified by:
installPlugins
in interfacecom.atlassian.plugin.PluginController
- Throws:
com.atlassian.plugin.PluginParseException
-
uninstall
public void uninstall(com.atlassian.plugin.Plugin plugin) throws com.atlassian.plugin.PluginException
- Specified by:
uninstall
in interfacecom.atlassian.plugin.PluginController
- Throws:
com.atlassian.plugin.PluginException
-
scanForNewPlugins
public int scanForNewPlugins() throws com.atlassian.plugin.PluginParseException
- Specified by:
scanForNewPlugins
in interfacecom.atlassian.plugin.PluginController
- Throws:
com.atlassian.plugin.PluginParseException
-
disablePluginWithoutPersisting
public void disablePluginWithoutPersisting(String key)
- Specified by:
disablePluginWithoutPersisting
in interfacecom.atlassian.plugin.PluginController
-
enablePlugins
public void enablePlugins(String... keys)
- Specified by:
enablePlugins
in interfacecom.atlassian.plugin.PluginController
-
revertRestartRequiredChange
public void revertRestartRequiredChange(String pluginKey) throws com.atlassian.plugin.PluginException
- Specified by:
revertRestartRequiredChange
in interfacecom.atlassian.plugin.PluginController
- Throws:
com.atlassian.plugin.PluginException
-
removeDynamicModule
public void removeDynamicModule(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.ModuleDescriptor<?> module)
- Specified by:
removeDynamicModule
in interfacecom.atlassian.plugin.PluginController
-
addDynamicModule
public com.atlassian.plugin.ModuleDescriptor<?> addDynamicModule(com.atlassian.plugin.Plugin plugin, org.dom4j.Element module)
- Specified by:
addDynamicModule
in interfacecom.atlassian.plugin.PluginController
-
-