org.jasig.portlet.widget.service
Class AbstractCachingAlertService

java.lang.Object
  extended by org.jasig.portlet.widget.service.AbstractCachingAlertService
All Implemented Interfaces:
IAlertService
Direct Known Subclasses:
AbstractXmlAlertService, RomeAlertService

public abstract class AbstractCachingAlertService
extends Object
implements IAlertService


Field Summary
static String ENABLED_BY_DEFAULT_PREFERENCE
           
static String MAX_ITEMS_PREFERENCE
           
 
Constructor Summary
AbstractCachingAlertService()
           
 
Method Summary
 List<IAlert> fetch(javax.portlet.PortletRequest req)
          Return the current alerts, if any.
protected abstract  List<IAlert> getFeedFromSource(javax.portlet.PortletRequest req)
           
 Boolean isEnabled()
          Important -- may be null.
 void setCacheTimeout(long cacheTimeout)
           
 void setEnabled(Boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENABLED_BY_DEFAULT_PREFERENCE

public static final String ENABLED_BY_DEFAULT_PREFERENCE
See Also:
Constant Field Values

MAX_ITEMS_PREFERENCE

public static final String MAX_ITEMS_PREFERENCE
See Also:
Constant Field Values
Constructor Detail

AbstractCachingAlertService

public AbstractCachingAlertService()
Method Detail

isEnabled

public final Boolean isEnabled()
Important -- may be null.

Specified by:
isEnabled in interface IAlertService
Returns:
true, false, or null (unspecified)

setEnabled

public final void setEnabled(Boolean b)
Specified by:
setEnabled in interface IAlertService

setCacheTimeout

public final void setCacheTimeout(long cacheTimeout)

fetch

public final List<IAlert> fetch(javax.portlet.PortletRequest req)
Return the current alerts, if any.

Specified by:
fetch in interface IAlertService
Returns:

getFeedFromSource

protected abstract List<IAlert> getFeedFromSource(javax.portlet.PortletRequest req)


Copyright © 2012 Jasig. All Rights Reserved.