Class PluginData
java.lang.Object
fr.paris.lutece.portal.service.plugin.PluginData
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 Summary
ConstructorsConstructorDescriptionPluginData(String pluginName) Constructs a newPluginDatainstance for the given plugin name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of administrative CSS files.Returns the list of administrative JavaScript files.Returns the connection service associated with this plugin.Returns the CSS style sheets mapped by mode.Returns the Freemarker auto-import map.Returns the list of Freemarker auto-include files.Returns the list of insert services.Returns the JavaScript files mapped by mode.Returns the plugin parameters defined in its XML descriptor.Returns the plugin name.Returns the list of portlet types provided by the plugin.Returns the list of plugin rights.Returns the list of XPage applications.voidsetAdminCssStyleSheets(List<String> listAdminCssStyleSheets) Sets the list of administrative CSS files.voidsetAdminJavascriptFiles(List<String> listAdminJavascriptFiles) Sets the list of administrative JavaScript files.voidsetConnectionService(PluginConnectionService connectionService) Sets the connection service for this plugin.voidsetCssStyleSheets(Map<Integer, List<String>> listCssStyleSheets) Sets the CSS style sheets.voidsetFreemarkerAutoImports(Map<String, String> mapFreemarkerAutoImports) Sets the Freemarker auto-import map.voidsetFreemarkerAutoIncludes(List<String> listFreemarkerAutoIncludes) Sets the list of Freemarker auto-include files.voidsetInsertServices(List<InsertService> listInsertServices) Sets the list of insert services.voidsetJavascriptFiles(Map<Integer, List<String>> listJavascriptFiles) Sets the JavaScript files.voidSets the plugin parameters.voidsetPortletTypes(List<PortletType> listPortletTypes) Sets the list of portlet types.voidSets the list of plugin rights.voidsetXPageApplications(List<XPageApplicationEntry> listXPageApplications) Sets the list of XPage applications.
-
Constructor Details
-
PluginData
Constructs a newPluginDatainstance for the given plugin name.- Parameters:
pluginName- The name of the plugin.
-
-
Method Details
-
getPluginName
Returns the plugin name.- Returns:
- The plugin name.
-
getConnectionService
Returns the connection service associated with this plugin.- Returns:
- The
PluginConnectionServiceinstance.
-
setConnectionService
Sets the connection service for this plugin.- Parameters:
connectionService- ThePluginConnectionServiceto associate.
-
getXPageApplications
Returns the list of XPage applications.- Returns:
- The list of
XPageApplicationEntryinstances.
-
setXPageApplications
Sets the list of XPage applications.- Parameters:
listXPageApplications- The list ofXPageApplicationEntryinstances.
-
getCssStyleSheets
Returns the CSS style sheets mapped by mode.- Returns:
- A map of CSS file lists.
-
setCssStyleSheets
Sets the CSS style sheets.- Parameters:
listCssStyleSheets- A map of CSS file lists.
-
getJavascriptFiles
Returns the JavaScript files mapped by mode.- Returns:
- A map of JavaScript file lists.
-
setJavascriptFiles
Sets the JavaScript files.- Parameters:
listJavascriptFiles- A map of JavaScript file lists.
-
getAdminCssStyleSheets
Returns the list of administrative CSS files.- Returns:
- A list of admin CSS file paths.
-
setAdminCssStyleSheets
Sets the list of administrative CSS files.- Parameters:
listAdminCssStyleSheets- The list of admin CSS file paths.
-
getAdminJavascriptFiles
Returns the list of administrative JavaScript files.- Returns:
- A list of admin JavaScript file paths.
-
setAdminJavascriptFiles
Sets the list of administrative JavaScript files.- Parameters:
listAdminJavascriptFiles- The list of admin JavaScript file paths.
-
getRights
Returns the list of plugin rights.- Returns:
- A list of
Rightinstances.
-
setRights
Sets the list of plugin rights.- Parameters:
listRights- The list ofRightinstances.
-
getPortletTypes
Returns the list of portlet types provided by the plugin.- Returns:
- A list of
PortletTypeinstances.
-
setPortletTypes
Sets the list of portlet types.- Parameters:
listPortletTypes- The list ofPortletTypeinstances.
-
getInsertServices
Returns the list of insert services.- Returns:
- A list of
InsertServiceinstances.
-
setInsertServices
Sets the list of insert services.- Parameters:
listInsertServices- The list ofInsertServiceinstances.
-
getFreemarkerAutoIncludes
Returns the list of Freemarker auto-include files.- Returns:
- A list of template file names.
-
setFreemarkerAutoIncludes
Sets the list of Freemarker auto-include files.- Parameters:
listFreemarkerAutoIncludes- A list of template file names.
-
getFreemarkerAutoImports
Returns the Freemarker auto-import map.- Returns:
- A map of alias → template path.
-
setFreemarkerAutoImports
Sets the Freemarker auto-import map.- Parameters:
mapFreemarkerAutoImports- A map of alias → template path.
-
getParams
Returns the plugin parameters defined in its XML descriptor.- Returns:
- A map of parameter names and values.
-
setParams
Sets the plugin parameters.- Parameters:
mapParams- A map of parameter names and values.
-