Class CmsMutableContainerPage
java.lang.Object
org.opencms.xml.containerpage.mutable.CmsMutableContainerPage
Mutable bean representing a container page, for use in programmatically editing container pages.
-
Constructor Summary
ConstructorDescriptionCmsMutableContainerPage
(List<CmsMutableContainer> containers) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the mutable list of containers for this container page.containers
(String name) Gets all containrs from the container page with a container name matching the given nameexactContainer
(String name) Gets the container with exactly the given container name.firstContainer
(String name) Gets the first container which has a name matching the given name.static CmsMutableContainerPage
Converts a CmsContainerPageBean to an instance of this class.Converts this object to a CmsContainerPageBean.
-
Constructor Details
-
CmsMutableContainerPage
Creates a new instance.- Parameters:
containers
- the containers comprising this container page.
-
-
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
-