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 voidaddPluginData(PluginData pluginData) Add plginData objectstatic PlugingetCore()Gets the core.static PluginReturns a Plugin object from its namestatic PluginDatagetPluginData(String pluginName) Get pluginData objectstatic Collection<Plugin>Returns the plugins file liststatic voidinit()Initialize the servicestatic booleanisPluginEnable(String strPluginName) Gets the plugin status enable / disablestatic voidApplies 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.static 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
-
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
Gets the plugin status enable / disable- Parameters:
strPluginName- The plugin name- Returns:
- True if the plugin is enable, otherwise false
-
addPluginData
Add plginData object- Parameters:
pluginData-
-
getPluginData
Get pluginData object- Parameters:
pluginName- the plugin name- Returns:
- the pluginData object
-