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 Details

  • Constructor Details

    • CMSComponentTag

      public CMSComponentTag()
  • Method Details

    • release

      public void release()
      Specified by:
      release in interface javax.servlet.jsp.tagext.Tag
      Overrides:
      release in class javax.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(since="1811", forRemoval=true) protected boolean 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:
      doStartTag in interface javax.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class javax.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:
      doEndTag in interface javax.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class javax.servlet.jsp.tagext.TagSupport
      Throws:
      javax.servlet.jsp.JspException
    • setUid

      public void setUid(String uid)
    • setComponent

      public void setComponent(AbstractCMSComponentModel component)
    • 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 RestrictionData object