org.jasig.portlet.dining.dao
Class AbstractXmlBasedDiningMenuDaoImpl
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.apache.commons.logging.Log log
AbstractXmlBasedDiningMenuDaoImpl
public AbstractXmlBasedDiningMenuDaoImpl()
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.