Class CmsContainerPageWrapper

  • public class CmsContainerPageWrapper
    extends java.lang.Object
    'Wrapper' around XML container page used for programmatic editing operations on container pages.

    Uses mutable helper classes for the container page and its containers.

    • Method Detail

      • addElementToContainer

        public boolean addElementToContainer​(java.lang.String containerName,
                                             CmsContainerElementBean element)
        Adds an element to the given container (the first container with the given container suffix is used).
        containerName - the container name or suffix
        element - the element to add
        false if there was no container to add the element to, true otherwise
      • marshal

        public byte[] marshal()
                       throws CmsException
        Marshals the page data without writing it to the VFS.
        the marshalled page data
        CmsException - if something goes wrong
      • saveToVfs

        public void saveToVfs()
                       throws CmsException
        Saves the page data to the VFS, using the same resource from which this object was created.
        CmsException - if something goes wrong