public abstract class AbstractCalendarAdapter extends Object implements ICalendarAdapter
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
AbstractCalendarAdapter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescriptionKey()
Get the message key to be used as the description for this adapter.
|
String |
getLink(CalendarConfiguration calendar,
org.joda.time.Interval interval,
javax.portlet.PortletRequest request)
Get hyper link for the defined calendar.
|
List<org.jasig.portlet.form.parameter.Parameter> |
getParameters()
Get the list of configuration parameters available for this adapter.
|
String |
getTitleKey()
Get the message key to be used as the title for this adapter.
|
protected CalendarEventSet |
insertCalendarEventSetIntoCache(net.sf.ehcache.Cache cache,
String processorCacheKey,
Set<net.fortuna.ical4j.model.component.VEvent> events)
Creates a CalendarEventSet from a set of calendar events, inserts it into
the cache, and copies the cached element's expiration time into the
CalendarEventSet.
|
protected CalendarEventSet |
insertCalendarEventSetIntoCache(net.sf.ehcache.Cache cache,
String processorCacheKey,
Set<net.fortuna.ical4j.model.component.VEvent> events,
int secondsToLive)
Creates a CalendarEventSet from a set of calendar events, inserts it into
the cache with a specified lifetime, and copies the cached element's
expiration time into the CalendarEventSet.
|
void |
setDescriptionKey(String descriptionKey) |
void |
setParameters(List<org.jasig.portlet.form.parameter.Parameter> parameters) |
void |
setTitleKey(String titleKey) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEventspublic String getTitleKey()
ICalendarAdaptergetTitleKey in interface ICalendarAdapterpublic String getDescriptionKey()
ICalendarAdaptergetDescriptionKey in interface ICalendarAdapterpublic List<org.jasig.portlet.form.parameter.Parameter> getParameters()
ICalendarAdaptergetParameters in interface ICalendarAdapterpublic void setParameters(List<org.jasig.portlet.form.parameter.Parameter> parameters)
public void setTitleKey(String titleKey)
public void setDescriptionKey(String descriptionKey)
protected CalendarEventSet insertCalendarEventSetIntoCache(net.sf.ehcache.Cache cache, String processorCacheKey, Set<net.fortuna.ical4j.model.component.VEvent> events, int secondsToLive)
cache - Cache to insert the event set intoprocessorCacheKey - Key for the event setevents - set of calendar events to cachesecondsToLive - Number of seconds for the event set to survive in cache.
< 0 for the default cache value, 0 for unlimited (for
consistency with ehCache interface)protected CalendarEventSet insertCalendarEventSetIntoCache(net.sf.ehcache.Cache cache, String processorCacheKey, Set<net.fortuna.ical4j.model.component.VEvent> events)
cache - Cache to insert the event set intoprocessorCacheKey - Key for the event setevents - set of calendar events to cachepublic String getLink(CalendarConfiguration calendar, org.joda.time.Interval interval, javax.portlet.PortletRequest request) throws CalendarLinkException
ICalendarAdaptergetLink in interface ICalendarAdaptercalendar - calendar configuration for which to retrieve eventsinterval - time period for which to retrieve eventsrequest - user's servlet requestCalendarLinkExceptionCopyright © 2016 Apereo. All Rights Reserved.