Class CmsMutableContainerPage

java.lang.Object
org.opencms.xml.containerpage.mutable.CmsMutableContainerPage

public class CmsMutableContainerPage extends Object
Mutable bean representing a container page, for use in programmatically editing container pages.
  • Constructor Details

  • Method Details

    • fromImmutable

      Converts a CmsContainerPageBean to an instance of this class.
      Parameters:
      page - the container page bean to convert
      Returns:
      an instance of this class with the data from the container page bean
    • containers

      Returns the mutable list of containers for this container page.
      Returns:
      the mutable list of containers
    • containers

      Gets all containrs from the container page with a container name matching the given name
      Parameters:
      name - the name for which to look
      Returns:
      the list of containers matching the given name
    • exactContainer

      Gets the container with exactly the given container name.
      Parameters:
      name - the container name
      Returns:
      the container with the given name, or null if none was found
    • firstContainer

      Gets the first container which has a name matching the given name.
      Parameters:
      name - the name to match
      Returns:
      the matching container, or null if none was found
    • toImmutable

      Converts this object to a CmsContainerPageBean.
      Returns:
      the container page bean