public abstract class AbstractNotificationService extends java.lang.Object implements INotificationService
| Modifier and Type | Field and Description |
|---|---|
protected UsernameFinder |
usernameFinder |
| Constructor and Description |
|---|
AbstractNotificationService() |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(javax.portlet.EventRequest req,
javax.portlet.EventResponse res)
Subclasses of
AbstractNotificationService that need to perform
some logic within this method should override it. |
protected java.lang.String |
createServiceUserWindowSpecificCacheKey(javax.portlet.PortletRequest req) |
org.jasig.portlet.notice.NotificationResponse |
fetch(javax.servlet.http.HttpServletRequest request)
Returns an empty collection and logs the event.
|
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)
Subclasses of
AbstractNotificationService that need to perform
some logic within this method should override it. |
boolean |
isValid(javax.portlet.PortletRequest req,
org.jasig.portlet.notice.NotificationResponse previousResponse)
Returns
true. |
protected org.jasig.portlet.notice.NotificationResponse |
prepareErrorResponse(java.lang.String source,
java.lang.String message) |
void |
setName(java.lang.String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfetch@Autowired protected UsernameFinder usernameFinder
public java.lang.String getName()
INotificationServicegetName in interface INotificationServicepublic void setName(java.lang.String name)
public void invoke(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res,
boolean refresh)
AbstractNotificationService that need to perform
some logic within this method should override it.invoke in interface INotificationServicereq - 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)
AbstractNotificationService that need to perform
some logic within this method should override it.collect in interface INotificationServicereq - The current EventRequestres - The current EventResponsepublic boolean isValid(javax.portlet.PortletRequest req,
org.jasig.portlet.notice.NotificationResponse previousResponse)
true. Subclasses of AbstractNotificationService
that can better answer this question should override this method.isValid in interface INotificationServicereq - 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)
INotificationService 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 INotificationServicerequest - The REST requestprotected final java.lang.String createServiceUserWindowSpecificCacheKey(javax.portlet.PortletRequest req)
protected final org.jasig.portlet.notice.NotificationResponse prepareErrorResponse(java.lang.String source,
java.lang.String message)