org.jasig.portlet.calendar.adapter
Class CalendarEventsDao
java.lang.Object
org.jasig.portlet.calendar.adapter.CalendarEventsDao
public class CalendarEventsDao
- extends Object
- Version:
- $Revision$
- Author:
- Jen Bourey, jennifer.bourey@gmail.com
|
Field Summary |
protected org.apache.commons.logging.Log |
log
|
|
Method Summary |
net.fortuna.ical4j.model.Calendar |
getCalendar(ICalendarAdapter adapter,
CalendarConfiguration calendarConfig,
org.joda.time.Interval interval,
javax.portlet.PortletRequest request)
|
protected org.joda.time.format.DateTimeFormatter |
getDateFormatter(org.joda.time.DateTimeZone timezone)
|
protected Set<CalendarDisplayEvent> |
getDisplayEvents(net.fortuna.ical4j.model.component.VEvent e,
org.joda.time.Interval interval,
org.joda.time.DateTimeZone timezone)
Get a JSON-appropriate representation of each recurrence of an event
within the specified time period. |
Set<CalendarDisplayEvent> |
getEvents(ICalendarAdapter adapter,
CalendarConfiguration calendar,
org.joda.time.Interval interval,
javax.portlet.PortletRequest request,
org.joda.time.DateTimeZone tz)
Obtains the calendar events from the adapter and returns timezone-adjusted
events within the requested interval. |
protected org.joda.time.format.DateTimeFormatter |
getTimeFormatter(org.joda.time.DateTimeZone timezone)
|
void |
setCache(net.sf.ehcache.Cache cache)
|
| 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
CalendarEventsDao
public CalendarEventsDao()
setCache
public void setCache(net.sf.ehcache.Cache cache)
- Parameters:
cache - the cache to set
getCalendar
public net.fortuna.ical4j.model.Calendar getCalendar(ICalendarAdapter adapter,
CalendarConfiguration calendarConfig,
org.joda.time.Interval interval,
javax.portlet.PortletRequest request)
getEvents
public Set<CalendarDisplayEvent> getEvents(ICalendarAdapter adapter,
CalendarConfiguration calendar,
org.joda.time.Interval interval,
javax.portlet.PortletRequest request,
org.joda.time.DateTimeZone tz)
- Obtains the calendar events from the adapter and returns timezone-adjusted
events within the requested interval.
- Parameters:
adapter - Adapter to invoke to obtain the calendar eventscalendar - Per-user Calendar configurationinterval - Interval to return events forrequest - Portlet requesttz - Timezone to adjust the calendar events to (typically the user's timezone)
- Returns:
- Set of calendar events meeting the requested criteria
getDisplayEvents
protected Set<CalendarDisplayEvent> getDisplayEvents(net.fortuna.ical4j.model.component.VEvent e,
org.joda.time.Interval interval,
org.joda.time.DateTimeZone timezone)
throws IOException,
URISyntaxException,
ParseException
- Get a JSON-appropriate representation of each recurrence of an event
within the specified time period.
- Parameters:
e - interval - timezone -
- Returns:
-
- Throws:
IOException
URISyntaxException
ParseException
getDateFormatter
protected org.joda.time.format.DateTimeFormatter getDateFormatter(org.joda.time.DateTimeZone timezone)
getTimeFormatter
protected org.joda.time.format.DateTimeFormatter getTimeFormatter(org.joda.time.DateTimeZone timezone)
Copyright © 2012 Jasig. All Rights Reserved.