Class CMSBodyTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
de.hybris.platform.cms2lib.cmstags.CMSBodyTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class CMSBodyTag extends javax.servlet.jsp.tagext.BodyTagSupport
See Also:
  • Field Summary

    Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport

    bodyContent

    Fields inherited from class javax.servlet.jsp.tagext.TagSupport

    id, pageContext

    Fields inherited from interface javax.servlet.jsp.tagext.BodyTag

    EVAL_BODY_BUFFERED, EVAL_BODY_TAG

    Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

    EVAL_BODY_AGAIN

    Fields inherited from interface javax.servlet.jsp.tagext.Tag

    EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
    protected String
     
    protected String
     
    getPreviewData(String ticketId, javax.servlet.ServletRequest httpRequest)
    Retrieves current Preview Data according to given ticked id
    getPreviewData(javax.servlet.ServletRequest httpRequest)
    Checks whether current Preview Data is valid (not removed)
    protected String
    getPreviewTicketId(javax.servlet.ServletRequest httpRequest)
    Retrieves CMSFilter.PREVIEW_TICKET_ID_PARAM from current request
    protected javax.servlet.ServletContext
     
    protected boolean
     
    protected boolean
     

    Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport

    doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent

    Methods inherited from class javax.servlet.jsp.tagext.TagSupport

    findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface javax.servlet.jsp.tagext.Tag

    getParent, setPageContext, setParent
  • Constructor Details

    • CMSBodyTag

      public CMSBodyTag()
  • Method Details

    • getServletContext

      protected javax.servlet.ServletContext getServletContext()
    • isLiveEdit

      protected boolean isLiveEdit()
    • isPreviewDataModelValid

      protected boolean isPreviewDataModelValid()
    • getPreviewTicketId

      protected String getPreviewTicketId(javax.servlet.ServletRequest httpRequest)
      Retrieves CMSFilter.PREVIEW_TICKET_ID_PARAM from current request
      Parameters:
      httpRequest - current request
      Returns:
      current ticket id
    • getPreviewData

      protected PreviewDataModel getPreviewData(javax.servlet.ServletRequest httpRequest)
      Checks whether current Preview Data is valid (not removed)
      Parameters:
      httpRequest - current request
      Returns:
      true whether is valid otherwise false
    • getPreviewData

      protected PreviewDataModel getPreviewData(String ticketId, javax.servlet.ServletRequest httpRequest)
      Retrieves current Preview Data according to given ticked id
      Parameters:
      ticketId - current ticket id
      httpRequest - current request
      Returns:
      current Preview Data attached to given ticket if any otherwise null
    • doStartTag

      public int doStartTag() throws javax.servlet.jsp.JspException
      Specified by:
      doStartTag in interface javax.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
      Throws:
      javax.servlet.jsp.JspException
    • doAfterBody

      public int doAfterBody() throws javax.servlet.jsp.JspException
      Specified by:
      doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
      Overrides:
      doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
      Throws:
      javax.servlet.jsp.JspException
    • getCurrentUserUid

      protected String getCurrentUserUid()
    • getCurrentJaloSessionId

      protected String getCurrentJaloSessionId()