public class ComponentElement extends AbstractContentTemplatingElement
Modifier and Type | Field and Description |
---|---|
static String |
CMS_COMPONENT_TAG |
Constructor and Description |
---|
ComponentElement(ServerConfiguration server,
RenderingContext renderingContext,
RenderingEngine renderingEngine,
TemplateDefinitionAssignment templateDefinitionAssignment,
I18nizer i18nizer,
WebContext webContext)
Deprecated.
|
ComponentElement(ServerConfiguration server,
RenderingContext renderingContext,
RenderingEngine renderingEngine,
TemplateDefinitionAssignment templateDefinitionAssignment,
WebContext webContext,
javax.inject.Provider<TemplatingModule> templatingModuleProvider) |
Modifier and Type | Method and Description |
---|---|
void |
begin(Appendable out) |
void |
end(Appendable out)
Override this method if you need to "do something" once the component is rendered, i.e cleanup the context.
|
Map<String,Object> |
getContextAttributes() |
OperationPermissionDefinition |
getPermissions() |
boolean |
isRenderEditbar() |
protected boolean |
renderComments()
Override to set conditions for rendering of cms:comments.
|
void |
setContextAttributes(Map<String,Object> contextAttributes) |
protected void |
setPageEditorAttributes(MarkupHelper helper,
javax.jcr.Node node) |
void |
setRenderEditbar(boolean renderEditbar) |
getActivationStatus, getContent, getDialog, getEditable, getNodeIdentifier, getNodePath, getPassedContent, getPath, getTemplateDefinition, getWebContext, getWorkspace, isMessageKey, legacyTranslate, restoreAttributesInWebContext, setAttributesInWebContext, setContent, setDialog, setEditable, setNodeIdentifier, setPageEditorAttributes, setPath, setTemplateDefinition, setWorkspace
currentContent, getDefinitionMessage, getInterfaceMessage, getRenderingContext, getServer, isAdmin
public static final String CMS_COMPONENT_TAG
@Inject public ComponentElement(ServerConfiguration server, RenderingContext renderingContext, RenderingEngine renderingEngine, TemplateDefinitionAssignment templateDefinitionAssignment, WebContext webContext, javax.inject.Provider<TemplatingModule> templatingModuleProvider)
@Deprecated public ComponentElement(ServerConfiguration server, RenderingContext renderingContext, RenderingEngine renderingEngine, TemplateDefinitionAssignment templateDefinitionAssignment, I18nizer i18nizer, WebContext webContext)
ComponentElement(info.magnolia.cms.beans.config.ServerConfiguration, info.magnolia.rendering.context.RenderingContext, info.magnolia.rendering.engine.RenderingEngine, info.magnolia.rendering.template.assignment.TemplateDefinitionAssignment, info.magnolia.context.WebContext, javax.inject.Provider)
instead.public void begin(Appendable out) throws IOException, RenderException
begin
in interface TemplatingElement
begin
in class AbstractTemplatingElement
IOException
RenderException
protected void setPageEditorAttributes(MarkupHelper helper, javax.jcr.Node node) throws IOException, RenderException
IOException
RenderException
public void end(Appendable out) throws IOException, RenderException
AbstractTemplatingElement
end
in interface TemplatingElement
end
in class AbstractTemplatingElement
IOException
RenderException
public boolean isRenderEditbar()
public void setRenderEditbar(boolean renderEditbar)
protected boolean renderComments()
AbstractContentTemplatingElement
renderComments
in class AbstractContentTemplatingElement
public OperationPermissionDefinition getPermissions()
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.