Class PluginData

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

public class PluginData extends Object
Represents metadata and configuration information for a Lutece plugin.

This class stores plugin-level data such as CSS and JavaScript resources, administrative files, Freemarker templates, portlet types, insert services, and connection services.

  • Constructor Details

    • PluginData

      public PluginData(String pluginName)
      Constructs a new PluginData instance for the given plugin name.
      Parameters:
      pluginName - The name of the plugin.
  • Method Details

    • getPluginName

      public String getPluginName()
      Returns the plugin name.
      Returns:
      The plugin name.
    • getConnectionService

      public PluginConnectionService getConnectionService()
      Returns the connection service associated with this plugin.
      Returns:
      The PluginConnectionService instance.
    • setConnectionService

      public void setConnectionService(PluginConnectionService connectionService)
      Sets the connection service for this plugin.
      Parameters:
      connectionService - The PluginConnectionService to associate.
    • getXPageApplications

      public List<XPageApplicationEntry> getXPageApplications()
      Returns the list of XPage applications.
      Returns:
      The list of XPageApplicationEntry instances.
    • setXPageApplications

      public void setXPageApplications(List<XPageApplicationEntry> listXPageApplications)
      Sets the list of XPage applications.
      Parameters:
      listXPageApplications - The list of XPageApplicationEntry instances.
    • getCssStyleSheets

      public Map<Integer,List<String>> getCssStyleSheets()
      Returns the CSS style sheets mapped by mode.
      Returns:
      A map of CSS file lists.
    • setCssStyleSheets

      public void setCssStyleSheets(Map<Integer,List<String>> listCssStyleSheets)
      Sets the CSS style sheets.
      Parameters:
      listCssStyleSheets - A map of CSS file lists.
    • getJavascriptFiles

      public Map<Integer,List<String>> getJavascriptFiles()
      Returns the JavaScript files mapped by mode.
      Returns:
      A map of JavaScript file lists.
    • setJavascriptFiles

      public void setJavascriptFiles(Map<Integer,List<String>> listJavascriptFiles)
      Sets the JavaScript files.
      Parameters:
      listJavascriptFiles - A map of JavaScript file lists.
    • getAdminCssStyleSheets

      public List<String> getAdminCssStyleSheets()
      Returns the list of administrative CSS files.
      Returns:
      A list of admin CSS file paths.
    • setAdminCssStyleSheets

      public void setAdminCssStyleSheets(List<String> listAdminCssStyleSheets)
      Sets the list of administrative CSS files.
      Parameters:
      listAdminCssStyleSheets - The list of admin CSS file paths.
    • getAdminJavascriptFiles

      public List<String> getAdminJavascriptFiles()
      Returns the list of administrative JavaScript files.
      Returns:
      A list of admin JavaScript file paths.
    • setAdminJavascriptFiles

      public void setAdminJavascriptFiles(List<String> listAdminJavascriptFiles)
      Sets the list of administrative JavaScript files.
      Parameters:
      listAdminJavascriptFiles - The list of admin JavaScript file paths.
    • getRights

      public List<Right> getRights()
      Returns the list of plugin rights.
      Returns:
      A list of Right instances.
    • setRights

      public void setRights(List<Right> listRights)
      Sets the list of plugin rights.
      Parameters:
      listRights - The list of Right instances.
    • getPortletTypes

      public List<PortletType> getPortletTypes()
      Returns the list of portlet types provided by the plugin.
      Returns:
      A list of PortletType instances.
    • setPortletTypes

      public void setPortletTypes(List<PortletType> listPortletTypes)
      Sets the list of portlet types.
      Parameters:
      listPortletTypes - The list of PortletType instances.
    • getInsertServices

      public List<InsertService> getInsertServices()
      Returns the list of insert services.
      Returns:
      A list of InsertService instances.
    • setInsertServices

      public void setInsertServices(List<InsertService> listInsertServices)
      Sets the list of insert services.
      Parameters:
      listInsertServices - The list of InsertService instances.
    • getFreemarkerAutoIncludes

      public List<String> getFreemarkerAutoIncludes()
      Returns the list of Freemarker auto-include files.
      Returns:
      A list of template file names.
    • setFreemarkerAutoIncludes

      public void setFreemarkerAutoIncludes(List<String> listFreemarkerAutoIncludes)
      Sets the list of Freemarker auto-include files.
      Parameters:
      listFreemarkerAutoIncludes - A list of template file names.
    • getFreemarkerAutoImports

      public Map<String,String> getFreemarkerAutoImports()
      Returns the Freemarker auto-import map.
      Returns:
      A map of alias → template path.
    • setFreemarkerAutoImports

      public void setFreemarkerAutoImports(Map<String,String> mapFreemarkerAutoImports)
      Sets the Freemarker auto-import map.
      Parameters:
      mapFreemarkerAutoImports - A map of alias → template path.
    • getParams

      public Map<String,String> getParams()
      Returns the plugin parameters defined in its XML descriptor.
      Returns:
      A map of parameter names and values.
    • setParams

      public void setParams(Map<String,String> mapParams)
      Sets the plugin parameters.
      Parameters:
      mapParams - A map of parameter names and values.