Class CmsElementUtil

java.lang.Object
org.opencms.ade.containerpage.CmsElementUtil

public class CmsElementUtil extends Object
Utility class to generate the element data objects used within the container-page editor.

Since:
8.0.0
  • Field Details

  • Constructor Details

    • CmsElementUtil

      public CmsElementUtil(CmsObject cms, String currentPageUri, CmsContainerPageBean containerPage, CmsUUID detailContentId, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, boolean isDragMode, Locale locale) throws CmsException
      Creates a new instance.

      Use this constructor to set the current container page state.

      Parameters:
      cms - the cms context
      currentPageUri - the current page uri
      containerPage - the container page bean with the current container state
      detailContentId - the detail content structure id
      req - the http request
      res - the http response
      isDragMode - if the page is in drag mode
      locale - the content locale
      Throws:
      CmsException - if something goes wrong
    • CmsElementUtil

      public CmsElementUtil(CmsObject cms, String currentPageUri, CmsUUID detailContentId, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, Locale locale) throws CmsException
      Creates a new instance.

      Parameters:
      cms - the cms context
      currentPageUri - the current page uri
      detailContentId - the detail content structure id
      req - the http request
      res - the http response
      locale - the content locale
      Throws:
      CmsException - if something goes wrong
    • CmsElementUtil

      public CmsElementUtil(CmsObject cms, String currentPageUri, CmsUUID detailContentId, String requestParameters, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, Locale locale) throws CmsException
      Creates a new instance.

      Parameters:
      cms - the cms context
      currentPageUri - the current page uri
      detailContentId - the detail content structure id
      requestParameters - the request parameters to use while rendering the elements
      req - the http request
      res - the http response
      locale - the content locale
      Throws:
      CmsException - if something goes wrong
  • Method Details