net.fortuna.ical4j.connector.dav
public final class CalDavCalendarStore extends AbstractDavObjectStore<CalDavCalendarCollection> implements CalendarStore<CalDavCalendarCollection>
pathResolver| Constructor and Description |
|---|
CalDavCalendarStore(String prodId,
URL url,
PathResolver pathResolver) |
| Modifier and Type | Method and Description |
|---|---|
CalDavCalendarCollection |
addCollection(String id)
Adds the specified collection to the store.
|
CalDavCalendarCollection |
addCollection(String id,
org.apache.jackrabbit.webdav.property.DavPropertySet properties) |
CalDavCalendarCollection |
addCollection(String id,
String displayName,
String description,
String[] supportedComponents,
net.fortuna.ical4j.model.Calendar timezone) |
protected List<net.fortuna.ical4j.model.property.Attendee> |
executePrincipalPropSearch(Element principalPropSearch) |
String |
findCalendarHomeSet() |
protected String |
findCalendarHomeSet(String propfindUri)
This method try to find the calendar-home-set attribute in the user's DAV principals.
|
ArrayList<ScheduleResponse> |
findFreeBusyInfoForAttendees(net.fortuna.ical4j.model.property.Organizer organizer,
ArrayList<net.fortuna.ical4j.model.property.Attendee> attendees,
net.fortuna.ical4j.model.property.DtStart startTime,
net.fortuna.ical4j.model.property.DtEnd endTime)
This method will return free-busy information for each attendee.
|
protected String |
findInboxOrOutbox(org.apache.jackrabbit.webdav.property.DavPropertyName type) |
String |
findScheduleInbox() |
String |
findScheduleOutbox() |
List<net.fortuna.ical4j.model.property.Attendee> |
getAllPrincipalsForType(net.fortuna.ical4j.model.parameter.CuType type) |
List<net.fortuna.ical4j.model.property.Attendee> |
getAllResources() |
List<net.fortuna.ical4j.model.property.Attendee> |
getAllRooms() |
CalDavCalendarCollection |
getCollection(String id) |
List<CalDavCalendarCollection> |
getCollections()
This method will try to find all calendar collections available at the calendar-home-set URI of the user.
|
protected List<CalDavCalendarCollection> |
getCollectionsForHomeSet(CalDavCalendarStore store,
String urlForcalendarHomeSet) |
protected List<CalDavCalendarCollection> |
getDelegateCollections(org.apache.jackrabbit.webdav.property.DavProperty<?> proxyDavProperty) |
List<CalDavCalendarCollection> |
getDelegatedCollections()
Get the list of available delegated collections, Apple's iCal style
|
protected List<CalDavCalendarCollection> |
getDelegatedCollections(String type) |
String |
getDisplayName() |
List<net.fortuna.ical4j.model.property.Attendee> |
getIndividuals(String nameToSearch) |
List<CalDavCalendarCollection> |
getReadOnlyDelegatedCollections() |
List<net.fortuna.ical4j.model.property.Attendee> |
getRooms(String nameToSearch) |
protected List<net.fortuna.ical4j.model.property.Attendee> |
getUserTypes(net.fortuna.ical4j.model.parameter.CuType type,
String nameToSearch)
Use this method to search for resources (individual, group, resource, room).
|
List<CalDavCalendarCollection> |
getWriteDelegatedCollections() |
CalendarCollection |
merge(String id,
CalendarCollection calendar) |
protected Element |
propertiesForPropSearch(Document document) |
CalDavCalendarCollection |
removeCollection(String id)
Removes the collection with specified id from the store.
|
void |
setDisplayName(String displayName) |
connect, connect, disconnect, getClient, getHostURL, getPath, getUserName, isConnected, isSupportCalendarProxy, supportedFeaturesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, connect, disconnect, isConnectedpublic CalDavCalendarStore(String prodId, URL url, PathResolver pathResolver)
prodId - application product identifierurl - the URL of a CalDAV server instancepathResolver - the path resolver for the CalDAV server typepublic CalDavCalendarCollection addCollection(String id) throws ObjectStoreException
addCollection in interface ObjectStore<CalDavCalendarCollection>id - a collection identifierObjectStoreException - if a calendar with the specified id already
exists in the storepublic CalDavCalendarCollection addCollection(String id, String displayName, String description, String[] supportedComponents, net.fortuna.ical4j.model.Calendar timezone) throws ObjectStoreException
addCollection in interface ObjectStore<CalDavCalendarCollection>id - a collection identifierdisplayName - the collection namedescription - the collection descriptionsupportedComponents - supported collection objectstimezone - collection timezoneObjectStoreException - where an unexpected error occurspublic CalDavCalendarCollection addCollection(String id, org.apache.jackrabbit.webdav.property.DavPropertySet properties) throws ObjectStoreException
ObjectStoreExceptionpublic CalDavCalendarCollection getCollection(String id) throws ObjectStoreException, ObjectNotFoundException
getCollection in interface ObjectStore<CalDavCalendarCollection>id - a collection identifierObjectNotFoundException is thrown.ObjectStoreException - where an unexpected error occursObjectNotFoundException - if a collection with the specified identifier doesn't existpublic CalendarCollection merge(String id, CalendarCollection calendar)
public String findCalendarHomeSet() throws ParserConfigurationException, IOException, org.apache.jackrabbit.webdav.DavException
ParserConfigurationExceptionIOExceptionorg.apache.jackrabbit.webdav.DavExceptionprotected String findCalendarHomeSet(String propfindUri) throws ParserConfigurationException, IOException, org.apache.jackrabbit.webdav.DavException
ParserConfigurationExceptionIOExceptionorg.apache.jackrabbit.webdav.DavExceptionpublic List<CalDavCalendarCollection> getCollections() throws ObjectStoreException, ObjectNotFoundException
getCollections in interface ObjectStore<CalDavCalendarCollection>ParserConfigurationException - where the parse is not configured correctlyIOException - where a communications error occursorg.apache.jackrabbit.webdav.DavException - where an error occurs calling the DAV methodObjectStoreExceptionObjectNotFoundExceptionprotected List<CalDavCalendarCollection> getCollectionsForHomeSet(CalDavCalendarStore store, String urlForcalendarHomeSet) throws IOException, org.apache.jackrabbit.webdav.DavException
IOExceptionorg.apache.jackrabbit.webdav.DavExceptionprotected List<CalDavCalendarCollection> getDelegateCollections(org.apache.jackrabbit.webdav.property.DavProperty<?> proxyDavProperty) throws ParserConfigurationException, IOException, org.apache.jackrabbit.webdav.DavException
ParserConfigurationExceptionIOExceptionorg.apache.jackrabbit.webdav.DavExceptionpublic List<CalDavCalendarCollection> getDelegatedCollections() throws Exception
Exceptionprotected List<CalDavCalendarCollection> getDelegatedCollections(String type) throws Exception
Exceptionpublic List<CalDavCalendarCollection> getWriteDelegatedCollections() throws Exception
Exceptionpublic List<CalDavCalendarCollection> getReadOnlyDelegatedCollections() throws Exception
Exceptionpublic CalDavCalendarCollection removeCollection(String id) throws ObjectStoreException, ObjectNotFoundException
removeCollection in interface ObjectStore<CalDavCalendarCollection>id - a collection identifierObjectStoreException - where an unexpected error occursObjectNotFoundException - if a collection with the specified identifier doesn't existpublic String getDisplayName()
public void setDisplayName(String displayName)
public String findScheduleOutbox() throws ParserConfigurationException, IOException, org.apache.jackrabbit.webdav.DavException
ParserConfigurationExceptionIOExceptionorg.apache.jackrabbit.webdav.DavExceptionpublic String findScheduleInbox() throws ParserConfigurationException, IOException, org.apache.jackrabbit.webdav.DavException
ParserConfigurationExceptionIOExceptionorg.apache.jackrabbit.webdav.DavExceptionprotected String findInboxOrOutbox(org.apache.jackrabbit.webdav.property.DavPropertyName type) throws ParserConfigurationException, IOException, org.apache.jackrabbit.webdav.DavException
ParserConfigurationExceptionIOExceptionorg.apache.jackrabbit.webdav.DavExceptionpublic ArrayList<ScheduleResponse> findFreeBusyInfoForAttendees(net.fortuna.ical4j.model.property.Organizer organizer, ArrayList<net.fortuna.ical4j.model.property.Attendee> attendees, net.fortuna.ical4j.model.property.DtStart startTime, net.fortuna.ical4j.model.property.DtEnd endTime) throws ParserConfigurationException, IOException, org.apache.jackrabbit.webdav.DavException, ParseException, net.fortuna.ical4j.data.ParserException, SAXException
ParserConfigurationExceptionIOExceptionorg.apache.jackrabbit.webdav.DavExceptionParseExceptionnet.fortuna.ical4j.data.ParserExceptionSAXExceptionpublic List<net.fortuna.ical4j.model.property.Attendee> getIndividuals(String nameToSearch) throws ParserConfigurationException, IOException, org.apache.jackrabbit.webdav.DavException, URISyntaxException
ParserConfigurationExceptionIOExceptionorg.apache.jackrabbit.webdav.DavExceptionURISyntaxExceptionpublic List<net.fortuna.ical4j.model.property.Attendee> getRooms(String nameToSearch) throws ParserConfigurationException, IOException, org.apache.jackrabbit.webdav.DavException, URISyntaxException
ParserConfigurationExceptionIOExceptionorg.apache.jackrabbit.webdav.DavExceptionURISyntaxExceptionpublic List<net.fortuna.ical4j.model.property.Attendee> getAllRooms() throws ParserConfigurationException, IOException, org.apache.jackrabbit.webdav.DavException, URISyntaxException
ParserConfigurationExceptionIOExceptionorg.apache.jackrabbit.webdav.DavExceptionURISyntaxExceptionpublic List<net.fortuna.ical4j.model.property.Attendee> getAllResources() throws ParserConfigurationException, IOException, org.apache.jackrabbit.webdav.DavException, URISyntaxException
ParserConfigurationExceptionIOExceptionorg.apache.jackrabbit.webdav.DavExceptionURISyntaxExceptionpublic List<net.fortuna.ical4j.model.property.Attendee> getAllPrincipalsForType(net.fortuna.ical4j.model.parameter.CuType type) throws ParserConfigurationException, IOException, org.apache.jackrabbit.webdav.DavException, URISyntaxException
ParserConfigurationExceptionIOExceptionorg.apache.jackrabbit.webdav.DavExceptionURISyntaxExceptionprotected List<net.fortuna.ical4j.model.property.Attendee> getUserTypes(net.fortuna.ical4j.model.parameter.CuType type, String nameToSearch) throws ParserConfigurationException, IOException, org.apache.jackrabbit.webdav.DavException, URISyntaxException
type - nameToSearch - ParserConfigurationExceptionIOExceptionorg.apache.jackrabbit.webdav.DavExceptionURISyntaxExceptionprotected List<net.fortuna.ical4j.model.property.Attendee> executePrincipalPropSearch(Element principalPropSearch) throws org.apache.jackrabbit.webdav.DavException, IOException, URISyntaxException
org.apache.jackrabbit.webdav.DavExceptionIOExceptionURISyntaxExceptionCopyright © 2008-2013 Micronode. All Rights Reserved.