org.jasig.portlet.calendar.adapter
Class CalendarEventsDao

java.lang.Object
  extended by 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
           
 
Constructor Summary
CalendarEventsDao()
           
 
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 usersConfiguredDateTimeZone)
          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 usersConfiguredDateTimeZone)
          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
 

Field Detail

log

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

CalendarEventsDao

public CalendarEventsDao()
Method Detail

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 usersConfiguredDateTimeZone)
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 events
calendar - Per-user Calendar configuration
interval - Interval to return events for
request - Portlet request
usersConfiguredDateTimeZone - 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 usersConfiguredDateTimeZone)
                                              throws IOException,
                                                     URISyntaxException,
                                                     ParseException
Get a JSON-appropriate representation of each recurrence of an event within the specified time period.

Parameters:
e -
interval -
usersConfiguredDateTimeZone -
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 © 2013 Jasig. All Rights Reserved.