org.apache.cocoon.portal.event.aspect.impl
Class AbstractContentEventAspect

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.portal.event.aspect.impl.AbstractContentEventAspect
All Implemented Interfaces:
EventAspect, LogEnabled, Serviceable, ThreadSafe
Direct Known Subclasses:
FrameEventAspect, LinkEventAspect

public abstract class AbstractContentEventAspect
extends AbstractLogEnabled
implements EventAspect, ThreadSafe, Serviceable

Version:
$Id: AbstractContentEventAspect.java 321405 2005-10-15 18:15:44Z cziegeler $

Field Summary
protected  ServiceManager manager
           
 
Fields inherited from interface org.apache.cocoon.portal.event.aspect.EventAspect
ROLE
 
Constructor Summary
AbstractContentEventAspect()
           
 
Method Summary
protected abstract  String getRequestParameterName()
           
protected abstract  int getRequiredValueCount()
           
 void process(EventAspectContext context, PortalService service)
           
protected abstract  void publish(EventManager publisher, Layout layout, String[] values)
          Custom publishing of an event.
protected  void publish(PortalService service, EventManager publisher, String[] values)
          Publish the event.
 void service(ServiceManager manager)
           
 
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

manager

protected ServiceManager manager
Constructor Detail

AbstractContentEventAspect

public AbstractContentEventAspect()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

getRequestParameterName

protected abstract String getRequestParameterName()

getRequiredValueCount

protected abstract int getRequiredValueCount()

publish

protected abstract void publish(EventManager publisher,
                                Layout layout,
                                String[] values)
Custom publishing of an event. The real values for the event are contained in the array starting with index 2!

Parameters:
layout - The corresponding layout
values - The values contained in the request

publish

protected void publish(PortalService service,
                       EventManager publisher,
                       String[] values)
Publish the event. This method gets the layout object from the first two values and invokes publish(EventManager, Layout, String[]).

Parameters:
values - The values contained in the request

process

public void process(EventAspectContext context,
                    PortalService service)
Specified by:
process in interface EventAspect
See Also:
EventAspect.process(org.apache.cocoon.portal.event.aspect.EventAspectContext, org.apache.cocoon.portal.PortalService)


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