Class PluginService
java.lang.Object
fr.paris.lutece.portal.service.plugin.PluginService
This class provides services and utilities for plugins management
-
Method Summary
Modifier and TypeMethodDescriptionstatic PlugingetCore()Gets the core.static PluginReturns a Plugin object from its namestatic Collection<Plugin>Returns the plugins file liststatic voidinit()Initialize the servicestatic booleanisPluginEnable(String strPluginName) Gets the plugin status enable / disablestatic voidnotifyListeners(PluginEvent event) Notify an event to all Plugin Event Listenersstatic voidRegister a Plugin Event Listenerstatic voidupdatePluginData(Plugin plugin) Update plugins data.
-
Method Details
-
init
Initialize the service- Throws:
LuteceInitException- If an error occured
-
getPluginList
Returns the plugins file list- Returns:
- the plugins file list as a File[]
-
getPlugin
Returns a Plugin object from its name- Parameters:
strPluginName- The name of the plugin- Returns:
- The Plugin object corresponding to the name
-
getCore
Gets the core.- Returns:
- the core
-
updatePluginData
Update plugins data.- Parameters:
plugin- The plugin object
-
isPluginEnable
Gets the plugin status enable / disable- Parameters:
strPluginName- The plugin name- Returns:
- True if the plugin is enable, otherwise false
-
registerPluginEventListener
Register a Plugin Event Listener- Parameters:
listener- The listener
-
notifyListeners
Notify an event to all Plugin Event Listeners- Parameters:
event- The event
-