org.apache.cocoon.portal.wsrp.adapter
Class WSRPPortletWindowAspect

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect
          extended byorg.apache.cocoon.portal.wsrp.adapter.WSRPPortletWindowAspect
All Implemented Interfaces:
Contextualizable, LogEnabled, RendererAspect, Serviceable, ThreadSafe

public final class WSRPPortletWindowAspect
extends AbstractAspect
implements Contextualizable

This aspect draws a portlet window for a wsrp portlet.

Example XML:

   <window>
     <title>title</title>
     <maximize-uri>event</maximize-uri>
     <minimize-uri>event</minimize-uri>
     <fullscreen-uri>event</fullscreen-uri>
     <edit-uri>event</edit-uri>
     <help-uri>event</help-uri>
     <view-uri>event</view-uri>
     <!-- output of following renderers -->
   </window>
 

Applicable to:

Parameters

root-tagShould a root tag surrounding the following output be generated?booleantrue
tag-nameName of the root tag if requested. String"window"

Version:
$Id: WSRPPortletWindowAspect.java 326208 2005-10-18 19:04:01Z cziegeler $

Nested Class Summary
protected static class WSRPPortletWindowAspect.PreparedConfiguration
          utility-class to get the tags out of the configuration
 
Field Summary
protected  WSRPAdapter adapter
          The wsrp adapter.
protected  ConsumerEnvironmentImpl environment
          The environment implementation
 
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
WSRPPortletWindowAspect()
           
 
Method Summary
 void contextualize(Context context)
           
 Object prepareConfiguration(Parameters configuration)
          Compile the configuration.
 void toSAX(RendererAspectContext context, Layout layout, PortalService service, ContentHandler contenthandler)
          Stream out raw layout
 
Methods inherited from class org.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect
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
 

Field Detail

environment

protected ConsumerEnvironmentImpl environment
The environment implementation


adapter

protected WSRPAdapter adapter
The wsrp adapter.

Constructor Detail

WSRPPortletWindowAspect

public WSRPPortletWindowAspect()
Method Detail

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException
See Also:
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)

toSAX

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

Specified by:
toSAX in interface RendererAspect
Overrides:
toSAX in class AbstractAspect
Throws:
SAXException
See Also:
RendererAspect.toSAX(org.apache.cocoon.portal.layout.renderer.aspect.RendererAspectContext, org.apache.cocoon.portal.layout.Layout, org.apache.cocoon.portal.PortalService, org.xml.sax.ContentHandler)

prepareConfiguration

public Object prepareConfiguration(Parameters configuration)
                            throws ParameterException
Description copied from interface: RendererAspect
Compile the configuration. A renderer aspect can "compile" the configuration in order to increase performance. If the renderer does not want to compile it should simply return the configuration. The "compiled" configuration is available during streaming via the context object. This method can also be used for validating the configuration.

Specified by:
prepareConfiguration in interface RendererAspect
Overrides:
prepareConfiguration in class AbstractAspect
Throws:
ParameterException
See Also:
RendererAspect.prepareConfiguration(org.apache.avalon.framework.parameters.Parameters)


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.