public class ClassLoaderResourceNotificationService extends AbstractNotificationService
DemoNotificationService.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOCATIONS_PREFERENCE |
usernameFinder| Constructor and Description |
|---|
ClassLoaderResourceNotificationService() |
| Modifier and Type | Method and Description |
|---|---|
org.jasig.portlet.notice.NotificationResponse |
fetch(javax.servlet.http.HttpServletRequest request)
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.List<java.lang.String> |
getLocations(javax.portlet.PortletRequest req)
Deprecated.
|
void |
init() |
boolean |
isValid(javax.portlet.PortletRequest req,
org.jasig.portlet.notice.NotificationResponse previousResponse)
Returns
true. |
void |
setCache(net.sf.ehcache.Cache cache) |
collect, createServiceUserWindowSpecificCacheKey, getName, invoke, prepareErrorResponse, setNamepublic static final java.lang.String LOCATIONS_PREFERENCE
public ClassLoaderResourceNotificationService()
public void setCache(net.sf.ehcache.Cache cache)
@PostConstruct public void init()
public org.jasig.portlet.notice.NotificationResponse fetch(javax.portlet.PortletRequest req)
INotificationServicePortletRequest.req - The PortletRequestpublic final boolean isValid(javax.portlet.PortletRequest req,
org.jasig.portlet.notice.NotificationResponse previousResponse)
AbstractNotificationServicetrue. Subclasses of AbstractNotificationService
that can better answer this question should override this method.isValid in interface INotificationServiceisValid in class AbstractNotificationServicereq - The current requestpreviousResponse - A response provided by this service at an earlier
pointtrue if the earlier response is still acceptable for
the presentpublic org.jasig.portlet.notice.NotificationResponse fetch(javax.servlet.http.HttpServletRequest request)
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 AbstractNotificationServicerequest - The REST request@Deprecated protected java.util.List<java.lang.String> getLocations(javax.portlet.PortletRequest req)
protected java.util.List<java.lang.String> getLocations(javax.servlet.http.HttpServletRequest req)