public class DemoNotificationService extends ClassLoaderResourceNotificationService
setActive(boolean) method (default is true) for
toggling it on and off at runtime.usernameFinder| Constructor and Description |
|---|
DemoNotificationService() |
| Modifier and Type | Method and Description |
|---|---|
org.jasig.portlet.notice.NotificationResponse |
fetch(javax.servlet.http.HttpServletRequest req)
Returns an empty collection and logs the event.
|
org.jasig.portlet.notice.NotificationResponse |
fetch(javax.portlet.PortletRequest req)
Provide the current collection of Notifications information for the user
represented by the
PortletRequest. |
protected java.util.List<java.lang.String> |
getLocations(javax.servlet.http.HttpServletRequest req)
Access to the list of locations is wrapped in a method so that subclasses can override it.
|
protected java.util.ArrayList<java.lang.String> |
getLocations(javax.portlet.PortletRequest req) |
void |
init() |
boolean |
isActive() |
void |
setActive(boolean active) |
isValid, setCachecollect, createServiceUserWindowSpecificCacheKey, getName, invoke, prepareErrorResponse, setName@PostConstruct public void init()
init in class ClassLoaderResourceNotificationServicepublic void setActive(boolean active)
public boolean isActive()
public org.jasig.portlet.notice.NotificationResponse fetch(javax.portlet.PortletRequest req)
INotificationServicePortletRequest.fetch in interface INotificationServicefetch in class ClassLoaderResourceNotificationServicereq - The PortletRequestpublic org.jasig.portlet.notice.NotificationResponse fetch(javax.servlet.http.HttpServletRequest req)
AbstractNotificationServiceINotificationService should override this method. The log entries this method
produces are an indication that the service subclass is not ready for the post-Portlet API
world.fetch in interface INotificationServicefetch in class ClassLoaderResourceNotificationServicereq - The REST requestprotected java.util.List<java.lang.String> getLocations(javax.servlet.http.HttpServletRequest req)
ClassLoaderResourceNotificationServicegetLocations in class ClassLoaderResourceNotificationServiceprotected java.util.ArrayList<java.lang.String> getLocations(javax.portlet.PortletRequest req)
getLocations in class ClassLoaderResourceNotificationService