|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.templating.AbstractRenderer
info.magnolia.rendering.renderer.AbstractRenderer
FIXME remove most of the code and and try to extend the new info.magnolia.rendering.renderer.AbstractRenderer
@Deprecated public abstract class AbstractRenderer
Abstract renderer which can be used to implement paragraph or template renderers. Sets up the context by providing the following objects: content, aggregationState, page, model, actionResult, mgnl
Constructor Summary | |
---|---|
AbstractRenderer()
Deprecated. |
Method Summary | |
---|---|
protected String |
determineTemplatePath(info.magnolia.cms.core.Content content,
RenderableDefinition definition,
RenderingModel model,
String actionResult)
Deprecated. |
protected info.magnolia.cms.core.AggregationState |
getAggregationStateSafely()
Deprecated. This gets the aggregation state without throwing an exception if the current context is not a WebContext. |
protected MagnoliaTemplatingUtilities |
getMagnoliaTemplatingUtilities()
Deprecated. |
protected info.magnolia.cms.core.Content |
getMainContentSafely(info.magnolia.cms.core.Content current)
Deprecated. Gets the current main contain and treats the situation where the context is not a web context nicely by using the current content instead. |
protected String |
getPageAttributeName()
Deprecated. Used to give JSP implementations to give the chance to use on other name than page which is a reserved name in JSPs. |
protected abstract Map |
newContext()
Deprecated. Create a new context object which is a map. |
RenderingModel |
newModel(info.magnolia.cms.core.Content content,
RenderableDefinition definition,
RenderingModel parentModel)
Deprecated. Creates the model for this rendering process. |
protected abstract void |
onRender(info.magnolia.cms.core.Content content,
RenderableDefinition definition,
Writer out,
Map ctx,
String templatePath)
Deprecated. Finally execute the rendering. |
protected void |
render(info.magnolia.cms.core.Content content,
RenderableDefinition definition,
Writer out)
Deprecated. |
protected void |
restoreContext(Map ctx,
Map state)
Deprecated. |
protected void |
saveAttribute(Map ctx,
Map state,
String name)
Deprecated. |
protected Map |
saveContextState(Map ctx)
Deprecated. |
protected Object |
setContextAttribute(Map ctx,
String name,
Object value)
Deprecated. |
protected void |
setupContext(Map ctx,
info.magnolia.cms.core.Content content,
RenderableDefinition definition,
RenderingModel model,
Object actionResult)
Deprecated. |
protected info.magnolia.cms.core.Content |
wrapNodeForModel(info.magnolia.cms.core.Content currentContent,
info.magnolia.cms.core.Content mainContent)
Deprecated. Wraps the current content node before passing it to the model. |
protected info.magnolia.cms.core.Content |
wrapNodeForTemplate(info.magnolia.cms.core.Content currentContent,
info.magnolia.cms.core.Content mainContent)
Deprecated. Wraps the current content node before exposing it to the template renderer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractRenderer()
Method Detail |
---|
protected void render(info.magnolia.cms.core.Content content, RenderableDefinition definition, Writer out) throws RenderException
RenderException
protected String determineTemplatePath(info.magnolia.cms.core.Content content, RenderableDefinition definition, RenderingModel model, String actionResult)
public RenderingModel newModel(info.magnolia.cms.core.Content content, RenderableDefinition definition, RenderingModel parentModel) throws RenderException
newModel
in interface RenderingModelBasedRenderer
RenderException
protected Map saveContextState(Map ctx)
protected void saveAttribute(Map ctx, Map state, String name)
protected void restoreContext(Map ctx, Map state)
protected void setupContext(Map ctx, info.magnolia.cms.core.Content content, RenderableDefinition definition, RenderingModel model, Object actionResult)
protected info.magnolia.cms.core.Content getMainContentSafely(info.magnolia.cms.core.Content current)
protected info.magnolia.cms.core.AggregationState getAggregationStateSafely()
protected MagnoliaTemplatingUtilities getMagnoliaTemplatingUtilities()
protected info.magnolia.cms.core.Content wrapNodeForModel(info.magnolia.cms.core.Content currentContent, info.magnolia.cms.core.Content mainContent)
currentContent
- the actual contentmainContent
- the current "main content" or "page", which might be needed in certain wrapping situationsprotected info.magnolia.cms.core.Content wrapNodeForTemplate(info.magnolia.cms.core.Content currentContent, info.magnolia.cms.core.Content mainContent)
currentContent
- the actual content being exposed to the templatemainContent
- the current "main content" or "page", which might be needed in certain wrapping situationsTODO : return an Object instance instead - more flexibility for the template engine ?
protected Object setContextAttribute(Map ctx, String name, Object value)
protected String getPageAttributeName()
protected abstract Map newContext()
protected abstract void onRender(info.magnolia.cms.core.Content content, RenderableDefinition definition, Writer out, Map ctx, String templatePath) throws RenderException
content
- TODO
RenderException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |