Package com.jalios.jcms
Class NotificationQuery
java.lang.Object
com.jalios.jcms.NotificationQuery
This class retrieves all the publication published, updated or modified
for a specified notification period.
It provides two methods to retrieve the publication corresponding to one or several members' notification criteria :
-
Constructor Summary
ConstructorsModifierConstructorDescriptionNotificationQuery(int period) Create a new NotificationQuery for the specified period.protectedNotificationQuery(int period, Date executionDate) Create a new NotificationQuery for the specified period, indicating the time at which it is being run (for simulation/unittest purpose). -
Method Summary
Modifier and TypeMethodDescriptionThis methods finds publications matching notification criterias of query period for the specified member.Map<Member, Set<? extends Publication>> getMemberToPublicationSetMap(Set<Member> memberSet) Deprecated.
-
Constructor Details
-
NotificationQuery
public NotificationQuery(int period) Create a new NotificationQuery for the specified period.Immediately retrieve the visible publications published, updated or modified during this period.
- Parameters:
period- the period as returned byNotificationManager.getAvailablePeriods()
-
NotificationQuery
Create a new NotificationQuery for the specified period, indicating the time at which it is being run (for simulation/unittest purpose).- Parameters:
period- the period as returned byNotificationManager.getAvailablePeriods()executionDate- the Date at which this NotificationQuery is being executed to retrieve the result from the period right before, must not be null- Since:
- 10.0.8 / JCMS-10487
-
-
Method Details
-
getMemberToPublicationSetMap
@Deprecated public Map<Member,Set<? extends Publication>> getMemberToPublicationSetMap(Set<Member> memberSet) Deprecated.since JCMS-10131, usegetMemberPublicationSet(Member)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
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.
-
getMemberPublicationSet(Member)