Class PluginService
- java.lang.Object
-
- fr.paris.lutece.portal.service.plugin.PluginService
-
public final class PluginService extends java.lang.ObjectThis class provides services and utilities for plugins management
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlugingetCore()Gets the core.static PlugingetPlugin(java.lang.String strPluginName)Returns a Plugin object from its namestatic java.util.Collection<Plugin>getPluginList()Returns the plugins file liststatic voidinit()Initialize the servicestatic booleanisPluginEnable(java.lang.String strPluginName)Gets the plugin status enable / disablestatic voidnotifyListeners(PluginEvent event)Notify an event to all Plugin Event Listenersstatic voidregisterPluginEventListener(PluginEventListener listener)Register a Plugin Event Listenerstatic voidupdatePluginData(Plugin plugin)Update plugins data.
-
-
-
Method Detail
-
init
public static void init() throws LuteceInitExceptionInitialize the service- Throws:
LuteceInitException- If an error occured
-
getPluginList
public static java.util.Collection<Plugin> getPluginList()
Returns the plugins file list- Returns:
- the plugins file list as a File[]
-
getPlugin
public static Plugin getPlugin(java.lang.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
-
isPluginEnable
public static boolean isPluginEnable(java.lang.String strPluginName)
Gets the plugin status enable / disable- Parameters:
strPluginName- The plugin name- Returns:
- True if the plugin is enable, otherwise false
-
registerPluginEventListener
public static void registerPluginEventListener(PluginEventListener listener)
Register a Plugin Event Listener- Parameters:
listener- The listener
-
notifyListeners
public static void notifyListeners(PluginEvent event)
Notify an event to all Plugin Event Listeners- Parameters:
event- The event
-
-