public abstract class AbstractNotificationService extends 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 String |
createServiceUserWindowSpecificCacheKey(javax.portlet.PortletRequest req) |
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.ResourceRequest req,
NotificationResponse previousResponse)
Returns
true. |
protected NotificationResponse |
prepareErrorResponse(String source,
String message) |
void |
setName(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfetch@Autowired protected UsernameFinder usernameFinder
public String getName()
INotificationServicegetName in interface INotificationServicepublic void setName(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.ResourceRequest req,
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 presentprotected final String createServiceUserWindowSpecificCacheKey(javax.portlet.PortletRequest req)
protected final NotificationResponse prepareErrorResponse(String source, String message)
Copyright © 2013 Jasig. All Rights Reserved.