org.jasig.portlet.calendar.adapter
Interface ICalendarAdapter

All Known Implementing Classes:
CalDavCalendarAdapter, ConfigurableFileCalendarAdapter, ConfigurableHttpCalendarAdapter, ExchangeCalendarAdapter

public interface ICalendarAdapter

ICalendarAdapter defines an interface for retrieving calendar event data. All new calendar types must define an adapter using this interface, then be registered in the spring context files.

Author:
Jen Bourey

Method Summary
 CalendarEventSet getEvents(CalendarConfiguration calendar, net.fortuna.ical4j.model.Period period, javax.portlet.PortletRequest request)
          Get events for the defined calendar and time period.
 String getLink(CalendarConfiguration calendar, net.fortuna.ical4j.model.Period period, javax.portlet.PortletRequest request)
          Get hyper link for the defined calendar.
 

Method Detail

getEvents

CalendarEventSet getEvents(CalendarConfiguration calendar,
                           net.fortuna.ical4j.model.Period period,
                           javax.portlet.PortletRequest request)
                           throws CalendarException
Get events for the defined calendar and time period. The user's PortletRequest is made available to give the calendar adapter access to useful information such as the UserInfo map, session data, etc. These items can be used to identify the user, provide access to authentication resources, or other useful operations.

Parameters:
calendar - calendar configuration for which to retrieve events
period - time period for which to retrieve events
request - user's portlet request
Returns:
Set of events for this calendar and time period
Throws:
CalendarException

getLink

String getLink(CalendarConfiguration calendar,
               net.fortuna.ical4j.model.Period period,
               javax.portlet.PortletRequest request)
               throws CalendarLinkException
Get hyper link for the defined calendar. In cases where the calendar resource has a web interface, this method allows provides access to the url.

Parameters:
calendar - calendar configuration for which to retrieve events
period - time period for which to retrieve events
request - user's servlet request
Returns:
Set of events for this calendar and time period
Throws:
CalendarException
CalendarLinkException


Copyright © 2011 Jasig. All Rights Reserved.