com.jalios.jcms
Class NotificationQuery

java.lang.Object
  extended by com.jalios.jcms.NotificationQuery

public class NotificationQuery
extends Object

This class retrieves all the publication created, updated or modified for a specified notification period.

It provides two methods to retrieve the publication corresponding to one or several members' notification criteria :


Field Summary
static String REVISION
           
 
Constructor Summary
NotificationQuery(int period)
          Create a new NotificationQuery for the specified period and immediately retrieve the visible publications created, updated or modified during this period.
 
Method Summary
 Set<Publication> getMemberPublicationSet(Member mbr)
          This methods finds publications matching notification criterias of query period for the specified member.
 Map<Member,Set<? extends Publication>> getMemberToPublicationSetMap(Set<Member> memberSet)
          This methods finds for each members to be notified the publications matching notification criterias of given period.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

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

NotificationQuery

public NotificationQuery(int period)
Create a new NotificationQuery for the specified period and immediately retrieve the visible publications created, updated or modified during this period.

Parameters:
period - the period as returned by NotificationManager.getAvailablePeriods()
Method Detail

getMemberToPublicationSetMap

public Map<Member,Set<? extends Publication>> getMemberToPublicationSetMap(Set<Member> memberSet)
This methods finds for each members to be notified the publications matching notification criterias of given period.

Parameters:
memberSet - The Set of Member for which to retrieve the Publication
Returns:
a Map with Member as the key and the Set of Publication to notify as the value. never return null.

getMemberPublicationSet

public Set<Publication> getMemberPublicationSet(Member mbr)
This methods finds publications matching notification criterias of query period for the specified member.

Parameters:
mbr - the member for which publicaiton are being retrieved
Returns:
a Set of Publication (sorted by mdate), never return null.


Copyright © 2001-2010 Jalios SA. All Rights Reserved.