Class PluginService

java.lang.Object
fr.paris.lutece.portal.service.plugin.PluginService

public final class PluginService extends Object
This class provides services and utilities for plugins management
  • Method Details

    • init

      public static void init() throws LuteceInitException
      Initialize the service
      Throws:
      LuteceInitException - If an error occured
    • getPluginList

      public static Collection<Plugin> getPluginList()
      Returns the plugins file list
      Returns:
      the plugins file list as a File[]
    • getPlugin

      public static Plugin getPlugin(String strPluginName)
      Returns a Plugin object from its name
      Parameters:
      strPluginName - The name of the plugin
      Returns:
      The Plugin object corresponding to the name
    • getCore

      public static Plugin getCore()
      Gets the core.
      Returns:
      the core
    • updatePluginData

      public static void updatePluginData(Plugin plugin)
      Update plugins data.
      Parameters:
      plugin - The plugin object
    • refreshPluginsStatus

      public static void refreshPluginsStatus()
      Applies to this instance the installed status and the pool of each plugin saved in the datastore: a plugin installed, uninstalled or moved to another pool from the back office of another instance. The plugin events are fired on this instance as they were on the other one.
    • isPluginEnable

      public static boolean isPluginEnable(String strPluginName)
      Gets the plugin status enable / disable
      Parameters:
      strPluginName - The plugin name
      Returns:
      True if the plugin is enable, otherwise false
    • addPluginData

      public static void addPluginData(PluginData pluginData)
      Add plginData object
      Parameters:
      pluginData -
    • getPluginData

      public static PluginData getPluginData(String pluginName)
      Get pluginData object
      Parameters:
      pluginName - the plugin name
      Returns:
      the pluginData object