net.fortuna.ical4j.connector
C
- the type of collection supported by the store
$Id$
Created on 27/09/2008public interface ObjectStore<C extends ObjectCollection<?>>
Modifier and Type | Method and Description |
---|---|
C |
addCollection(String id)
Adds the specified collection to the store.
|
C |
addCollection(String id,
String displayName,
String description,
String[] supportedComponents,
net.fortuna.ical4j.model.Calendar timezone) |
boolean |
connect()
Connect to a object store anonymously.
|
boolean |
connect(String username,
char[] password)
Connect to a object store using the specified credentials.
|
void |
disconnect() |
C |
getCollection(String id) |
List<C> |
getCollections() |
boolean |
isConnected() |
C |
removeCollection(String id)
Removes the collection with specified id from the store.
|
boolean connect() throws ObjectStoreException
ObjectStoreException
- where an unexpected error occursboolean connect(String username, char[] password) throws ObjectStoreException
username
- connection usernamepassword
- connection passwordObjectStoreException
- where an unexpected error occursvoid disconnect() throws ObjectStoreException
ObjectStoreException
- where an unexpected error occursboolean isConnected()
C addCollection(String id) throws ObjectStoreException
id
- a collection identifierObjectStoreException
- if a calendar with the specified id already
exists in the storeC addCollection(String id, String displayName, String description, String[] supportedComponents, net.fortuna.ical4j.model.Calendar timezone) throws ObjectStoreException
id
- a collection identifierdisplayName
- the collection namedescription
- the collection descriptionsupportedComponents
- supported collection objectstimezone
- collection timezoneObjectStoreException
- where an unexpected error occursC removeCollection(String id) throws ObjectStoreException, ObjectNotFoundException
id
- a collection identifierObjectStoreException
- where an unexpected error occursObjectNotFoundException
- if a collection with the specified identifier doesn't existC getCollection(String id) throws ObjectStoreException, ObjectNotFoundException
id
- a collection identifierObjectNotFoundException
is thrown.ObjectStoreException
- where an unexpected error occursObjectNotFoundException
- if a collection with the specified identifier doesn't existList<C> getCollections() throws ObjectStoreException, ObjectNotFoundException
Copyright © 2008-2013 Micronode. All Rights Reserved.