public abstract class AbstractContentTemplatingElement extends AbstractTemplatingElement
Constructor and Description |
---|
AbstractContentTemplatingElement(ServerConfiguration server,
RenderingContext renderingContext)
|
AbstractContentTemplatingElement(ServerConfiguration server,
RenderingContext renderingContext,
I18nizer i18nizer) |
Modifier and Type | Method and Description |
---|---|
protected String |
getActivationStatus(javax.jcr.Node node) |
javax.jcr.Node |
getContent() |
String |
getNodeIdentifier() |
protected String |
getNodePath(javax.jcr.Node node) |
protected javax.jcr.Node |
getPassedContent()
Returns the content passed to the element (content or workspace/path attribute) or null if nothing was passed.
|
String |
getPath() |
String |
getWorkspace() |
protected <D> D |
i18nize(D renderableDefinition) |
protected boolean |
isMessageKey(String key) |
protected String |
legacyTranslate(String keyOrAlreadyTranslatedValue,
String i18nBasename)
Deprecated.
since 5.4.4. The support for i18nBasename will be removed in a future version.
|
protected boolean |
renderComments()
Override to set conditions for rendering of cms:comments.
|
protected void |
restoreAttributesInWebContext(Map<String,Object> attributes,
int scope)
Restores the original values of attributes in web context under the specified scope.
|
protected void |
setAttributesInWebContext(Map<String,Object> attributes,
int scope)
Sets attributes in web context under the specified scope.
|
void |
setContent(javax.jcr.Node node) |
void |
setNodeIdentifier(String nodeIdentifier) |
void |
setPath(String path) |
void |
setWorkspace(String workspace) |
begin, currentContent, end, getDefinitionMessage, getInterfaceMessage, getRenderingContext, getServer, isAdmin
public AbstractContentTemplatingElement(ServerConfiguration server, RenderingContext renderingContext, I18nizer i18nizer)
@Deprecated public AbstractContentTemplatingElement(ServerConfiguration server, RenderingContext renderingContext)
protected <D> D i18nize(D renderableDefinition)
@Deprecated protected String legacyTranslate(String keyOrAlreadyTranslatedValue, String i18nBasename)
protected boolean isMessageKey(String key)
protected String getNodePath(javax.jcr.Node node) throws RenderException
RenderException
protected javax.jcr.Node getPassedContent() throws RenderException
RenderException
public javax.jcr.Node getContent()
public void setContent(javax.jcr.Node node)
public String getWorkspace()
public void setWorkspace(String workspace)
public String getNodeIdentifier()
public void setNodeIdentifier(String nodeIdentifier)
public String getPath()
public void setPath(String path)
protected void setAttributesInWebContext(Map<String,Object> attributes, int scope)
scope
- one of Context.APPLICATION_SCOPE
Context.SESSION_SCOPE
Context.LOCAL_SCOPE
.protected void restoreAttributesInWebContext(Map<String,Object> attributes, int scope)
scope
- one of Context.APPLICATION_SCOPE
Context.SESSION_SCOPE
Context.LOCAL_SCOPE
.protected boolean renderComments()
protected String getActivationStatus(javax.jcr.Node node)
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.