org.apache.cocoon.portal.layout.renderer.aspect.impl
Class HistoryAspect

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect
          extended by org.apache.cocoon.portal.layout.renderer.aspect.impl.HistoryAspect
All Implemented Interfaces:
Component, LogEnabled, Serviceable, ThreadSafe, RendererAspect

public class HistoryAspect
extends AbstractAspect

Save the current state of the layout into the session. Takes into account state already present as request attribute. Includes aspect data and parameters as well as aspect data and attributes of a coplet instance if layout is a coplet layout. This aspect does not add to the XML created by the renderer chain.

Example XML

   <!-- output from following renderers --> 
 

Applicable to:

Version:
CVS $Id: HistoryAspect.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
 
Fields inherited from class org.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect
manager
 
Fields inherited from interface org.apache.cocoon.portal.layout.renderer.aspect.RendererAspect
ROLE
 
Constructor Summary
HistoryAspect()
           
 
Method Summary
protected  void addValues(String id, List state, Map values, String prefix, boolean isCopletEvent)
          Add the values to the state
 void toSAX(RendererAspectContext context, Layout layout, PortalService service, ContentHandler handler)
          Stream out raw layout
 
Methods inherited from class org.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect
getAspectDescriptions, isRequired, prepareConfiguration, service
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryAspect

public HistoryAspect()
Method Detail

addValues

protected void addValues(String id,
                         List state,
                         Map values,
                         String prefix,
                         boolean isCopletEvent)
Add the values to the state

Parameters:
id -
state -
values -
isCopletEvent - tells if the event has to be a coplet event

toSAX

public void toSAX(RendererAspectContext context,
                  Layout layout,
                  PortalService service,
                  ContentHandler handler)
           throws SAXException
Description copied from interface: RendererAspect
Stream out raw layout

Specified by:
toSAX in interface RendererAspect
Overrides:
toSAX in class AbstractAspect
Throws:
SAXException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.