net.sourceforge.pebble.event.trackback
Class AbstractEmailNotificationListener

java.lang.Object
  extended by net.sourceforge.pebble.event.trackback.TrackBackListenerSupport
      extended by net.sourceforge.pebble.event.trackback.AbstractEmailNotificationListener
All Implemented Interfaces:
TrackBackListener
Direct Known Subclasses:
EmailAuthorNotificationListener, EmailNotificationListener

public abstract class AbstractEmailNotificationListener
extends TrackBackListenerSupport

Base class for listeners that send an e-mail notification when new TrackBacks are added.

Author:
Simon Brown

Constructor Summary
AbstractEmailNotificationListener()
           
 
Method Summary
protected abstract  java.util.Collection getEmailAddresses(TrackBack trackBack)
          Returns the collection of recipients.
 void trackBackAdded(TrackBackEvent event)
          Called when a TrackBack has been added.
 
Methods inherited from class net.sourceforge.pebble.event.trackback.TrackBackListenerSupport
trackBackApproved, trackBackRejected, trackBackRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEmailNotificationListener

public AbstractEmailNotificationListener()
Method Detail

trackBackAdded

public void trackBackAdded(TrackBackEvent event)
Called when a TrackBack has been added.

Specified by:
trackBackAdded in interface TrackBackListener
Overrides:
trackBackAdded in class TrackBackListenerSupport
Parameters:
event - a TrackBackEvent instance

getEmailAddresses

protected abstract java.util.Collection getEmailAddresses(TrackBack trackBack)
Returns the collection of recipients.

Parameters:
trackBack - the TrackBack from the event
Returns:
a Collection of e-mail addresses (Strings)


Copyright © 2003-2006, Simon Brown. All Rights Reserved.