org.jasig.portlet.notice.service
Class AbstractNotificationService
java.lang.Object
org.jasig.portlet.notice.service.AbstractNotificationService
- All Implemented Interfaces:
- INotificationService
- Direct Known Subclasses:
- DemoNotificationService
public abstract class AbstractNotificationService
- extends Object
- implements INotificationService
|
Method Summary |
NotificationResponse |
getNotifications(String notificationsContextName,
String remoteUser,
javax.portlet.PortletRequest req)
Most implementations need do nothing special with this method. |
void |
refreshNotifications(String notificationsContextName,
String remoteUser)
After calling this method, the next call to getNotifications will cause
the notifications to be fetched from their source(s), not from cache. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractNotificationService
public AbstractNotificationService()
getNotifications
public final NotificationResponse getNotifications(String notificationsContextName,
String remoteUser,
javax.portlet.PortletRequest req)
throws NotificationServiceException
- Description copied from interface:
INotificationService
- Most implementations need do nothing special with this method. They can
extend AbstractNotificationService. Special service impls (such as
caching) may want to override it.
- Specified by:
getNotifications in interface INotificationService
- Parameters:
notificationsContextName - Configured in the -portlet.xml Spring fileremoteUser - From req.getRemoteUserreq - The PortletRequest
- Returns:
- NotificationResponse
- Throws:
NotificationServiceException
refreshNotifications
public void refreshNotifications(String notificationsContextName,
String remoteUser)
- Description copied from interface:
INotificationService
- After calling this method, the next call to getNotifications will cause
the notifications to be fetched from their source(s), not from cache.
- Specified by:
refreshNotifications in interface INotificationService
Copyright © 2012 Jasig. All Rights Reserved.