Class PluginFile
java.lang.Object
fr.paris.lutece.portal.service.plugin.PluginFile
This class is the plugin file element
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdminCssStyleSheet(String strStyleSheet) Add an CSS stylesheet to the pluginvoidaddAdminDashboardComponent(DashboardComponentEntry dashboardComponent) Add aDashboardComponentEntryto the plugin definitionvoidaddAdminJavascriptFile(String strJavascriptFile) Add an Javascript File to the pluginvoidAdd an Content Service to the plugin definitionvoidaddCssStyleSheet(String strStyleSheet) Add an CSS stylesheet to the plugin definition with no mode associatedvoidaddCssStyleSheet(String strStyleSheet, String mode) Add an CSS stylesheet to the plugin definitionvoidaddDaemon(DaemonEntry daemonEntry) Add a Daemon to the plugin definitionvoidAdd an Dashboard Component to the plugin definitionvoidaddFilter(FilterEntry entry) Add a filter to the plugin definitionvoidaddFreemarkerAutoImport(String strNamespace, String strFileName) Adds the file to freemarker autoimport configurationvoidaddFreemarkerAutoInclude(String strFileName) Adds the file to freemarker autoinclude configurationvoidaddFreemarkerMacrosFile(String strFileName) Deprecated.voidAdd an Insert Service to the plugin definitionvoidaddJavascriptFile(String strJavascriptFile) Add an Javascript File to the plugin definition with no mode associatedvoidaddJavascriptFile(String strJavascriptFile, String mode) Add an Javascript File to the plugin definitionvoidAdd a listener to the plugin definitionvoidaddPageInclude(PageIncludeEntry entry) Add an Page Include to the plugin definitionvoidaddParameter(String strName, String strValue) Add a parameter to the plugin definitionvoidaddPortletType(PortletType portletType) Add a portlet type to the plugin definitionvoidAdd an RBAC Resource Type to the plugin definitionvoidAdd an AdminFeature Right to the plugin definitionvoidAdd a SearchIndexer to the plugin definitionvoidaddServlet(ServletEntry entry) Add a servlet to the plugin definitionvoidaddXPageApplication(XPageApplicationEntry application) Add an Application to the plugin definitionGet the list of CSS stylesheets for the adminReturns all admin dashbaord compopents of the pluginGet the list of Javascript Files for the adminReturns all Content Services of the pluginReturns the Copyright of the pluginReturns all CSS Style Sheets of the plugin not associated with a modeReturn all CSS Style Sheets of the plugin for all modesReturns the Css Stylesheet ScopeReturns all Daemons of the pluginReturns all Dashboard Component Services of the pluginReturns the description of the pluginReturns the Documentation's URL of the pluginReturns filter list of the pluginGets the freemarker auto-imports.Gets the freemarker auto-includes.Deprecated.Returns the Icon's URL of the pluginReturns all Insert Services of the pluginReturns all Javascript File of the plugin not associated with a modeReturn all CSS Style Sheets of the plugin for all modesReturns the javascripts ScopeReturns listener list of the pluginReturns the max core version compatibility for the pluginReturns the min core version compatibility for the plugingetName()Returns the name of the pluginReturns all Page Include Services of the pluginGets plugin parameters defined in the XML fileReturns the main Class of the pluginReturns the portlet types list of the pluginReturns the Provider of the pluginReturns the Provider's URL of the pluginReturns all RBAC Resource Types of the pluginReturns right list of the pluginReturns the SearchIndexer Class of the pluginReturns all Search Indexer of the pluginReturns servlet list of the pluginReturns the version of the pluginReturns application list of the pluginbooleanReturns if the plugin needs a database connection poolbooleanReturns the installation status of the pluginvoidLoad plugin data from the XML file using Jakarta Commons DigestervoidsetCopyright(String strCopyright) Sets the copyright of the plugin to the specified string.voidsetCssStylesheetsScope(String strCssStylesheetScope) Sets the css stylesheets scopevoidsetDescription(String strDescription) Sets the description of the plugin to the specified string.voidsetDocumentationUrl(String strDocumentationUrl) Sets the url of the Documentation of the plugin to the specified string.voidsetIconUrl(String strIconUrl) Sets the url of the icon of the plugin to the specified string.voidsetIsDbPoolRequired(boolean bDbPoolRequired) Sets the boolean which shows if a pool is required for the pluginvoidsetIsInstalled(boolean bIsInstalled) Sets the boolean wich shows if the plugin is installedvoidsetJavascriptFilesScope(String strJavascriptFilescope) Sets the javascripts scopevoidsetMaxCoreVersion(String strMaxCoreVersion) Sets the the max core version compatibility for the pluginvoidsetMinCoreVersion(String strMinCoreVersion) Sets the the min core version compatibility for the pluginvoidSets the name of the plugin to the specified string.voidsetPluginClass(String strPluginClass) Sets the class name of the plugin to the specified string.voidsetProvider(String strProvider) Sets the provider of the plugin to the specified string.voidsetProviderUrl(String strProviderUrl) Sets the provider url to the specified string.voidsetSearchIndexerClass(String strSearchIndexerClass) Sets the class service of pluginvoidsetVersion(String strVersion) Sets the version of the plugin to the specified string.
-
Constructor Details
-
PluginFile
public PluginFile()
-
-
Method Details
-
load
Load plugin data from the XML file using Jakarta Commons Digester- Parameters:
strFilename- The XML plugin filename- Throws:
LuteceInitException- If a problem occured during the loading
-
getName
Returns the name of the plugin- Returns:
- the plugin name as a String
-
setName
Sets the name of the plugin to the specified string.- Parameters:
strName- The name of the plugin
-
getVersion
Returns the version of the plugin- Returns:
- the plugin version as a String
-
setVersion
Sets the version of the plugin to the specified string.- Parameters:
strVersion- The version of the plugin
-
getDescription
Returns the description of the plugin- Returns:
- the plugin description as a String
-
setDescription
Sets the description of the plugin to the specified string.- Parameters:
strDescription- The description
-
getProvider
Returns the Provider of the plugin- Returns:
- the plugin Provider as a String
-
setProvider
Sets the provider of the plugin to the specified string.- Parameters:
strProvider- The provider
-
getProviderUrl
Returns the Provider's URL of the plugin- Returns:
- the plugin Provider's URL as a String
-
setProviderUrl
Sets the provider url to the specified string.- Parameters:
strProviderUrl- The url of the provider
-
getIconUrl
Returns the Icon's URL of the plugin- Returns:
- the plugin Icon's URL as a String
-
setIconUrl
Sets the url of the icon of the plugin to the specified string.- Parameters:
strIconUrl- The url of the icon
-
getDocumentationUrl
Returns the Documentation's URL of the plugin- Returns:
- the plugin Documentation's URL as a String
-
setDocumentationUrl
Sets the url of the Documentation of the plugin to the specified string.- Parameters:
strDocumentationUrl- the url of the documentation
-
getCopyright
Returns the Copyright of the plugin- Returns:
- the plugin Copyright as a String
-
setCopyright
Sets the copyright of the plugin to the specified string.- Parameters:
strCopyright- The copyright
-
getPluginClass
Returns the main Class of the plugin- Returns:
- the Class as a String
-
setPluginClass
Sets the class name of the plugin to the specified string.- Parameters:
strPluginClass- The name of the class
-
isInstalled
public boolean isInstalled()Returns the installation status of the plugin- Returns:
- the installation status as an int
-
setIsInstalled
public void setIsInstalled(boolean bIsInstalled) Sets the boolean wich shows if the plugin is installed- Parameters:
bIsInstalled- The installed boolean
-
getMinCoreVersion
Returns the min core version compatibility for the plugin- Returns:
- the min core version as a String
-
setMinCoreVersion
Sets the the min core version compatibility for the plugin- Parameters:
strMinCoreVersion- The min core version
-
getMaxCoreVersion
Returns the max core version compatibility for the plugin- Returns:
- the max core version as a String
-
setMaxCoreVersion
Sets the the max core version compatibility for the plugin- Parameters:
strMaxCoreVersion- The max core version
-
addCssStyleSheet
Add an CSS stylesheet to the plugin definition with no mode associated- Parameters:
strStyleSheet- The StyleSheet path
-
addCssStyleSheet
Add an CSS stylesheet to the plugin definition- Parameters:
strStyleSheet- The StyleSheet pathmode- mode associated with the stylesheet. Can benull, must be an integer
-
addAdminCssStyleSheet
Add an CSS stylesheet to the plugin- Parameters:
strStyleSheet- The StyleSheet path- Since:
- 5.1
-
addAdminJavascriptFile
Add an Javascript File to the plugin- Parameters:
strJavascriptFile- The Javascript File path- Since:
- 5.1
-
getCssStyleSheets
Returns all CSS Style Sheets of the plugin not associated with a mode- Returns:
- The list of CSS Style Sheets not associated with a mode
-
getCssStyleSheetsForAllModes
Return all CSS Style Sheets of the plugin for all modes- Returns:
- the list of CSS style Sheets for all modes
- Since:
- 5.1.0
-
addJavascriptFile
Add an Javascript File to the plugin definition with no mode associated- Parameters:
strJavascriptFile- The Javascript File path
-
addJavascriptFile
Add an Javascript File to the plugin definition- Parameters:
strJavascriptFile- The Javascript File pathmode- mode associated with the Javascript file. Can benull, must be an integer
-
getJavascriptFiles
Returns all Javascript File of the plugin not associated with a mode- Returns:
- The list of Javascript File not associated with a mode
-
getJavascriptFilesForAllModes
Return all CSS Style Sheets of the plugin for all modes- Returns:
- the list of CSS style Sheets for all modes
- Since:
- 5.1.0
-
addFreemarkerMacrosFile
Deprecated.Adds the file to freemarker autoinclude configuration- Parameters:
strFileName- the file
-
getFreemarkerMacrosFiles
Deprecated.Gets the freemarker macros files.- Returns:
- the freemarker macros files
-
addFreemarkerAutoInclude
Adds the file to freemarker autoinclude configuration- Parameters:
strFileName- the file
-
getFreemarkerAutoIncludes
Gets the freemarker auto-includes.- Returns:
- the freemarker auto-includes
-
addFreemarkerAutoImport
Adds the file to freemarker autoimport configuration- Parameters:
strNamespace- The namespace corresponding to the import filestrFileName- the file
-
getFreemarkerAutoImports
Gets the freemarker auto-imports.- Returns:
- the freemarker auto-imports
-
addRight
Add an AdminFeature Right to the plugin definition- Parameters:
right- The Right to Add
-
getRights
Returns right list of the plugin- Returns:
- the list of rights
-
addXPageApplication
Add an Application to the plugin definition- Parameters:
application- The application to Add
-
getXPageApplications
Returns application list of the plugin- Returns:
- the list of applications
-
addFilter
Add a filter to the plugin definition- Parameters:
entry- The filter entry
-
getFilters
Returns filter list of the plugin- Returns:
- the list of filters
-
addServlet
Add a servlet to the plugin definition- Parameters:
entry- The servlet entry
-
getServlets
Returns servlet list of the plugin- Returns:
- the list of servlets
-
addListener
Add a listener to the plugin definition- Parameters:
entry- The listener entry
-
getListeners
Returns listener list of the plugin- Returns:
- the list of listeners
-
addPortletType
Add a portlet type to the plugin definition- Parameters:
portletType- a portlet type to the plugin definition
-
getPortletTypes
Returns the portlet types list of the plugin- Returns:
- the portlet types list
-
addContentService
Add an Content Service to the plugin definition- Parameters:
entry- The entry
-
getContentServices
Returns all Content Services of the plugin- Returns:
- The list of Content Services
-
addInsertService
Add an Insert Service to the plugin definition- Parameters:
is- The Insert Service
-
getInsertServices
Returns all Insert Services of the plugin- Returns:
- The list of Insert Services
-
addSearchIndexer
Add a SearchIndexer to the plugin definition- Parameters:
entry- The Search Indexer Entry
-
getSearchIndexers
Returns all Search Indexer of the plugin- Returns:
- The list of Search Indexers
-
addPageInclude
Add an Page Include to the plugin definition- Parameters:
entry- The Page Include Entry
-
getPageIncludes
Returns all Page Include Services of the plugin- Returns:
- The list of Page Include Services
-
addDashboardComponent
Add an Dashboard Component to the plugin definition- Parameters:
entry- The Dashboard Component Entry
-
getDashboardComponents
Returns all Dashboard Component Services of the plugin- Returns:
- The list of Dashboard Component Services
-
addAdminDashboardComponent
Add aDashboardComponentEntryto the plugin definition- Parameters:
dashboardComponent- the admin dashboard component
-
getAdminDashboardComponents
Returns all admin dashbaord compopents of the plugin- Returns:
- the list of admin dashbaord components
-
addRBACResourceType
Add an RBAC Resource Type to the plugin definition- Parameters:
entry- The RBACResourceType
-
getRBACResourceTypes
Returns all RBAC Resource Types of the plugin- Returns:
- The list of RBACResourceType
-
addDaemon
Add a Daemon to the plugin definition- Parameters:
daemonEntry- The daemon entry to add
-
getDaemons
Returns all Daemons of the plugin- Returns:
- The list of Daemons
-
isDbPoolRequired
public boolean isDbPoolRequired()Returns if the plugin needs a database connection pool- Returns:
- true if the plugin needs a database connection pool, otherwise false
-
setIsDbPoolRequired
public void setIsDbPoolRequired(boolean bDbPoolRequired) Sets the boolean which shows if a pool is required for the plugin- Parameters:
bDbPoolRequired- The required boolean
-
getParams
Gets plugin parameters defined in the XML file- Returns:
- The hashtable of the parameters
-
addParameter
Add a parameter to the plugin definition- Parameters:
strName- The parameter namestrValue- The parameter value
-
getSearchIndexerClass
Returns the SearchIndexer Class of the plugin- Returns:
- the Class as a String
- Since:
- 2.0.0
-
setSearchIndexerClass
Sets the class service of plugin- Parameters:
strSearchIndexerClass- The Class name- Since:
- 2.0.0
-
getCssStylesheetsScope
Returns the Css Stylesheet Scope- Returns:
- the scope
- Since:
- 3.0.0
-
setCssStylesheetsScope
Sets the css stylesheets scope- Parameters:
strCssStylesheetScope- The scope- Since:
- 3.0.0
-
getJavascriptFilesScope
Returns the javascripts Scope- Returns:
- the scope
- Since:
- 3.0.0
-
setJavascriptFilesScope
Sets the javascripts scope- Parameters:
strJavascriptFilescope- The scope- Since:
- 3.0.0
-
getAdminCssStyleSheets
Get the list of CSS stylesheets for the admin- Returns:
- list of CSS stylesheets for the admin
- Since:
- 5.1
-
getAdminJavascriptFiles
Get the list of Javascript Files for the admin- Returns:
- the list of Javascript Files for the admin
- Since:
- 5.1
-