public abstract class AbstractContentTemplatingElement extends AbstractTemplatingElement
Constructor and Description |
---|
AbstractContentTemplatingElement(ServerConfiguration server,
RenderingContext renderingContext,
I18nizer i18nizer)
Deprecated.
since 6.1. Use
#AbstractContentTemplatingElement#AbstractContentTemplatingElement(info.magnolia.cms.beans.config.ServerConfiguration, info.magnolia.rendering.context.RenderingContext, javax.inject.Provider, info.magnolia.context.WebContext) instead. |
AbstractContentTemplatingElement(ServerConfiguration server,
RenderingContext renderingContext,
javax.inject.Provider<TemplatingModule> templatingModuleProvider,
WebContext webContext) |
Modifier and Type | Method and Description |
---|---|
protected String |
getActivationStatus(javax.jcr.Node node)
Deprecated.
since 6.1. Use
ActivationStatus instead. |
javax.jcr.Node |
getContent() |
String |
getDialog() |
Boolean |
getEditable() |
String |
getNodeIdentifier() |
protected String |
getNodePath(javax.jcr.Node node)
Deprecated.
since 6.1., Use
Content instead. |
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() |
TemplateDefinition |
getTemplateDefinition() |
protected WebContext |
getWebContext() |
String |
getWorkspace() |
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 |
setDialog(String dialog) |
void |
setEditable(Boolean editable) |
void |
setNodeIdentifier(String nodeIdentifier) |
protected void |
setPageEditorAttributes(MarkupHelper helper,
String elementType) |
void |
setPath(String path) |
void |
setTemplateDefinition(TemplateDefinition templateDefinition) |
void |
setWorkspace(String workspace) |
begin, currentContent, end, getDefinitionMessage, getInterfaceMessage, getRenderingContext, getServer, isAdmin
public AbstractContentTemplatingElement(ServerConfiguration server, RenderingContext renderingContext, javax.inject.Provider<TemplatingModule> templatingModuleProvider, WebContext webContext)
@Deprecated public AbstractContentTemplatingElement(ServerConfiguration server, RenderingContext renderingContext, I18nizer i18nizer)
#AbstractContentTemplatingElement#AbstractContentTemplatingElement(info.magnolia.cms.beans.config.ServerConfiguration, info.magnolia.rendering.context.RenderingContext, javax.inject.Provider, info.magnolia.context.WebContext)
instead.@Deprecated protected String legacyTranslate(String keyOrAlreadyTranslatedValue, String i18nBasename)
protected boolean isMessageKey(String key)
protected void setPageEditorAttributes(MarkupHelper helper, String elementType) throws IOException
IOException
@Deprecated protected String getNodePath(javax.jcr.Node node) throws RenderException
Content
instead.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()
@Deprecated protected String getActivationStatus(javax.jcr.Node node)
ActivationStatus
instead.protected WebContext getWebContext()
public void setDialog(String dialog)
public String getDialog()
public void setTemplateDefinition(TemplateDefinition templateDefinition)
public TemplateDefinition getTemplateDefinition()
public Boolean getEditable()
public void setEditable(Boolean editable)
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.