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

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

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

Version:
CVS $Id: AbstractContentEventAspect.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Jürgen Seitz, Carsten Ziegeler

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

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


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