|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.yale.its.tp.portlets.calendar.adapter.CalDavCalendarAdapter
public class CalDavCalendarAdapter
Implementation of ICalendarAdapter that uses CalDAV
for retrieving CalendarEvents.
| Constructor Summary | |
|---|---|
CalDavCalendarAdapter()
|
|
| Method Summary | |
|---|---|
protected java.util.Set<CalendarEvent> |
convertCalendarToEvents(java.lang.Long calendarId,
net.fortuna.ical4j.model.Calendar calendar,
net.fortuna.ical4j.model.Period period)
|
java.util.Set<CalendarEvent> |
getEvents(CalendarConfiguration calendarConfiguration,
net.fortuna.ical4j.model.Period period,
javax.servlet.http.HttpServletRequest request)
Get events for the defined calendar and time period. |
java.util.Set<CalendarEvent> |
getEvents(CalendarConfiguration calendarConfiguration,
net.fortuna.ical4j.model.Period period,
javax.portlet.PortletRequest request)
Get events for the defined calendar and time period. |
java.lang.String |
getLink(CalendarConfiguration calendar,
net.fortuna.ical4j.model.Period period,
javax.portlet.PortletRequest request)
Get hyper link for the defined calendar. |
protected java.util.List<net.fortuna.ical4j.model.Calendar> |
retrieveCalendars(java.lang.String url,
net.fortuna.ical4j.model.Period period,
org.apache.commons.httpclient.Credentials credentials)
|
void |
setCache(net.sf.ehcache.Cache cache)
|
void |
setCacheKeyGenerator(ICacheKeyGenerator cacheKeyGenerator)
|
void |
setCacheKeyPrefix(java.lang.String cacheKeyPrefix)
|
void |
setCredentialsExtractor(ICredentialsExtractor credentialsExtractor)
|
void |
setUrlCreator(IUrlCreator urlCreator)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CalDavCalendarAdapter()
| Method Detail |
|---|
public void setCache(net.sf.ehcache.Cache cache)
public void setUrlCreator(IUrlCreator urlCreator)
public void setCredentialsExtractor(ICredentialsExtractor credentialsExtractor)
public void setCacheKeyGenerator(ICacheKeyGenerator cacheKeyGenerator)
public void setCacheKeyPrefix(java.lang.String cacheKeyPrefix)
public java.util.Set<CalendarEvent> getEvents(CalendarConfiguration calendarConfiguration,
net.fortuna.ical4j.model.Period period,
javax.portlet.PortletRequest request)
throws CalendarException
ICalendarAdapter
getEvents in interface ICalendarAdaptercalendarConfiguration - calendar configuration for which to retrieve eventsperiod - time period for which to retrieve eventsrequest - user's portlet request
CalendarException
public java.util.Set<CalendarEvent> getEvents(CalendarConfiguration calendarConfiguration,
net.fortuna.ical4j.model.Period period,
javax.servlet.http.HttpServletRequest request)
throws CalendarException
ICalendarAdapter
getEvents in interface ICalendarAdaptercalendarConfiguration - calendar configuration for which to retrieve eventsperiod - time period for which to retrieve eventsrequest - user's servlet request
CalendarException
public java.lang.String getLink(CalendarConfiguration calendar,
net.fortuna.ical4j.model.Period period,
javax.portlet.PortletRequest request)
throws CalendarLinkException
ICalendarAdapter
getLink in interface ICalendarAdaptercalendar - calendar configuration for which to retrieve eventsperiod - time period for which to retrieve eventsrequest - user's servlet request
CalendarLinkException
protected final java.util.List<net.fortuna.ical4j.model.Calendar> retrieveCalendars(java.lang.String url,
net.fortuna.ical4j.model.Period period,
org.apache.commons.httpclient.Credentials credentials)
protected final java.util.Set<CalendarEvent> convertCalendarToEvents(java.lang.Long calendarId,
net.fortuna.ical4j.model.Calendar calendar,
net.fortuna.ical4j.model.Period period)
throws CalendarException
CalendarException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||