Class CmsSitePlugin


  • public class CmsSitePlugin
    extends java.lang.Object
    Immutable collection of template plugins, normally read from a file of type site-plugin.
    • Constructor Detail

      • CmsSitePlugin

        public CmsSitePlugin​(CmsUUID id,
                             java.lang.String niceName,
                             java.lang.String description,
                             java.util.List<CmsTemplatePlugin> plugins,
                             java.lang.String origin)
        Creates a new instance.
        Parameters:
        id - the id of the plugin group
        niceName - the nice name
        description - the description
        plugins - the list of plugins
        origin - the origin (for debugging purposes)
    • Method Detail

      • readSitePlugin

        public static CmsSitePlugin readSitePlugin​(CmsObject cms,
                                                   CmsXmlContent content)
        Reads a list of plugins from the given XML content.
        Parameters:
        cms - the CMS context
        content - the XML content object
        Returns:
        the template plugin group
      • getDescription

        public java.lang.String getDescription()
        Gets the description.
        Returns:
        the description
      • getId

        public CmsUUID getId()
        Gets the id.

        Normally, this is the structure id of the file from which this group was read.

        Returns:
        the id
      • getNiceName

        public java.lang.String getNiceName()
        Gets the nice name.
        Returns:
        the nice name
      • getOrigin

        public java.lang.String getOrigin()
        Gets the origin, for debugging purposes.
        Returns:
        the origin
      • getPlugins

        public java.util.List<CmsTemplatePlugingetPlugins()
        Gets the immutable list of plugins.
        Returns:
        the list of plugins in this collection
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()