Class CmsXmlGroupContainer

  • All Implemented Interfaces:
    I_CmsXmlDocument

    public class CmsXmlGroupContainer
    extends CmsXmlContent
    Implementation of a object used to access and manage the xml data of a group container.

    In addition to the XML content interface. It also provides access to more comfortable beans.

    Since:
    8.0.0
    • Constructor Detail

      • CmsXmlGroupContainer

        protected CmsXmlGroupContainer​(CmsObject cms,
                                       org.dom4j.Document document,
                                       java.lang.String encoding,
                                       org.xml.sax.EntityResolver resolver)
        Creates a new group container based on the provided XML document.

        The given encoding is used when marshalling the XML again later.

        Parameters:
        cms - the cms context, if null no link validation is performed
        document - the document to create the container page from
        encoding - the encoding of the container page
        resolver - the XML entity resolver to use
      • CmsXmlGroupContainer

        protected CmsXmlGroupContainer​(CmsObject cms,
                                       java.util.Locale locale,
                                       java.lang.String modelUri)
                                throws CmsException
        Create a new group container based on the given default content, that will have all language nodes of the default content and ensures the presence of the given locale.

        The given encoding is used when marshalling the XML again later.

        Parameters:
        cms - the current users OpenCms content
        locale - the locale to generate the default content for
        modelUri - the absolute path to the container page file acting as model
        Throws:
        CmsException - in case the model file is not found or not valid
      • CmsXmlGroupContainer

        protected CmsXmlGroupContainer​(CmsObject cms,
                                       java.util.Locale locale,
                                       java.lang.String encoding,
                                       CmsXmlContentDefinition contentDefinition)
        Create a new container page based on the given content definition, that will have one language node for the given locale all initialized with default values.

        The given encoding is used when marshalling the XML again later.

        Parameters:
        cms - the current users OpenCms content
        locale - the locale to generate the default content for
        encoding - the encoding to use when marshalling the container page later
        contentDefinition - the content definition to create the content for