org.opencms.xml.containerpage
Class CmsContainerPageBean

java.lang.Object
  extended by org.opencms.xml.containerpage.CmsContainerPageBean

public class CmsContainerPageBean
extends Object

Describes one locale of a container page.

Since:
8.0

Constructor Summary
CmsContainerPageBean(Locale locale, List<CmsContainerBean> containers)
          Creates a new container page bean.
 
Method Summary
 boolean containsElement(CmsUUID elementId)
          Returns true if the element with the provided id is contained in this container.
 Map<String,CmsContainerBean> getContainers()
          Returns all container of this page.
 Map<CmsUUID,Boolean> getContainsElement()
          Returns a lazy initialized map that describes if a certain element if part of this container.
 List<CmsUUID> getElementIds()
          Returns the id's of all elements in this container.
 List<CmsContainerElementBean> getElements()
          Returns the elements of all containers in this page.
 Locale getLocale()
          Returns the locale.
 List<String> getNames()
          Returns the list of container names.
 Set<String> getTypes()
          Returns the types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsContainerPageBean

public CmsContainerPageBean(Locale locale,
                            List<CmsContainerBean> containers)
Creates a new container page bean.

Parameters:
locale - the locale
containers - the containers
Method Detail

containsElement

public boolean containsElement(CmsUUID elementId)
Returns true if the element with the provided id is contained in this container.

Parameters:
elementId - the element id to check
Returns:
true if the element with the provided id is contained in this container

getContainers

public Map<String,CmsContainerBean> getContainers()
Returns all container of this page.

Returns:
all container of this page

getContainsElement

public Map<CmsUUID,Boolean> getContainsElement()
Returns a lazy initialized map that describes if a certain element if part of this container.

Returns:
a lazy initialized map that describes if a certain element if part of this container

getElementIds

public List<CmsUUID> getElementIds()
Returns the id's of all elements in this container.

Returns:
the id's of all elements in this container

getElements

public List<CmsContainerElementBean> getElements()
Returns the elements of all containers in this page.

Returns:
the elements of all containers in this page

getLocale

public Locale getLocale()
Returns the locale.

Returns:
the locale

getNames

public List<String> getNames()
Returns the list of container names.

Returns:
the list of container names

getTypes

public Set<String> getTypes()
Returns the types.

Returns:
the types