org.ceryle.wiki.plugin.emailnotifier
Class SingleNotifier

java.lang.Object
  extended by org.ceryle.wiki.plugin.emailnotifier.SingleNotifier

public class SingleNotifier
extends Object

A modification of NotifierTask that sends a single email to a single email address. This is not a NotifierTask extension since that class has many member variables and methods that are appropriately private.

Author:
Murray Altheim

Field Summary
static String PROP_EMAIL_PASSWORD
           
static String PROP_EMAIL_USERID
           
 
Constructor Summary
SingleNotifier(WikiEngine engine)
          Basic constructor, accepts the app name that we serve as notifier for, schedules this task to run.
 
Method Summary
protected  List readSubscribers()
          Return a list of the Subscribers who are due delivery of their notifications.
 void sendEmail(String message, String address)
          Given an email text and an email address, sends that email to the provided email address.
protected  String subscriptionPageText()
          Return the (raw, untranslated) wiki text of the designated subscription page.
 void updateFormatter(Map paramMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_EMAIL_USERID

public static final String PROP_EMAIL_USERID
See Also:
Constant Field Values

PROP_EMAIL_PASSWORD

public static final String PROP_EMAIL_PASSWORD
See Also:
Constant Field Values
Constructor Detail

SingleNotifier

public SingleNotifier(WikiEngine engine)
               throws javax.mail.internet.AddressException
Basic constructor, accepts the app name that we serve as notifier for, schedules this task to run.

Parameters:
engine - the WikiEngine used.
Throws:
javax.mail.internet.AddressException
Method Detail

sendEmail

public void sendEmail(String message,
                      String address)
Given an email text and an email address, sends that email to the provided email address.


readSubscribers

protected List readSubscribers()
Return a list of the Subscribers who are due delivery of their notifications.


subscriptionPageText

protected String subscriptionPageText()
Return the (raw, untranslated) wiki text of the designated subscription page.


updateFormatter

public void updateFormatter(Map paramMap)


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.