Class CmsXmlContainerPage

    • Field Detail

      • LEGACY_SYSTEM_SETTING_NAMES

        public static final java.util.Set<java.lang.String> LEGACY_SYSTEM_SETTING_NAMES
        Name for old internal setting names that are not used with the SYSTEM:: prefix in code.
    • Constructor Detail

      • CmsXmlContainerPage

        protected CmsXmlContainerPage​(CmsObject cms,
                                      org.dom4j.Document document,
                                      java.lang.String encoding,
                                      org.xml.sax.EntityResolver resolver)
        Creates a new container page 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
      • CmsXmlContainerPage

        protected CmsXmlContainerPage​(CmsObject cms,
                                      java.util.Locale locale,
                                      java.lang.String modelUri)
                               throws CmsException
        Create a new container page 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
      • CmsXmlContainerPage

        protected CmsXmlContainerPage​(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