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.AbstractDavObjectCollectionproperties
 
- 
 - 
Method SummaryAll 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.AbstractDavObjectCollectiondelete, exists, getId, getOwnerHref, getOwnerName, getPath, getProperty, getQuotaAvailableBytes, getQuotaUsedBytes, getResourceTypes, getStore, getSupportedMediaTypes, isReadOnly, setReadOnly
 
- 
 
- 
- 
- 
Method Detail- 
getDisplayNamepublic String getDisplayName() Human-readable name of the collection.- Specified by:
- getDisplayNamein interface- ObjectCollection<net.fortuna.ical4j.vcard.VCard>
- Returns:
- the collection name
 
 - 
getMaxResourceSizepublic 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.
 - 
exportpublic Calendar export() throws ObjectStoreException - Throws:
- ObjectStoreException
 
 - 
propertiesForFetchpublic static final org.apache.jackrabbit.webdav.property.DavPropertyNameSet propertiesForFetch() 
 - 
getDescriptionpublic String getDescription() - Specified by:
- getDescriptionin interface- ObjectCollection<net.fortuna.ical4j.vcard.VCard>
- Returns:
- the collection description
 
 - 
getComponentspublic net.fortuna.ical4j.vcard.VCard[] getComponents() throws ObjectStoreExceptionDescription copied from interface:ObjectCollectionReturns all objects stored in the collection.- Specified by:
- getComponentsin interface- ObjectCollection<net.fortuna.ical4j.vcard.VCard>
- Returns:
- an array of collection objects
- Throws:
- ObjectStoreException- where an unexpected error occurs
 
 - 
addCardpublic void addCard(net.fortuna.ical4j.vcard.VCard card) throws ObjectStoreException, ConstraintViolationException- Specified by:
- addCardin interface- CardCollection
- Parameters:
- card- a vCard object instance
- Throws:
- ObjectStoreException- where an unexpected error occurs
- ConstraintViolationException- where the specified object is not valid
 
 - 
removeCardpublic 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 interface- CardCollection
- Parameters:
- uid- the uid of the existing card
- Returns:
- the card object that was removed from the collection
- Throws:
- ObjectNotFoundException
- FailedOperationException
 
 
- 
 
-