Package net.fortuna.ical4j.connector.jcr
Class JcrCardCollection
- java.lang.Object
-
- org.jcrom.AbstractJcrEntity
-
- net.fortuna.ical4j.connector.jcr.AbstractJcrObjectCollection<net.fortuna.ical4j.vcard.VCard>
-
- net.fortuna.ical4j.connector.jcr.JcrCardCollection
-
- All Implemented Interfaces:
Serializable
,CardCollection
,ObjectCollection<net.fortuna.ical4j.vcard.VCard>
public class JcrCardCollection extends AbstractJcrObjectCollection<net.fortuna.ical4j.vcard.VCard> implements CardCollection
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JcrCardCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCard(net.fortuna.ical4j.vcard.VCard card)
net.fortuna.ical4j.vcard.VCard[]
getComponents()
Returns all objects stored in the collection.net.fortuna.ical4j.vcard.VCard
removeCard(String uid)
Remove an existing card from the collection.-
Methods inherited from class net.fortuna.ical4j.connector.jcr.AbstractJcrObjectCollection
getCollectionName, getDescription, getDisplayName, getNode, getStore, setCollectionName, setDescription, setDisplayName, setStore
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.fortuna.ical4j.connector.ObjectCollection
getDescription, getDisplayName
-
-
-
-
Method Detail
-
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
-
getComponents
public net.fortuna.ical4j.vcard.VCard[] getComponents() throws ObjectStoreException
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
-
-