org.ceryle.wiki.plugin.emailnotifier
Class Subscriber

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

public class Subscriber
extends Object

Represents an individual person who is interested in being notified of changes.

Author:
Murray Altheim, John Volkar (john.volkar at gmail.com), StevenPozarycki

Method Summary
 String getEmailAddress()
          Simple getter so outsiders can get what address to send to.
static Subscriber parse(String candidateLine)
          Attempt to parse the candidateLine into a Subscription.
 boolean shouldSendAt(Date scheduledDate)
           
 boolean subscribesTo(String pageName)
          Subscribes to a page if his list is empty (wants everything) or if the list contains the pageName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static Subscriber parse(String candidateLine)
Attempt to parse the candidateLine into a Subscription. If line does not look like subscription information null is returned.

Parameters:
candidateLine -
Returns:
May be null if candidateLine did not represent a subscription.

getEmailAddress

public String getEmailAddress()
Simple getter so outsiders can get what address to send to.


subscribesTo

public boolean subscribesTo(String pageName)
Subscribes to a page if his list is empty (wants everything) or if the list contains the pageName.


shouldSendAt

public boolean shouldSendAt(Date scheduledDate)


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