public class ReadNotificationServiceDecorator extends AbstractNotificationServiceDecorator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_READ_BEHAVIOR
Deprecated.
|
static java.lang.String |
READ_ATTRIBUTE_NAME
Deprecated.
|
static java.lang.String |
READ_ENABLED_PREFERENCE
Deprecated.
|
| Constructor and Description |
|---|
ReadNotificationServiceDecorator()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collect(javax.portlet.EventRequest req,
javax.portlet.EventResponse res)
Deprecated.
This method allows
INotificationService implementations that
receive portlet events to collect notifications from other portlets in
the portal. |
org.jasig.portlet.notice.NotificationResponse |
fetch(javax.portlet.PortletRequest req)
Deprecated.
Provide the current collection of Notifications information for the user
represented by the
PortletRequest. |
java.lang.String |
getName()
Deprecated.
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.
This method 'primes the pump' for
INotificationService
implementations. |
boolean |
isValid(javax.portlet.PortletRequest req,
org.jasig.portlet.notice.NotificationResponse previousResponse)
Deprecated.
Indicates whether a previous (presumably cached)
NotificationResponse
is still valid. |
void |
setEnclosedNotificationService(INotificationService enclosedNotificationService)
Deprecated.
|
fetchpublic static final java.lang.String READ_ENABLED_PREFERENCE
public static final java.lang.String DEFAULT_READ_BEHAVIOR
public static final java.lang.String READ_ATTRIBUTE_NAME
public ReadNotificationServiceDecorator()
public void setEnclosedNotificationService(INotificationService enclosedNotificationService)
public java.lang.String getName()
INotificationServicepublic void invoke(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res,
boolean refresh)
INotificationServiceINotificationService
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 datapublic void collect(javax.portlet.EventRequest req,
javax.portlet.EventResponse res)
INotificationServiceINotificationService 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 EventResponsepublic org.jasig.portlet.notice.NotificationResponse fetch(javax.portlet.PortletRequest req)
INotificationServicePortletRequest.req - The PortletRequestpublic boolean isValid(javax.portlet.PortletRequest req,
org.jasig.portlet.notice.NotificationResponse previousResponse)
INotificationServiceNotificationResponse
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 present