public class PluginFile extends Object
Constructor and Description |
---|
PluginFile() |
Modifier and Type | Method and Description |
---|---|
void |
addAdminCssStyleSheet(String strStyleSheet)
Add an CSS stylesheet to the plugin
|
void |
addAdminDashboardComponent(DashboardComponentEntry dashboardComponent)
Add a
DashboardComponentEntry to the plugin definition |
void |
addAdminJavascriptFile(String strJavascriptFile)
Add an Javascript File to the plugin
|
void |
addContentService(ContentServiceEntry entry)
Add an Content Service to the plugin definition
|
void |
addCssStyleSheet(String strStyleSheet)
Add an CSS stylesheet to the plugin definition with no mode associated
|
void |
addCssStyleSheet(String strStyleSheet,
String mode)
Add an CSS stylesheet to the plugin definition
|
void |
addDaemon(DaemonEntry daemonEntry)
Add a Daemon to the plugin definition
|
void |
addDashboardComponent(DashboardComponentEntry entry)
Add an Dashboard Component to the plugin definition
|
void |
addFilter(FilterEntry entry)
Add a filter to the plugin definition
|
void |
addFreemarkerMacrosFile(String strFileName)
Adds the file to freemarker autoinclude configuration
|
void |
addInsertService(InsertService is)
Add an Insert Service to the plugin definition
|
void |
addJavascriptFile(String strJavascriptFile)
Add an Javascript File to the plugin definition with no mode associated
|
void |
addJavascriptFile(String strJavascriptFile,
String mode)
Add an Javascript File to the plugin definition
|
void |
addListener(HttpSessionListenerEntry entry)
Add a listener to the plugin definition
|
void |
addPageInclude(PageIncludeEntry entry)
Add an Page Include to the plugin definition
|
void |
addParameter(String strName,
String strValue)
Add a parameter to the plugin definition
|
void |
addPortletType(PortletType portletType)
Add a portlet type to the plugin definition
|
void |
addRBACResourceType(RBACResourceTypeEntry entry)
Add an RBAC Resource Type to the plugin definition
|
void |
addRight(Right right)
Add an AdminFeature Right to the plugin definition
|
void |
addSearchIndexer(SearchIndexerEntry entry)
Add a SearchIndexer to the plugin definition
|
void |
addServlet(ServletEntry entry)
Add a servlet to the plugin definition
|
void |
addXPageApplication(XPageApplicationEntry application)
Add an Application to the plugin definition
|
List<String> |
getAdminCssStyleSheets()
Get the list of CSS stylesheets for the admin
|
List<DashboardComponentEntry> |
getAdminDashboardComponents()
Returns all admin dashbaord compopents of the plugin
|
List<String> |
getAdminJavascriptFiles()
Get the list of Javascript Files for the admin
|
List<ContentServiceEntry> |
getContentServices()
Returns all Content Services of the plugin
|
String |
getCopyright()
Returns the Copyright of the plugin
|
List<String> |
getCssStyleSheets()
Returns all CSS Style Sheets of the plugin not associated with a mode
|
Map<Integer,List<String>> |
getCssStyleSheetsForAllModes()
Return all CSS Style Sheets of the plugin for all modes
|
String |
getCssStylesheetsScope()
Returns the Css Stylesheet Scope
|
List<DaemonEntry> |
getDaemons()
Returns all Daemons of the plugin
|
List<DashboardComponentEntry> |
getDashboardComponents()
Returns all Dashboard Component Services of the plugin
|
String |
getDescription()
Returns the description of the plugin
|
String |
getDocumentationUrl()
Returns the Documentation's URL of the plugin
|
List<FilterEntry> |
getFilters()
Returns filter list of the plugin
|
List<String> |
getFreemarkerMacrosFiles()
Gets the freemarker macros files.
|
String |
getIconUrl()
Returns the Icon's URL of the plugin
|
List<InsertService> |
getInsertServices()
Returns all Insert Services of the plugin
|
List<String> |
getJavascriptFiles()
Returns all Javascript File of the plugin not associated with a mode
|
Map<Integer,List<String>> |
getJavascriptFilesForAllModes()
Return all CSS Style Sheets of the plugin for all modes
|
String |
getJavascriptFilesScope()
Returns the javascripts Scope
|
List<HttpSessionListenerEntry> |
getListeners()
Returns listener list of the plugin
|
String |
getMaxCoreVersion()
Returns the max core version compatibility for the plugin
|
String |
getMinCoreVersion()
Returns the min core version compatibility for the plugin
|
String |
getName()
Returns the name of the plugin
|
List<PageIncludeEntry> |
getPageIncludes()
Returns all Page Include Services of the plugin
|
Map<String,String> |
getParams()
Gets plugin parameters defined in the XML file
|
String |
getPluginClass()
Returns the main Class of the plugin
|
List<PortletType> |
getPortletTypes()
Returns the portlet types list of the plugin
|
String |
getProvider()
Returns the Provider of the plugin
|
String |
getProviderUrl()
Returns the Provider's URL of the plugin
|
List<RBACResourceTypeEntry> |
getRBACResourceTypes()
Returns all RBAC Resource Types of the plugin
|
List<Right> |
getRights()
Returns right list of the plugin
|
String |
getSearchIndexerClass()
Returns the SearchIndexer Class of the plugin
|
List<SearchIndexerEntry> |
getSearchIndexers()
Returns all Search Indexer of the plugin
|
List<ServletEntry> |
getServlets()
Returns servlet list of the plugin
|
String |
getVersion()
Returns the version of the plugin
|
List<XPageApplicationEntry> |
getXPageApplications()
Returns application list of the plugin
|
boolean |
isDbPoolRequired()
Returns if the plugin needs a database connection pool
|
boolean |
isInstalled()
Returns the installation status of the plugin
|
void |
load(String strFilename)
Load plugin data from the XML file using Jakarta Commons Digester
|
void |
setCopyright(String strCopyright)
Sets the copyright of the plugin to the specified string.
|
void |
setCssStylesheetsScope(String strCssStylesheetScope)
Sets the css stylesheets scope
|
void |
setDescription(String strDescription)
Sets the description of the plugin to the specified string.
|
void |
setDocumentationUrl(String strDocumentationUrl)
Sets the url of the Documentation of the plugin to the specified string.
|
void |
setIconUrl(String strIconUrl)
Sets the url of the icon of the plugin to the specified string.
|
void |
setIsDbPoolRequired(boolean bDbPoolRequired)
Sets the boolean which shows if a pool is required for the plugin
|
void |
setIsInstalled(boolean bIsInstalled)
Sets the boolean wich shows if the plugin is installed
|
void |
setJavascriptFilesScope(String strJavascriptFilescope)
Sets the javascripts scope
|
void |
setMaxCoreVersion(String strMaxCoreVersion)
Sets the the max core version compatibility for the plugin
|
void |
setMinCoreVersion(String strMinCoreVersion)
Sets the the min core version compatibility for the plugin
|
void |
setName(String strName)
Sets the name of the plugin to the specified string.
|
void |
setPluginClass(String strPluginClass)
Sets the class name of the plugin to the specified string.
|
void |
setProvider(String strProvider)
Sets the provider of the plugin to the specified string.
|
void |
setProviderUrl(String strProviderUrl)
Sets the provider url to the specified string.
|
void |
setSearchIndexerClass(String strSearchIndexerClass)
Sets the class service of plugin
|
void |
setVersion(String strVersion)
Sets the version of the plugin to the specified string.
|
public void load(String strFilename) throws LuteceInitException
strFilename
- The XML plugin filenameLuteceInitException
- If a problem occured during the loadingpublic String getName()
public void setName(String strName)
strName
- The name of the pluginpublic String getVersion()
public void setVersion(String strVersion)
strVersion
- The version of the pluginpublic String getDescription()
public void setDescription(String strDescription)
strDescription
- The descriptionpublic String getProvider()
public void setProvider(String strProvider)
strProvider
- The providerpublic String getProviderUrl()
public void setProviderUrl(String strProviderUrl)
strProviderUrl
- The url of the providerpublic String getIconUrl()
public void setIconUrl(String strIconUrl)
strIconUrl
- The url of the iconpublic String getDocumentationUrl()
public void setDocumentationUrl(String strDocumentationUrl)
strDocumentationUrl
- the url of the documentationpublic String getCopyright()
public void setCopyright(String strCopyright)
strCopyright
- The copyrightpublic String getPluginClass()
public void setPluginClass(String strPluginClass)
strPluginClass
- The name of the classpublic boolean isInstalled()
public void setIsInstalled(boolean bIsInstalled)
bIsInstalled
- The installed booleanpublic String getMinCoreVersion()
public void setMinCoreVersion(String strMinCoreVersion)
strMinCoreVersion
- The min core versionpublic String getMaxCoreVersion()
public void setMaxCoreVersion(String strMaxCoreVersion)
strMaxCoreVersion
- The max core versionpublic void addCssStyleSheet(String strStyleSheet)
strStyleSheet
- The StyleSheet pathpublic void addCssStyleSheet(String strStyleSheet, String mode)
strStyleSheet
- The StyleSheet pathmode
- mode associated with the stylesheet. Can be null
, must be an integerpublic void addAdminCssStyleSheet(String strStyleSheet)
strStyleSheet
- The StyleSheet pathpublic void addAdminJavascriptFile(String strJavascriptFile)
strJavascriptFile
- The Javascript File path@NotNull public List<String> getCssStyleSheets()
@NotNull public Map<Integer,List<String>> getCssStyleSheetsForAllModes()
public void addJavascriptFile(String strJavascriptFile)
strJavascriptFile
- The Javascript File pathpublic void addJavascriptFile(String strJavascriptFile, String mode)
strJavascriptFile
- The Javascript File pathmode
- mode associated with the Javascript file. Can be null
, must be an integer@NotNull public List<String> getJavascriptFiles()
@NotNull public Map<Integer,List<String>> getJavascriptFilesForAllModes()
public void addFreemarkerMacrosFile(String strFileName)
strFileName
- the filepublic List<String> getFreemarkerMacrosFiles()
public void addRight(Right right)
right
- The Right to Addpublic List<Right> getRights()
public void addXPageApplication(XPageApplicationEntry application)
application
- The application to Addpublic List<XPageApplicationEntry> getXPageApplications()
public void addFilter(FilterEntry entry)
entry
- The filter entrypublic List<FilterEntry> getFilters()
public void addServlet(ServletEntry entry)
entry
- The servlet entrypublic List<ServletEntry> getServlets()
public void addListener(HttpSessionListenerEntry entry)
entry
- The listener entrypublic List<HttpSessionListenerEntry> getListeners()
public void addPortletType(PortletType portletType)
portletType
- a portlet type to the plugin definitionpublic List<PortletType> getPortletTypes()
public void addContentService(ContentServiceEntry entry)
entry
- The entrypublic List<ContentServiceEntry> getContentServices()
public void addInsertService(InsertService is)
is
- The Insert Servicepublic List<InsertService> getInsertServices()
public void addSearchIndexer(SearchIndexerEntry entry)
entry
- The Search Indexer Entrypublic List<SearchIndexerEntry> getSearchIndexers()
public void addPageInclude(PageIncludeEntry entry)
entry
- The Page Include Entrypublic List<PageIncludeEntry> getPageIncludes()
public void addDashboardComponent(DashboardComponentEntry entry)
entry
- The Dashboard Component Entrypublic List<DashboardComponentEntry> getDashboardComponents()
public void addAdminDashboardComponent(DashboardComponentEntry dashboardComponent)
DashboardComponentEntry
to the plugin definitiondashboardComponent
- the admin dashboard componentpublic List<DashboardComponentEntry> getAdminDashboardComponents()
public void addRBACResourceType(RBACResourceTypeEntry entry)
entry
- The RBACResourceTypepublic List<RBACResourceTypeEntry> getRBACResourceTypes()
public void addDaemon(DaemonEntry daemonEntry)
daemonEntry
- The daemon entry to addpublic List<DaemonEntry> getDaemons()
public boolean isDbPoolRequired()
public void setIsDbPoolRequired(boolean bDbPoolRequired)
bDbPoolRequired
- The required booleanpublic Map<String,String> getParams()
public void addParameter(String strName, String strValue)
strName
- The parameter namestrValue
- The parameter valuepublic String getSearchIndexerClass()
public void setSearchIndexerClass(String strSearchIndexerClass)
strSearchIndexerClass
- The Class namepublic String getCssStylesheetsScope()
public void setCssStylesheetsScope(String strCssStylesheetScope)
strCssStylesheetScope
- The scopepublic String getJavascriptFilesScope()
public void setJavascriptFilesScope(String strJavascriptFilescope)
strJavascriptFilescope
- The scopepublic List<String> getAdminCssStyleSheets()
Copyright © 2020 City of Paris. All rights reserved.