@LocalScoped public class AggregationStateBasedRenderingContext extends Object implements RenderingContext
Constructor and Description |
---|
AggregationStateBasedRenderingContext(info.magnolia.cms.core.AggregationState aggregationState,
RenderExceptionHandler exceptionHandler) |
AggregationStateBasedRenderingContext(javax.inject.Provider<info.magnolia.cms.core.AggregationState> aggregationStateProvider,
RenderExceptionHandler exceptionHandler) |
@Inject public AggregationStateBasedRenderingContext(javax.inject.Provider<info.magnolia.cms.core.AggregationState> aggregationStateProvider, RenderExceptionHandler exceptionHandler)
public AggregationStateBasedRenderingContext(info.magnolia.cms.core.AggregationState aggregationState, RenderExceptionHandler exceptionHandler)
public javax.jcr.Node getMainContent()
getMainContent
in interface RenderingContext
public javax.jcr.Node getCurrentContent()
getCurrentContent
in interface RenderingContext
public RenderableDefinition getRenderableDefinition()
getRenderableDefinition
in interface RenderingContext
public AreaDefinition getParentAreaDefinition()
getParentAreaDefinition
in interface RenderingContext
public RenderableDefinition getAncestorDefinition(int level)
getAncestorDefinition
in interface RenderingContext
level
- >= 1null
if such ancestor doesn't exist.public void push(javax.jcr.Node content, RenderableDefinition renderableDefinition)
RenderingContext
push
in interface RenderingContext
public void push(javax.jcr.Node content, RenderableDefinition renderableDefinition, OutputProvider outputProvider)
RenderingContext
push
in interface RenderingContext
outputProvider
- the OutputProvider to be used for output or null to use the OutputProvider already setpublic void pop()
pop
in interface RenderingContext
public OutputProvider getOutputProvider()
getOutputProvider
in interface RenderingContext
public AppendableWriter getAppendable() throws IOException
getAppendable
in interface RenderingContext
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface RenderingContext
IOException
public void handleException(RenderException renderException)
handleException
in interface RenderingContext
public void setListeners(List<AbstractRenderingListener> listeners)
setListeners
in interface RenderingContext
public void addListener(AbstractRenderingListener renderingListener)
addListener
in interface RenderingContext
public Collection<AbstractRenderingListener.RenderingListenerReturnCode> before(javax.jcr.Node content, RenderableDefinition definition, Map<String,Object> contextObjects, OutputProvider out)
before
in interface RenderingContext
public void after(javax.jcr.Node content, RenderableDefinition definition, Map<String,Object> contextObjects, OutputProvider out)
after
in interface RenderingContext
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.