Class EventDispatchingPluginController

  • All Implemented Interfaces:
    com.atlassian.plugin.PluginController

    public class EventDispatchingPluginController
    extends Object
    implements com.atlassian.plugin.PluginController
    Delegates each control operation to a PluginController then fires an event to replicate operations across the Confluence cluster.
    • Constructor Detail

      • EventDispatchingPluginController

        public EventDispatchingPluginController()
    • 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 interface com.atlassian.plugin.PluginController
      • enablePluginModule

        public void enablePluginModule​(String completeKey)
        Specified by:
        enablePluginModule in interface com.atlassian.plugin.PluginController
      • disablePluginModule

        public void disablePluginModule​(String completeKey)
        Specified by:
        disablePluginModule in interface com.atlassian.plugin.PluginController
      • installPlugins

        public Set<String> installPlugins​(com.atlassian.plugin.PluginArtifact... pluginArtifacts)
                                   throws com.atlassian.plugin.PluginParseException
        Specified by:
        installPlugins in interface com.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 interface com.atlassian.plugin.PluginController
        Throws:
        com.atlassian.plugin.PluginException
      • scanForNewPlugins

        public int scanForNewPlugins()
                              throws com.atlassian.plugin.PluginParseException
        Specified by:
        scanForNewPlugins in interface com.atlassian.plugin.PluginController
        Throws:
        com.atlassian.plugin.PluginParseException
      • disablePluginWithoutPersisting

        public void disablePluginWithoutPersisting​(String key)
        Specified by:
        disablePluginWithoutPersisting in interface com.atlassian.plugin.PluginController
      • enablePlugins

        public void enablePlugins​(String... keys)
        Specified by:
        enablePlugins in interface com.atlassian.plugin.PluginController
      • revertRestartRequiredChange

        public void revertRestartRequiredChange​(String pluginKey)
                                         throws com.atlassian.plugin.PluginException
        Specified by:
        revertRestartRequiredChange in interface com.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 interface com.atlassian.plugin.PluginController
      • addDynamicModule

        public com.atlassian.plugin.ModuleDescriptor<?> addDynamicModule​(com.atlassian.plugin.Plugin plugin,
                                                                         org.dom4j.Element module)
        Specified by:
        addDynamicModule in interface com.atlassian.plugin.PluginController