org.jasig.portlet.widget.service.xml
Class AbstractXmlAlertService

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

public abstract class AbstractXmlAlertService
extends Object
implements IAlertService


Field Summary
static String ENABLED_BY_DEFAULT_PREFERENCE
           
 
Constructor Summary
AbstractXmlAlertService()
           
 
Method Summary
 Map<String,String> fetch(javax.portlet.PortletRequest req)
          Return the current alert, if there is one, or null otherwise.
protected abstract  org.dom4j.Document getFeedFromSource(javax.portlet.PortletRequest req)
           
 Boolean isEnabled()
          Important -- may be null.
protected  boolean isFeedExpired()
           
 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
Constructor Detail

AbstractXmlAlertService

public AbstractXmlAlertService()
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 Map<String,String> fetch(javax.portlet.PortletRequest req)
Return the current alert, if there is one, or null otherwise.

Specified by:
fetch in interface IAlertService

getFeedFromSource

protected abstract org.dom4j.Document getFeedFromSource(javax.portlet.PortletRequest req)

isFeedExpired

protected final boolean isFeedExpired()


Copyright © 2011 Jasig. All Rights Reserved.