com.xpn.xwiki.plugin.watchlist
Class WatchListEventManager
java.lang.Object
com.xpn.xwiki.plugin.watchlist.WatchListEventManager
public class WatchListEventManager
- extends java.lang.Object
Manager for WatchList events. This class allow to store all the events fired during a given interval. It also allows
to perform a match between events and elements watched by a user.
- Version:
- $Id: WatchListEventManager.java 22905 2009-08-25 14:17:34Z jvdrean $
|
Constructor Summary |
WatchListEventManager(java.util.Date start,
com.xpn.xwiki.XWikiContext context)
Constructor. |
|
Method Summary |
int |
getEventNumber()
|
java.util.List<WatchListEvent> |
getMatchingEvents(java.util.List<java.lang.String> wikis,
java.util.List<java.lang.String> spaces,
java.util.List<java.lang.String> documents,
java.lang.String userName,
com.xpn.xwiki.XWikiContext context)
Get the events matching criteria. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WatchListEventManager
public WatchListEventManager(java.util.Date start,
com.xpn.xwiki.XWikiContext context)
- Constructor. Gets all the events fired during the interval between the given date and the current date.
- Parameters:
context - the XWiki contextstart - start date to use for document matching
getEventNumber
public int getEventNumber()
- Returns:
- the number of events the matcher will work with.
getMatchingEvents
public java.util.List<WatchListEvent> getMatchingEvents(java.util.List<java.lang.String> wikis,
java.util.List<java.lang.String> spaces,
java.util.List<java.lang.String> documents,
java.lang.String userName,
com.xpn.xwiki.XWikiContext context)
- Get the events matching criteria.
- Parameters:
wikis - a list of wikis from which events should matchspaces - a list of spaces from which events should matchdocuments - a list of documents from which events should matchuserName - notification recipientcontext - the XWiki context
- Returns:
- the list of events matching the given scopes
Copyright © 2004-2009 XWiki. All Rights Reserved.