org.jasig.portlet.notice.service
Class AbstractNotificationService

java.lang.Object
  extended by org.jasig.portlet.notice.service.AbstractNotificationService
All Implemented Interfaces:
INotificationService
Direct Known Subclasses:
DemoNotificationService

public abstract class AbstractNotificationService
extends Object
implements INotificationService


Constructor Summary
AbstractNotificationService()
           
 
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
 
Methods inherited from interface org.jasig.portlet.notice.service.INotificationService
fetchNotificationsFromSource, getName
 

Constructor Detail

AbstractNotificationService

public AbstractNotificationService()
Method Detail

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 file
remoteUser - From req.getRemoteUser
req - 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.