net.sourceforge.pebble.event.comment
Class EmailAuthorNotificationListener

java.lang.Object
  extended by net.sourceforge.pebble.event.comment.CommentListenerSupport
      extended by net.sourceforge.pebble.event.comment.AbstractEmailNotificationListener
          extended by net.sourceforge.pebble.event.comment.EmailAuthorNotificationListener
All Implemented Interfaces:
CommentListener

public class EmailAuthorNotificationListener
extends AbstractEmailNotificationListener

Sends an e-mail notification to the blog entry author when new comments are added.

Author:
Simon Brown

Constructor Summary
EmailAuthorNotificationListener()
           
 
Method Summary
protected  java.util.Collection getEmailAddresses(Comment comment)
          Returns the collection of recipients.
 
Methods inherited from class net.sourceforge.pebble.event.comment.AbstractEmailNotificationListener
commentAdded, commentApproved
 
Methods inherited from class net.sourceforge.pebble.event.comment.CommentListenerSupport
commentRejected, commentRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailAuthorNotificationListener

public EmailAuthorNotificationListener()
Method Detail

getEmailAddresses

protected java.util.Collection getEmailAddresses(Comment comment)
Returns the collection of recipients.

Specified by:
getEmailAddresses in class AbstractEmailNotificationListener
Parameters:
comment - the Comment from the event
Returns:
a Collection of e-mail addresses (Strings)


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