fr.paris.lutece.portal.service.plugin
Class PluginService

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

public final class PluginService
extends java.lang.Object

This class provides services and utilities for plugins management


Method Summary
static Plugin getPlugin(java.lang.String strPluginName)
          Returns a Plugin object from its name
static java.util.Collection<Plugin> getPluginList()
          Returns the plugins file list
static void init()
          Initialize the service
static boolean isPluginEnable(java.lang.String strPluginName)
          Gets the plugin status enable / disable
static void updatePluginData(Plugin plugin)
          Update plugins data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init()
                 throws LuteceInitException
Initialize 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

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


Copyright © 2010 Mairie de Paris. All Rights Reserved.