net.fortuna.ical4j.connector.dav
public class CalDavCalendarCollection extends AbstractDavObjectCollection<net.fortuna.ical4j.model.Calendar> implements CalendarCollection
properties| Modifier and Type | Method and Description |
|---|---|
void |
addCalendar(net.fortuna.ical4j.model.Calendar calendar)
Add a new calendar object in the collection.
|
net.fortuna.ical4j.model.Calendar[] |
doFreeBusyQuery()
TODO: implement free-busy-query
|
net.fortuna.ical4j.model.Calendar |
export()
Exports the entire collection as a single calendar object.
|
net.fortuna.ical4j.model.Calendar |
getCalendar(String uid)
Returns the calendar object with the specified UID.
|
net.fortuna.ical4j.model.Calendar[] |
getCalendars()
Deprecated.
Use the getEvents() method
|
String |
getColor() |
net.fortuna.ical4j.model.Calendar[] |
getComponents()
Returns all objects stored in the collection.
|
net.fortuna.ical4j.model.Calendar[] |
getComponentsByType(String componentType) |
String |
getDescription()
Provides a human-readable description of the calendar collection.
|
String |
getDisplayName()
Human-readable name of the collection.
|
net.fortuna.ical4j.model.Calendar[] |
getEvents() |
net.fortuna.ical4j.model.Calendar[] |
getEventsForTimePeriod(net.fortuna.ical4j.model.DateTime startTime,
net.fortuna.ical4j.model.DateTime endTime)
Get a list of calendar objects of VEVENT type for a specific time period.
|
Integer |
getMaxAttendeesPerInstance()
Provides a numeric value indicating the maximum number of ATTENDEE properties in any instance of a calendar
object resource stored in a calendar collection.
|
String |
getMaxDateTime()
Provides a DATE-TIME value indicating the latest date and time (in UTC) that the server is willing to accept for
any DATE or DATE-TIME value in a calendar object resource stored in a calendar collection.
|
Integer |
getMaxInstances()
Provides a numeric value indicating the maximum number of recurrence instances that a calendar object resource
stored in a calendar collection can generate.
|
long |
getMaxResourceSize()
Provides a numeric value indicating the maximum size of a resource in octets that the server is willing to accept
when a calendar object resource is stored in a calendar collection.
|
String |
getMinDateTime()
Provides a DATE-TIME value indicating the earliest date and time (in UTC) that the server is willing to accept
for any DATE or DATE-TIME value in a calendar object resource stored in a calendar collection.
|
net.fortuna.ical4j.model.Calendar[] |
getObjectsByFilter(Element filter,
Element calData)
Returns a list of calendar objects by calling a REPORT method with a filter.
|
net.fortuna.ical4j.model.Calendar[] |
getObjectsByMultiget(ArrayList<URI> hrefs,
Element calData)
TODO: implement calendar-multiget to fetch objects based on href
|
int |
getOrder() |
String[] |
getSupportedComponentTypes()
Get the list of calendar components (VEVENT, VTODO, etc.) that this collection supports.
|
net.fortuna.ical4j.model.Calendar[] |
getTasks() |
net.fortuna.ical4j.model.Calendar |
getTimeZone()
The CALDAV:calendar-timezone property is used to specify the time zone the server should rely on to resolve
"date" values and "date with local time" values (i.e., floating time) to "date with UTC time" values.
|
void |
merge(net.fortuna.ical4j.model.Calendar calendar)
Merges the specified calendar object with this collecton.
|
static org.apache.jackrabbit.webdav.property.DavPropertyNameSet |
propertiesForFetch() |
net.fortuna.ical4j.model.Calendar |
removeCalendar(String uid) |
String |
toString() |
void |
updateCalendar(net.fortuna.ical4j.model.Calendar calendar)
Update a calendar object in the collection.
|
void |
writeCalendarOnServer(net.fortuna.ical4j.model.Calendar calendar,
boolean isNew) |
collectionsFromResponse, delete, exists, getId, getOwnerHref, getOwnerName, getPath, getProperty, getQuotaAvailableBytes, getQuotaUsedBytes, getResourceTypes, getStore, getSupportedMediaTypes, isReadOnly, setReadOnlyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSupportedMediaTypes@Deprecated public net.fortuna.ical4j.model.Calendar[] getCalendars()
net.fortuna.ical4j.connector.CalendarCollection#getCalendars()public net.fortuna.ical4j.model.Calendar[] getEvents()
public net.fortuna.ical4j.model.Calendar[] getTasks()
public net.fortuna.ical4j.model.Calendar[] getComponentsByType(String componentType)
componentType - the type of componentpublic String getDescription()
getDescription in interface ObjectCollection<net.fortuna.ical4j.model.Calendar>public String getDisplayName()
getDisplayName in interface ObjectCollection<net.fortuna.ical4j.model.Calendar>public Integer getMaxAttendeesPerInstance()
getMaxAttendeesPerInstance in interface CalendarCollectionpublic String getMaxDateTime()
getMaxDateTime in interface CalendarCollectionpublic Integer getMaxInstances()
getMaxInstances in interface CalendarCollectionpublic long getMaxResourceSize()
getMaxResourceSize in interface CalendarCollectionpublic String getMinDateTime()
getMinDateTime in interface CalendarCollectionpublic String[] getSupportedComponentTypes()
getSupportedComponentTypes in interface CalendarCollectionpublic net.fortuna.ical4j.model.Calendar getTimeZone()
getTimeZone in interface CalendarCollectionpublic String getColor()
public int getOrder()
public void addCalendar(net.fortuna.ical4j.model.Calendar calendar)
throws ObjectStoreException,
net.fortuna.ical4j.model.ConstraintViolationException
addCalendar in interface CalendarCollectioncalendar - a calendar object instance to be added to the collectionObjectStoreException - when an unexpected error occurs (implementation-specific)net.fortuna.ical4j.model.ConstraintViolationException - if the specified calendar has no single unique identifier (UID)public void updateCalendar(net.fortuna.ical4j.model.Calendar calendar)
throws ObjectStoreException,
net.fortuna.ical4j.model.ConstraintViolationException
calendar - ObjectStoreExceptionnet.fortuna.ical4j.model.ConstraintViolationExceptionpublic void writeCalendarOnServer(net.fortuna.ical4j.model.Calendar calendar,
boolean isNew)
throws ObjectStoreException,
net.fortuna.ical4j.model.ConstraintViolationException
ObjectStoreExceptionnet.fortuna.ical4j.model.ConstraintViolationExceptionpublic net.fortuna.ical4j.model.Calendar getCalendar(String uid)
getCalendar in interface CalendarCollectionuid - the UID associated with the returned calendarpublic net.fortuna.ical4j.model.Calendar removeCalendar(String uid) throws FailedOperationException, ObjectStoreException
removeCalendar in interface CalendarCollectionuid - the UID of the calendar to removeObjectStoreException - where an unexpected error occursFailedOperationExceptionpublic final void merge(net.fortuna.ical4j.model.Calendar calendar)
throws FailedOperationException,
ObjectStoreException
merge in interface CalendarCollectioncalendar - a calendar object instance to merge into the collectionFailedOperationException - where the merge operation failsObjectStoreExceptionpublic net.fortuna.ical4j.model.Calendar export()
throws ObjectStoreException
export in interface CalendarCollectionObjectStoreException - where an unexpected error occurspublic net.fortuna.ical4j.model.Calendar[] getComponents()
throws ObjectStoreException
getComponents in interface ObjectCollection<net.fortuna.ical4j.model.Calendar>ObjectStoreException - where an unexpected error occurspublic net.fortuna.ical4j.model.Calendar[] getEventsForTimePeriod(net.fortuna.ical4j.model.DateTime startTime,
net.fortuna.ical4j.model.DateTime endTime)
throws IOException,
org.apache.jackrabbit.webdav.DavException,
ParserConfigurationException,
net.fortuna.ical4j.data.ParserException
startTime - endTime - IOExceptionorg.apache.jackrabbit.webdav.DavExceptionParserConfigurationExceptionnet.fortuna.ical4j.data.ParserExceptionpublic net.fortuna.ical4j.model.Calendar[] getObjectsByFilter(Element filter, Element calData) throws IOException, org.apache.jackrabbit.webdav.DavException, ParserConfigurationException, net.fortuna.ical4j.data.ParserException
filter - IOExceptionorg.apache.jackrabbit.webdav.DavExceptionParserConfigurationExceptionnet.fortuna.ical4j.data.ParserExceptionpublic net.fortuna.ical4j.model.Calendar[] getObjectsByMultiget(ArrayList<URI> hrefs, Element calData) throws IOException, org.apache.jackrabbit.webdav.DavException, ParserConfigurationException, net.fortuna.ical4j.data.ParserException
hrefs - calData - IOExceptionorg.apache.jackrabbit.webdav.DavExceptionParserConfigurationExceptionnet.fortuna.ical4j.data.ParserExceptionpublic net.fortuna.ical4j.model.Calendar[] doFreeBusyQuery()
public static final org.apache.jackrabbit.webdav.property.DavPropertyNameSet propertiesForFetch()
Copyright © 2008-2013 Micronode. All Rights Reserved.