public class CMSComponentTag
extends TagSupport
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_CONTROLLER |
protected static String |
INIT_LE_JS |
| Constructor and Description |
|---|
CMSComponentTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
int |
doStartTag() |
protected Collection<SimpleCMSComponentModel> |
getComponents(WebApplicationContext appContext,
HttpServletRequest request) |
protected ServletContext |
getServletContext() |
protected void |
init() |
protected void |
initLiveEditJS(HttpServletRequest request) |
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 |
protected boolean |
isLiveEdit() |
protected boolean |
isPreviewEnabled() |
protected RestrictionData |
populate(HttpServletRequest request,
CMSDataFactory cmsDataFactory)
Wrapped all information fetched from current HTTP request
|
void |
release() |
void |
setComponent(AbstractCMSComponentModel component) |
void |
setEvaluateRestriction(boolean evaluateRestriction) |
void |
setUid(String uid) |
protected static final String INIT_LE_JS
protected static final String DEFAULT_CONTROLLER
public void release()
protected void init()
protected ServletContext getServletContext()
protected Collection<SimpleCMSComponentModel> getComponents(WebApplicationContext appContext, HttpServletRequest request) throws CMSItemNotFoundException
CMSItemNotFoundExceptionprotected boolean isAllowed(AbstractCMSComponentModel component, RestrictionData restrictionData, CMSRestrictionService cmsRestrictionService, boolean previewEnabled)
protected boolean isPreviewEnabled()
protected boolean isLiveEdit()
public int doStartTag()
throws JspException
JspExceptionprotected void initLiveEditJS(HttpServletRequest request)
public int doEndTag()
throws JspException
JspExceptionpublic void setUid(String uid)
public void setComponent(AbstractCMSComponentModel component)
public void setEvaluateRestriction(boolean evaluateRestriction)
protected RestrictionData populate(HttpServletRequest request, CMSDataFactory cmsDataFactory)
request - current HTTP requestRestrictionData objectCopyright © 2017 SAP SE. All Rights Reserved.