Package net.fortuna.ical4j.connector.dav
Class CardDavCollection
- java.lang.Object
-
- net.fortuna.ical4j.connector.dav.AbstractDavObjectCollection<net.fortuna.ical4j.vcard.VCard>
-
- net.fortuna.ical4j.connector.dav.CardDavCollection
-
- All Implemented Interfaces:
CardCollection,ObjectCollection<net.fortuna.ical4j.vcard.VCard>
public class CardDavCollection extends AbstractDavObjectCollection<net.fortuna.ical4j.vcard.VCard> implements CardCollection
$Id$ Created on 24/02/2008
-
-
Field Summary
-
Fields inherited from class net.fortuna.ical4j.connector.dav.AbstractDavObjectCollection
properties
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCard(net.fortuna.ical4j.vcard.VCard card)Calendarexport()net.fortuna.ical4j.vcard.VCard[]getComponents()Returns all objects stored in the collection.StringgetDescription()StringgetDisplayName()Human-readable name of the collection.longgetMaxResourceSize()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.static org.apache.jackrabbit.webdav.property.DavPropertyNameSetpropertiesForFetch()net.fortuna.ical4j.vcard.VCardremoveCard(String uid)Remove an existing card from the collection.-
Methods inherited from class net.fortuna.ical4j.connector.dav.AbstractDavObjectCollection
delete, exists, getId, getOwnerHref, getOwnerName, getPath, getProperty, getQuotaAvailableBytes, getQuotaUsedBytes, getResourceTypes, getStore, getSupportedMediaTypes, isReadOnly, setReadOnly
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Human-readable name of the collection.- Specified by:
getDisplayNamein interfaceObjectCollection<net.fortuna.ical4j.vcard.VCard>- Returns:
- the collection name
-
getMaxResourceSize
public 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. 0 = no limits.
-
export
public Calendar export() throws ObjectStoreException
- Throws:
ObjectStoreException
-
propertiesForFetch
public static final org.apache.jackrabbit.webdav.property.DavPropertyNameSet propertiesForFetch()
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceObjectCollection<net.fortuna.ical4j.vcard.VCard>- Returns:
- the collection description
-
getComponents
public net.fortuna.ical4j.vcard.VCard[] getComponents() throws ObjectStoreExceptionDescription copied from interface:ObjectCollectionReturns all objects stored in the collection.- Specified by:
getComponentsin interfaceObjectCollection<net.fortuna.ical4j.vcard.VCard>- Returns:
- an array of collection objects
- Throws:
ObjectStoreException- where an unexpected error occurs
-
addCard
public void addCard(net.fortuna.ical4j.vcard.VCard card) throws ObjectStoreException, ConstraintViolationException- Specified by:
addCardin interfaceCardCollection- Parameters:
card- a vCard object instance- Throws:
ObjectStoreException- where an unexpected error occursConstraintViolationException- where the specified object is not valid
-
removeCard
public net.fortuna.ical4j.vcard.VCard removeCard(String uid) throws ObjectNotFoundException, FailedOperationException
Description copied from interface:CardCollectionRemove an existing card from the collection.- Specified by:
removeCardin interfaceCardCollection- Parameters:
uid- the uid of the existing card- Returns:
- the card object that was removed from the collection
- Throws:
ObjectNotFoundExceptionFailedOperationException
-
-