Class CmsSitePlugin
java.lang.Object
org.opencms.ade.configuration.plugins.CmsSitePlugin
Immutable collection of template plugins, normally read from a file of type site-plugin.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCmsSitePlugin
(CmsUUID id, String niceName, String description, List<CmsTemplatePlugin> plugins, String origin) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the description.getId()
Gets the id.Gets the nice name.Gets the origin, for debugging purposes.Gets the immutable list of plugins.static CmsSitePlugin
read
(CmsObject cms, CmsResource res) Reads a site plugin from a file.static CmsSitePlugin
readSitePlugin
(CmsObject cms, CmsXmlContent content) Reads a list of plugins from the given XML content.toString()
-
Field Details
-
N_DESCRIPTION
Content value node name.- See Also:
-
N_NICE_NAME
Content value node name.- See Also:
-
N_PLUGIN
Content value node name.- See Also:
-
-
Constructor Details
-
CmsSitePlugin
public CmsSitePlugin(CmsUUID id, String niceName, String description, List<CmsTemplatePlugin> plugins, String origin) Creates a new instance.- Parameters:
id
- the id of the plugin groupniceName
- the nice namedescription
- the descriptionplugins
- the list of pluginsorigin
- the origin (for debugging purposes)
-
-
Method Details
-
read
Reads a site plugin from a file.- Parameters:
cms
- the CMS context to useres
- the resource- Returns:
- the site plugin read from the file
- Throws:
CmsException
- if something goes wrong
-
readSitePlugin
Reads a list of plugins from the given XML content.- Parameters:
cms
- the CMS contextcontent
- the XML content object- Returns:
- the template plugin group
-
getDescription
Gets the description.- Returns:
- the description
-
getId
Gets the id.Normally, this is the structure id of the file from which this group was read.
- Returns:
- the id
-
getNiceName
Gets the nice name.- Returns:
- the nice name
-
getOrigin
Gets the origin, for debugging purposes.- Returns:
- the origin
-
getPlugins
Gets the immutable list of plugins.- Returns:
- the list of plugins in this collection
-
toString
-