info.magnolia.rendering.context
Class AggregationStateBasedRenderingContext

java.lang.Object
  extended by info.magnolia.rendering.context.AggregationStateBasedRenderingContext
All Implemented Interfaces:
RenderingContext

@RequestScoped
public class AggregationStateBasedRenderingContext
extends Object
implements RenderingContext

RenderingContext implementation that uses AggregationState.

Version:
$Id$

Constructor Summary
AggregationStateBasedRenderingContext(info.magnolia.cms.core.AggregationState aggregationState)
           
AggregationStateBasedRenderingContext(javax.inject.Provider<info.magnolia.cms.core.AggregationState> aggregationStateProvider)
           
 
Method Summary
 AppendableWriter getAppendable()
           
 javax.jcr.Node getCurrentContent()
           
 javax.jcr.Node getMainContent()
           
 OutputProvider getOutputProvider()
           
 OutputStream getOutputStream()
           
 RenderableDefinition getRenderableDefinition()
           
 void pop()
           
 void push(javax.jcr.Node content, RenderableDefinition renderableDefinition)
          Pushes the content and renderableDefinition to be used for rendering.
 void push(javax.jcr.Node content, RenderableDefinition renderableDefinition, OutputProvider outputProvider)
          Pushes the content and renderableDefinition to be used for rendering.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregationStateBasedRenderingContext

@Inject
public AggregationStateBasedRenderingContext(javax.inject.Provider<info.magnolia.cms.core.AggregationState> aggregationStateProvider)

AggregationStateBasedRenderingContext

public AggregationStateBasedRenderingContext(info.magnolia.cms.core.AggregationState aggregationState)
Method Detail

getMainContent

public javax.jcr.Node getMainContent()
Specified by:
getMainContent in interface RenderingContext

getCurrentContent

public javax.jcr.Node getCurrentContent()
Specified by:
getCurrentContent in interface RenderingContext

getRenderableDefinition

public RenderableDefinition getRenderableDefinition()
Specified by:
getRenderableDefinition in interface RenderingContext

push

public void push(javax.jcr.Node content,
                 RenderableDefinition renderableDefinition)
Description copied from interface: RenderingContext
Pushes the content and renderableDefinition to be used for rendering. Output will be written using the OutputProvider already set.

Specified by:
push in interface RenderingContext

push

public void push(javax.jcr.Node content,
                 RenderableDefinition renderableDefinition,
                 OutputProvider outputProvider)
Description copied from interface: RenderingContext
Pushes the content and renderableDefinition to be used for rendering.

Specified by:
push in interface RenderingContext
outputProvider - the OutputProvider to be used for output or null to use the OutputProvider already set

pop

public void pop()
Specified by:
pop in interface RenderingContext

getOutputProvider

public OutputProvider getOutputProvider()
Specified by:
getOutputProvider in interface RenderingContext

getAppendable

public AppendableWriter getAppendable()
                               throws RenderException,
                                      IOException
Specified by:
getAppendable in interface RenderingContext
Throws:
RenderException
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws RenderException,
                                    IOException
Specified by:
getOutputStream in interface RenderingContext
Throws:
RenderException
IOException


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.