public interface INotificationService
| Modifier and Type | Method and Description |
|---|---|
void |
collect(javax.portlet.EventRequest req,
javax.portlet.EventResponse res)
Deprecated.
Prefer interactions that are not based on the Portlet API
|
org.jasig.portlet.notice.NotificationResponse |
fetch(javax.servlet.http.HttpServletRequest request)
Provide the current collection of Notifications information for the specified user.
|
org.jasig.portlet.notice.NotificationResponse |
fetch(javax.portlet.PortletRequest req)
Deprecated.
Prefer interactions that are not based on the Portlet API
|
java.lang.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)
Deprecated.
Prefer interactions that are not based on the Portlet API
|
boolean |
isValid(javax.portlet.PortletRequest req,
org.jasig.portlet.notice.NotificationResponse previousResponse)
Deprecated.
Prefer interactions that are not based on the Portlet API
|
java.lang.String getName()
@Deprecated
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 data@Deprecated
void 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 EventResponse@Deprecated org.jasig.portlet.notice.NotificationResponse fetch(javax.portlet.PortletRequest req)
PortletRequest.req - The PortletRequest@Deprecated
boolean isValid(javax.portlet.PortletRequest req,
org.jasig.portlet.notice.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 presentorg.jasig.portlet.notice.NotificationResponse fetch(javax.servlet.http.HttpServletRequest request)
request - The REST request