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 void
addCard(net.fortuna.ical4j.vcard.VCard card)
Calendar
export()
net.fortuna.ical4j.vcard.VCard[]
getComponents()
Returns all objects stored in the collection.String
getDescription()
String
getDisplayName()
Human-readable name of the collection.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.static org.apache.jackrabbit.webdav.property.DavPropertyNameSet
propertiesForFetch()
net.fortuna.ical4j.vcard.VCard
removeCard(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:
getDisplayName
in 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:
getDescription
in interfaceObjectCollection<net.fortuna.ical4j.vcard.VCard>
- Returns:
- the collection description
-
getComponents
public net.fortuna.ical4j.vcard.VCard[] getComponents() throws ObjectStoreException
Description copied from interface:ObjectCollection
Returns all objects stored in the collection.- Specified by:
getComponents
in 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:
addCard
in 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:CardCollection
Remove an existing card from the collection.- Specified by:
removeCard
in interfaceCardCollection
- Parameters:
uid
- the uid of the existing card- Returns:
- the card object that was removed from the collection
- Throws:
ObjectNotFoundException
FailedOperationException
-
-