org.jasig.portlet.calendar.adapter
Class ConfigurableFileCalendarAdapter
java.lang.Object
org.jasig.portlet.calendar.adapter.ConfigurableFileCalendarAdapter
- All Implemented Interfaces:
- ICalendarAdapter, ISingleEventSupport
public class ConfigurableFileCalendarAdapter
- extends Object
- implements ICalendarAdapter, ISingleEventSupport
|
Field Summary |
protected org.apache.commons.logging.Log |
log
|
|
Method Summary |
CalendarEvent |
getEvent(CalendarConfiguration calendar,
net.fortuna.ical4j.model.Period period,
String uid,
String recurrenceId,
javax.servlet.http.HttpServletRequest request)
|
CalendarEvent |
getEvent(CalendarConfiguration calendar,
net.fortuna.ical4j.model.Period period,
String uid,
String recurrenceId,
javax.portlet.PortletRequest request)
|
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. |
Set<CalendarEvent> |
getEvents(CalendarConfiguration calendarConfiguration,
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. |
protected InputStream |
retrieveCalendar(String fileName)
|
void |
setCache(net.sf.ehcache.Cache cache)
|
void |
setCacheKeyGenerator(ICacheKeyGenerator cacheKeyGenerator)
|
void |
setCacheKeyPrefix(String cacheKeyPrefix)
|
void |
setContentProcessor(IContentProcessor contentProcessor)
|
| 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
ConfigurableFileCalendarAdapter
public ConfigurableFileCalendarAdapter()
getEvents
public Set<CalendarEvent> getEvents(CalendarConfiguration calendarConfiguration,
net.fortuna.ical4j.model.Period period,
javax.portlet.PortletRequest request)
throws CalendarException
- Description copied from interface:
ICalendarAdapter
- 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.
- Specified by:
getEvents in interface ICalendarAdapter
- Parameters:
calendarConfiguration - calendar configuration for which to retrieve eventsperiod - time period for which to retrieve eventsrequest - user's portlet request
- Returns:
- Set of events for this calendar and time period
- Throws:
CalendarException
getEvents
public Set<CalendarEvent> getEvents(CalendarConfiguration calendarConfiguration,
net.fortuna.ical4j.model.Period period,
javax.servlet.http.HttpServletRequest request)
throws CalendarException
- Description copied from interface:
ICalendarAdapter
- Get events for the defined calendar and time period. The user's
HttpServletRequest is made available to give the calendar adapter access
to useful information such as the request parameters, session data, etc.
These items can be used to identify the user, provide access to
authentication resources, or other useful operations.
- Specified by:
getEvents in interface ICalendarAdapter
- Parameters:
calendarConfiguration - calendar configuration for which to retrieve eventsperiod - time period for which to retrieve eventsrequest - user's servlet request
- Returns:
- Set of events for this calendar and time period
- Throws:
CalendarException
getEvent
public CalendarEvent getEvent(CalendarConfiguration calendar,
net.fortuna.ical4j.model.Period period,
String uid,
String recurrenceId,
javax.servlet.http.HttpServletRequest request)
throws CalendarException
- Specified by:
getEvent in interface ISingleEventSupport
- Returns:
-
- Throws:
CalendarException
getEvent
public CalendarEvent getEvent(CalendarConfiguration calendar,
net.fortuna.ical4j.model.Period period,
String uid,
String recurrenceId,
javax.portlet.PortletRequest request)
throws CalendarException
- Specified by:
getEvent in interface ISingleEventSupport
- Returns:
-
- Throws:
CalendarException
retrieveCalendar
protected InputStream retrieveCalendar(String fileName)
throws CalendarException
- Throws:
CalendarException
getLink
public String getLink(CalendarConfiguration calendar,
net.fortuna.ical4j.model.Period period,
javax.portlet.PortletRequest request)
- Description copied from interface:
ICalendarAdapter
- 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.
- Specified by:
getLink in interface ICalendarAdapter
- Parameters:
calendar - calendar configuration for which to retrieve eventsperiod - time period for which to retrieve eventsrequest - user's servlet request
- Returns:
- Set of events for this calendar and time period
setCache
public void setCache(net.sf.ehcache.Cache cache)
setContentProcessor
public void setContentProcessor(IContentProcessor contentProcessor)
setCacheKeyGenerator
public void setCacheKeyGenerator(ICacheKeyGenerator cacheKeyGenerator)
setCacheKeyPrefix
public void setCacheKeyPrefix(String cacheKeyPrefix)
Copyright © 2010 Jasig. All Rights Reserved.