org.jasig.portlet.dining.dao
Class AbstractXmlBasedDiningMenuDaoImpl

java.lang.Object
  extended by org.jasig.portlet.dining.dao.AbstractXmlBasedDiningMenuDaoImpl
All Implemented Interfaces:
IDiningMenuDao

public abstract class AbstractXmlBasedDiningMenuDaoImpl
extends Object
implements IDiningMenuDao


Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
AbstractXmlBasedDiningMenuDaoImpl()
           
 
Method Summary
 List<String> getDiningHalls(javax.portlet.PortletRequest request)
          Get the list of dining halls for a given portlet request.
 DiningHall getMenu(javax.portlet.PortletRequest request, String diningHall)
          Get the menu for the specified dining hall.
protected  DiningHall getMenu(String xml)
          Deserialize a menu from the provided XML.
protected abstract  String getXmlMenu(javax.portlet.PortletRequest request, String diningHall)
           
 void setCache(net.sf.ehcache.Cache cache)
           
 void setDiningHalls(List<String> diningHalls)
          Set the list of dining hall names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

AbstractXmlBasedDiningMenuDaoImpl

public AbstractXmlBasedDiningMenuDaoImpl()
Method Detail

setCache

public void setCache(net.sf.ehcache.Cache cache)

setDiningHalls

public void setDiningHalls(List<String> diningHalls)
Set the list of dining hall names.

Parameters:
diningHalls -

getDiningHalls

public List<String> getDiningHalls(javax.portlet.PortletRequest request)
Description copied from interface: IDiningMenuDao
Get the list of dining halls for a given portlet request.

Specified by:
getDiningHalls in interface IDiningMenuDao
Returns:

getMenu

public DiningHall getMenu(javax.portlet.PortletRequest request,
                          String diningHall)
Description copied from interface: IDiningMenuDao
Get the menu for the specified dining hall.

Specified by:
getMenu in interface IDiningMenuDao
Returns:

getXmlMenu

protected abstract String getXmlMenu(javax.portlet.PortletRequest request,
                                     String diningHall)

getMenu

protected DiningHall getMenu(String xml)
Deserialize a menu from the provided XML.

Parameters:
xml -
Returns:
Throws:
JAXBException


Copyright © 2011 Jasig. All Rights Reserved.