net.fortuna.ical4j.connector.jcr
public class JcrCalendarCollection extends AbstractJcrObjectCollection<net.fortuna.ical4j.model.Calendar> implements CalendarCollection
Constructor and Description |
---|
JcrCalendarCollection() |
Modifier and Type | Method and Description |
---|---|
void |
addCalendar(net.fortuna.ical4j.model.Calendar calendar)
Stores the specified calendar in this collection.
|
net.fortuna.ical4j.model.Calendar |
export()
Exports the entire collection as a single calendar object.
|
net.fortuna.ical4j.model.Calendar |
getCalendar(String uid)
Returns the calendar object with the specified UID.
|
net.fortuna.ical4j.model.Calendar[] |
getComponents()
Returns all objects stored in the collection.
|
Integer |
getMaxAttendeesPerInstance() |
String |
getMaxDateTime() |
Integer |
getMaxInstances() |
long |
getMaxResourceSize() |
String |
getMinDateTime() |
String[] |
getSupportedComponentTypes() |
MediaType[] |
getSupportedMediaTypes() |
net.fortuna.ical4j.model.Calendar |
getTimeZone() |
void |
merge(net.fortuna.ical4j.model.Calendar calendar)
Merges the specified calendar object with this collecton.
|
net.fortuna.ical4j.model.Calendar |
removeCalendar(String uid) |
getCollectionName, getDescription, getDisplayName, getNode, getStore, setCollectionName, setDescription, setDisplayName, setStore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getDisplayName
public void addCalendar(net.fortuna.ical4j.model.Calendar calendar) throws ObjectStoreException, net.fortuna.ical4j.model.ConstraintViolationException
addCalendar
in interface CalendarCollection
calendar
- a calendar object instance to be added to the collectionObjectStoreException
- when an unexpected error occurs (implementation-specific)net.fortuna.ical4j.model.ConstraintViolationException
- if the specified calendar has no single unique identifier (UID)public net.fortuna.ical4j.model.Calendar export() throws ObjectStoreException
export
in interface CalendarCollection
ObjectStoreException
- where an unexpected error occurspublic net.fortuna.ical4j.model.Calendar getCalendar(String uid)
getCalendar
in interface CalendarCollection
uid
- the UID associated with the returned calendarpublic net.fortuna.ical4j.model.Calendar[] getComponents() throws ObjectStoreException
getComponents
in interface ObjectCollection<net.fortuna.ical4j.model.Calendar>
ObjectStoreException
- where an unexpected error occurspublic Integer getMaxAttendeesPerInstance()
getMaxAttendeesPerInstance
in interface CalendarCollection
public String getMaxDateTime()
getMaxDateTime
in interface CalendarCollection
public Integer getMaxInstances()
getMaxInstances
in interface CalendarCollection
public long getMaxResourceSize()
getMaxResourceSize
in interface CalendarCollection
public String getMinDateTime()
getMinDateTime
in interface CalendarCollection
public String[] getSupportedComponentTypes()
getSupportedComponentTypes
in interface CalendarCollection
public MediaType[] getSupportedMediaTypes()
getSupportedMediaTypes
in interface CalendarCollection
public net.fortuna.ical4j.model.Calendar getTimeZone()
getTimeZone
in interface CalendarCollection
public net.fortuna.ical4j.model.Calendar removeCalendar(String uid) throws ObjectStoreException
removeCalendar
in interface CalendarCollection
uid
- the UID of the calendar to removeObjectStoreException
- where an unexpected error occurspublic void merge(net.fortuna.ical4j.model.Calendar calendar) throws FailedOperationException, ObjectStoreException
merge
in interface CalendarCollection
calendar
- a calendar object instance to merge into the collectionFailedOperationException
- where the merge operation failsObjectStoreException
Copyright © 2008-2013 Micronode. All Rights Reserved.