com.xpn.xwiki.plugin.watchlist
Class WatchListEventManager

java.lang.Object
  extended by 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
 

Constructor Detail

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 context
start - start date to use for document matching
Method Detail

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 match
spaces - a list of spaces from which events should match
documents - a list of documents from which events should match
userName - notification recipient
context - the XWiki context
Returns:
the list of events matching the given scopes


Copyright © 2004-2009 XWiki. All Rights Reserved.