Class CMSBodyTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- de.hybris.platform.cms2lib.cmstags.CMSBodyTag
-
- All Implemented Interfaces:
java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CMSBodyTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoAfterBody()intdoStartTag()protected java.lang.StringgetCurrentJaloSessionId()protected java.lang.StringgetCurrentUserUid()protected PreviewDataModelgetPreviewData(java.lang.String ticketId, javax.servlet.ServletRequest httpRequest)Retrieves current Preview Data according to given ticked idprotected PreviewDataModelgetPreviewData(javax.servlet.ServletRequest httpRequest)Checks whether current Preview Data is valid (not removed)protected java.lang.StringgetPreviewTicketId(javax.servlet.ServletRequest httpRequest)RetrievesCMSFilter.PREVIEW_TICKET_ID_PARAMfrom current requestprotected javax.servlet.ServletContextgetServletContext()protected booleanisLiveEdit()protected booleanisPreviewDataModelValid()-
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
-
-
-
-
Method Detail
-
getServletContext
protected javax.servlet.ServletContext getServletContext()
-
isLiveEdit
protected boolean isLiveEdit()
-
isPreviewDataModelValid
protected boolean isPreviewDataModelValid()
-
getPreviewTicketId
protected java.lang.String getPreviewTicketId(javax.servlet.ServletRequest httpRequest)
RetrievesCMSFilter.PREVIEW_TICKET_ID_PARAMfrom 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(java.lang.String ticketId, javax.servlet.ServletRequest httpRequest)
Retrieves current Preview Data according to given ticked id- Parameters:
ticketId- current ticket idhttpRequest- 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:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjavax.servlet.jsp.tagext.BodyTagSupport- Throws:
javax.servlet.jsp.JspException
-
doAfterBody
public int doAfterBody() throws javax.servlet.jsp.JspException- Specified by:
doAfterBodyin interfacejavax.servlet.jsp.tagext.IterationTag- Overrides:
doAfterBodyin classjavax.servlet.jsp.tagext.BodyTagSupport- Throws:
javax.servlet.jsp.JspException
-
getCurrentUserUid
protected java.lang.String getCurrentUserUid()
-
getCurrentJaloSessionId
protected java.lang.String getCurrentJaloSessionId()
-
-