public class CoursesCalendarAdapter extends AbstractCalendarAdapter implements ICalendarAdapter
ICalendarAdapter that creates
a single calendar in a CalendarEventSet using data
from a user's courses for the term.
The implementation expects that a term has a start and end date specified.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
CoursesCalendarAdapter() |
| Modifier and Type | Method and Description |
|---|---|
CalendarEventSet |
getEvents(CalendarConfiguration calendarConfiguration,
org.joda.time.Interval interval,
javax.portlet.PortletRequest request)
Get events for the defined calendar and time period.
|
protected net.fortuna.ical4j.model.Calendar |
retrieveCourseCalendar(javax.portlet.PortletRequest request,
org.joda.time.Interval interval,
CalendarConfiguration calendarConfiguration,
org.jasig.portlet.courses.model.xml.Term term)
Return the full set of events (class schedule) for all the user's courses
for the indicated term.
|
void |
setCache(net.sf.ehcache.Cache cache) |
void |
setCacheKeyGenerator(ICacheKeyGenerator cacheKeyGenerator) |
void |
setCacheKeyPrefix(String cacheKeyPrefix) |
void |
setContentProcessor(IContentProcessor contentProcessor) |
void |
setCourseDao(org.jasig.portlet.courses.dao.ICoursesDao courseDao) |
getDescriptionKey, getLink, getParameters, getTitleKey, insertCalendarEventSetIntoCache, insertCalendarEventSetIntoCache, setDescriptionKey, setParameters, setTitleKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescriptionKey, getLink, getParameters, getTitleKeypublic void setCache(net.sf.ehcache.Cache cache)
public void setCourseDao(org.jasig.portlet.courses.dao.ICoursesDao courseDao)
public void setCacheKeyGenerator(ICacheKeyGenerator cacheKeyGenerator)
public void setCacheKeyPrefix(String cacheKeyPrefix)
public void setContentProcessor(IContentProcessor contentProcessor)
public CalendarEventSet getEvents(CalendarConfiguration calendarConfiguration, org.joda.time.Interval interval, javax.portlet.PortletRequest request) throws CalendarException
ICalendarAdaptergetEvents in interface ICalendarAdaptercalendarConfiguration - calendar configuration for which to retrieve eventsinterval - time period for which to retrieve eventsrequest - user's portlet requestCalendarExceptionprotected final net.fortuna.ical4j.model.Calendar retrieveCourseCalendar(javax.portlet.PortletRequest request,
org.joda.time.Interval interval,
CalendarConfiguration calendarConfiguration,
org.jasig.portlet.courses.model.xml.Term term)
request - portlet requestinterval - requested intervalcalendarConfiguration - calendar configterm - term to get class schedule forCopyright © 2016 Apereo. All Rights Reserved.