public interface INotificationService
| Modifier and Type | Method and Description |
|---|---|
void |
collect(javax.portlet.EventRequest req,
javax.portlet.EventResponse res)
This method allows
INotificationService implementations that
receive portlet events to collect notifications from other portlets in
the portal. |
NotificationResponse |
fetch(javax.portlet.ResourceRequest req)
Provide the current collection of Notifications information for the user
represented by the
PortletRequest. |
String |
getName()
Returns the name of the service, which should be unique in the portlet app.
|
void |
invoke(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res,
boolean refresh)
This method 'primes the pump' for
INotificationService
implementations. |
boolean |
isValid(javax.portlet.ResourceRequest req,
NotificationResponse previousResponse)
Indicates whether a previous (presumably cached)
NotificationResponse
is still valid. |
String getName()
void invoke(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res,
boolean refresh)
INotificationService
implementations. Not all concrete services will need this method, and
those that don't can safely make it a no-op. But those that do need it
can rely on receiving a call to invoke() before receiving a
call to fetch().req - The current ActionRequestres - The current ActionResponserefresh - If true, the service should expire any cached datavoid collect(javax.portlet.EventRequest req,
javax.portlet.EventResponse res)
INotificationService implementations that
receive portlet events to collect notifications from other portlets in
the portal. Not all concrete services will need this method, and those
that don't can safely make it a no-op.req - The current EventRequestres - The current EventResponseNotificationResponse fetch(javax.portlet.ResourceRequest req)
PortletRequest.req - The PortletRequestboolean isValid(javax.portlet.ResourceRequest req,
NotificationResponse previousResponse)
NotificationResponse
is still valid. A few service implementations will be able to make this
determination without contacting a remote service or doing anything
computationally expensive. Those that can't should just return
true; they will have the chance to update their responses
when the cached version expires or when the user clicks refresh.req - The current requestpreviousResponse - A response provided by this service at an earlier
pointtrue if the earlier response is still acceptable for
the presentCopyright © 2013 Jasig. All Rights Reserved.