Class CmsElementUtil


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

    Since:
    8.0.0
    • Constructor Detail

      • CmsElementUtil

        public CmsElementUtil​(CmsObject cms,
                              java.lang.String currentPageUri,
                              CmsContainerPageBean containerPage,
                              CmsUUID detailContentId,
                              javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse res,
                              boolean isDragMode,
                              java.util.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,
                              java.lang.String currentPageUri,
                              CmsUUID detailContentId,
                              javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse res,
                              java.util.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,
                              java.lang.String currentPageUri,
                              CmsUUID detailContentId,
                              java.lang.String requestParameters,
                              javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse res,
                              java.util.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