net.sourceforge.pebble.event.comment
Class EmailNotificationListener

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.EmailNotificationListener
All Implemented Interfaces:
CommentListener

public class EmailNotificationListener
extends AbstractEmailNotificationListener

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

Author:
Simon Brown

Constructor Summary
EmailNotificationListener()
           
 
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

EmailNotificationListener

public EmailNotificationListener()
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.