|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xpn.xwiki.plugin.watchlist.WatchListNotifier
public class WatchListNotifier
Utility class used by the watchlist plugin to send notifications to users. The current implementation offers email notifications only.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_EMAIL_TEMPLATE
Wiki page which contains the default watchlist email template. |
static java.lang.String |
XWIKI_USER_CLASS
XWiki User Class. |
static java.lang.String |
XWIKI_USER_CLASS_FIRST_NAME_PROP
XWiki User Class first name property name. |
static java.lang.String |
XWIKI_USER_CLASS_LAST_NAME_PROP
XWiki User Class last name property name. |
| Constructor Summary | |
|---|---|
WatchListNotifier()
|
|
| Method Summary | |
|---|---|
void |
sendEmailNotification(java.lang.String subscriber,
java.util.List<WatchListEvent> events,
java.lang.String emailTemplate,
java.util.Date previousFireTime,
com.xpn.xwiki.XWikiContext context)
Sends the email notifying the subscriber that the updatedDocuments have been changed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_EMAIL_TEMPLATE
public static final java.lang.String XWIKI_USER_CLASS
public static final java.lang.String XWIKI_USER_CLASS_FIRST_NAME_PROP
public static final java.lang.String XWIKI_USER_CLASS_LAST_NAME_PROP
| Constructor Detail |
|---|
public WatchListNotifier()
| Method Detail |
|---|
public void sendEmailNotification(java.lang.String subscriber,
java.util.List<WatchListEvent> events,
java.lang.String emailTemplate,
java.util.Date previousFireTime,
com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
subscriber - user to notifyevents - list of eventsemailTemplate - email template to usepreviousFireTime - last time the notification was firedcontext - the XWiki context
com.xpn.xwiki.XWikiException - if mail sending fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||