Class CMSComponentTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
de.hybris.platform.cms2lib.cmstags.CMSComponentTag
- All Implemented Interfaces:
Serializable,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
public class CMSComponentTag
extends javax.servlet.jsp.tagext.TagSupport
- See Also:
-
Field Summary
FieldsFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()intprotected Collection<SimpleCMSComponentModel>getComponents(org.springframework.web.context.WebApplicationContext appContext, javax.servlet.http.HttpServletRequest request) protected javax.servlet.ServletContextprotected voidinit()protected voidinitLiveEditJS(javax.servlet.http.HttpServletRequest request) protected booleanisAllowed(AbstractCMSComponentModel component, RestrictionData restrictionData, CMSRestrictionService cmsRestrictionService, boolean previewEnabled) Checks whether component should be displayed.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.since 1811, not used anymoreprotected booleanprotected RestrictionDatapopulate(javax.servlet.http.HttpServletRequest request, CMSDataFactory cmsDataFactory) Wrapped all information fetched from current HTTP requestvoidrelease()voidsetComponent(AbstractCMSComponentModel component) voidsetEvaluateRestriction(boolean evaluateRestriction) voidMethods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Field Details
-
INIT_LE_JS
- See Also:
-
DEFAULT_CONTROLLER
- See Also:
-
-
Constructor Details
-
CMSComponentTag
public CMSComponentTag()
-
-
Method Details
-
release
public void release()- Specified by:
releasein interfacejavax.servlet.jsp.tagext.Tag- Overrides:
releasein classjavax.servlet.jsp.tagext.TagSupport
-
init
protected void init() -
getServletContext
protected javax.servlet.ServletContext getServletContext() -
getComponents
protected Collection<SimpleCMSComponentModel> getComponents(org.springframework.web.context.WebApplicationContext appContext, javax.servlet.http.HttpServletRequest request) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
isAllowed
protected boolean isAllowed(AbstractCMSComponentModel component, RestrictionData restrictionData, CMSRestrictionService cmsRestrictionService, boolean previewEnabled) Checks whether component should be displayed.
Note: Computation takes into account:- Checks whether component is visible
- If component is restricted checks whether we should display it
-
isPreviewEnabled
protected boolean isPreviewEnabled() -
isLiveEdit
Deprecated, for removal: This API element is subject to removal in a future version.since 1811, not used anymore -
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjavax.servlet.jsp.tagext.TagSupport- Throws:
javax.servlet.jsp.JspException
-
initLiveEditJS
protected void initLiveEditJS(javax.servlet.http.HttpServletRequest request) -
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjavax.servlet.jsp.tagext.TagSupport- Throws:
javax.servlet.jsp.JspException
-
setUid
-
setComponent
-
setEvaluateRestriction
public void setEvaluateRestriction(boolean evaluateRestriction) -
populate
protected RestrictionData populate(javax.servlet.http.HttpServletRequest request, CMSDataFactory cmsDataFactory) Wrapped all information fetched from current HTTP request- Parameters:
request- current HTTP request- Returns:
- all gather information wrapped to
RestrictionDataobject
-