Class CmsJspContainerPageWrapper

java.lang.Object
org.opencms.jsp.util.CmsJspContainerPageWrapper

public class CmsJspContainerPageWrapper extends Object
Wrapper for using container pages in JSPs.
  • Constructor Details

  • Method Details

    • containsElement

      public boolean containsElement(CmsUUID elementId)
      Checks if the page contains an element with a given id.
      Parameters:
      elementId - the element id to check
      Returns:
      true if the page contains the element
    • getContainers

      Gets the containers.
      Returns:
      the containers
    • getContainsElement

      Returns a map which tracks which element ids are part of the page.
      Returns:
      a map from element ids to their page membership
    • getElementIds

      Gets the element ids.
      Returns:
      the container element ids
    • getElements

      Gets the container elements
      Returns:
      the container elements
    • getNames

      public List<String> getNames()
      Gets the container names.
      Returns:
      the container names
    • getSettingsForElement

      public Map<?,?> getSettingsForElement(String elementInstanceId)
      Gets the element settings for the element with the specific instance id.

      The returned map contains the setting names as keys and the corresponding setting values as wrapper objects.

      Parameters:
      elementInstanceId - the element instance id
      Returns:
      the map of setting wrappers
    • getTypes

      public Set<String> getTypes()
    • renderContainer

      Renders the element in the container with the given name or name prefix.
      Parameters:
      context - the context bean
      name - the container name or name prefix
      Returns:
      the rendered HTML