public final class CachingCoursesDao extends Object implements ICoursesDao, org.springframework.beans.factory.BeanNameAware
ICacheableCoursesDao and presents it as a ICoursesDao adding caching| Constructor and Description |
|---|
CachingCoursesDao() |
| Modifier and Type | Method and Description |
|---|---|
CoursesByTerm |
getCoursesByTerm(javax.portlet.PortletRequest request,
String termCode)
Get courses for a term for the current user
|
protected org.jasig.portlet.courses.dao.CachingCoursesDao.CacheKey |
getScopedKey(Serializable key) |
TermList |
getTermList(javax.portlet.PortletRequest request)
Get a term list for the current user
|
void |
setBeanName(String name) |
void |
setCoursesByTermCache(net.sf.ehcache.Ehcache coursesByTermCache) |
void |
setEnclosedCoursesDao(ICacheableCoursesDao<Serializable,Serializable> coursesDao) |
void |
setScopeKeysToDao(boolean scopeKeysToDao) |
void |
setTermListCache(net.sf.ehcache.Ehcache termListCache) |
public void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setEnclosedCoursesDao(ICacheableCoursesDao<Serializable,Serializable> coursesDao)
coursesDao - The dao to add caching topublic void setScopeKeysToDao(boolean scopeKeysToDao)
scopeKeysToDao - If generated cache key should be scoped to this caching dao instance, defaults to true.public void setTermListCache(net.sf.ehcache.Ehcache termListCache)
termListCache - The cache to use for term listspublic void setCoursesByTermCache(net.sf.ehcache.Ehcache coursesByTermCache)
coursesByTermCache - The cache to use for courses by termpublic TermList getTermList(javax.portlet.PortletRequest request)
ICoursesDaogetTermList in interface ICoursesDaopublic CoursesByTerm getCoursesByTerm(javax.portlet.PortletRequest request, String termCode)
ICoursesDaogetCoursesByTerm in interface ICoursesDaoprotected org.jasig.portlet.courses.dao.CachingCoursesDao.CacheKey getScopedKey(Serializable key)
Copyright © 2013 Jasig. All Rights Reserved.