public class CalDavCalendarAdapter extends AbstractCalendarAdapter implements ICalendarAdapter
ICalendarAdapter that uses CalDAV for retrieving ical-based CalendarEventSets.
URL format varies per provider (see links above). For Google an URL would be https://www.google.com/calendar/dav/CALENDERID/events where CALENDARID is obtained from the properties of the calendars, such as jameswennmacher@gmail.com for a user's personal calendar, or en.usa%23holiday%40group.v.calendar.google.com for the US Holidays calendar. Google uses Basic Authentication (or oAuth 2.0 though this is not implemented yet).
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
CalDavCalendarAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected Set<net.fortuna.ical4j.model.component.VEvent> |
convertCalendarToEvents(net.fortuna.ical4j.model.Calendar calendar,
org.joda.time.Interval interval) |
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 |
retrieveCalendar(String url,
org.joda.time.Interval interval,
org.apache.commons.httpclient.Credentials credentials) |
void |
setCache(net.sf.ehcache.Cache cache) |
void |
setCacheKeyGenerator(ICacheKeyGenerator cacheKeyGenerator) |
void |
setCacheKeyPrefix(String cacheKeyPrefix) |
void |
setCredentialsExtractor(ICredentialsExtractor credentialsExtractor) |
void |
setUrlCreator(IUrlCreator urlCreator) |
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 setUrlCreator(IUrlCreator urlCreator)
public void setCredentialsExtractor(ICredentialsExtractor credentialsExtractor)
public void setCacheKeyGenerator(ICacheKeyGenerator cacheKeyGenerator)
public void setCacheKeyPrefix(String cacheKeyPrefix)
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 retrieveCalendar(String url, org.joda.time.Interval interval, org.apache.commons.httpclient.Credentials credentials)
protected final Set<net.fortuna.ical4j.model.component.VEvent> convertCalendarToEvents(net.fortuna.ical4j.model.Calendar calendar, org.joda.time.Interval interval) throws CalendarException
CalendarExceptionCopyright © 2019 Apereo. All rights reserved.