net.fortuna.ical4j.connector.dav
T
- the supported collection object type
Created: [20/11/2008]public abstract class AbstractDavObjectCollection<T> extends Object implements ObjectCollection<T>
Modifier and Type | Field and Description |
---|---|
protected org.apache.jackrabbit.webdav.property.DavPropertySet |
properties |
Constructor and Description |
---|
AbstractDavObjectCollection(AbstractDavObjectStore<?> store,
String id) |
Modifier and Type | Method and Description |
---|---|
protected static List<CalDavCalendarCollection> |
collectionsFromResponse(CalDavCalendarStore store,
org.apache.jackrabbit.webdav.MultiStatusResponse[] responses)
Get the list of collections from a MultiStatus (HTTP 207 status code) response and populate the list of
properties of each collection.
|
void |
delete() |
boolean |
exists() |
String |
getId() |
String |
getOwnerHref()
Href (link) to the owner of this collection
|
String |
getOwnerName()
Name of the owner of this collection.
|
String |
getPath() |
<P> P |
getProperty(org.apache.jackrabbit.webdav.property.DavPropertyName propertyName,
Class<P> type) |
Long |
getQuotaAvailableBytes()
Indicates the maximum amount of additional storage available to be allocated to a resource.
|
Long |
getQuotaUsedBytes()
Contains the amount of storage counted against the quota on a resource.
|
ResourceType[] |
getResourceTypes()
Returns a list of the kinds of resource type for this collection.
|
AbstractDavObjectStore<?> |
getStore() |
MediaType[] |
getSupportedMediaTypes()
Returns a list of supported media types.
|
boolean |
isReadOnly() |
void |
setReadOnly(boolean isReadOnly) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponents, getDescription, getDisplayName
public AbstractDavObjectCollection(AbstractDavObjectStore<?> store, String id)
store
- the container store for the collectionid
- collection identifierpublic final AbstractDavObjectStore<?> getStore()
public final String getId()
public final String getPath()
public ResourceType[] getResourceTypes()
public MediaType[] getSupportedMediaTypes()
public Long getQuotaAvailableBytes()
public Long getQuotaUsedBytes()
public String getOwnerHref()
public String getOwnerName()
public boolean isReadOnly()
public void setReadOnly(boolean isReadOnly)
public final <P> P getProperty(org.apache.jackrabbit.webdav.property.DavPropertyName propertyName, Class<P> type) throws IOException, ObjectStoreException, org.apache.jackrabbit.webdav.DavException
P
- the property typepropertyName
- a property nametype
- the class for the property type returned (HACK!!)IOException
- if there is a communication errorObjectStoreException
- where an unexpected error occursorg.apache.jackrabbit.webdav.DavException
- where an error occurs calling the DAV methodpublic final void delete() throws org.apache.commons.httpclient.HttpException, IOException, ObjectStoreException
org.apache.commons.httpclient.HttpException
- where an error occurs calling the HTTP methodIOException
- if there is a communication errorObjectStoreException
- where an unexpected error occurspublic final boolean exists() throws org.apache.commons.httpclient.HttpException, IOException, ObjectStoreException
org.apache.commons.httpclient.HttpException
- where an error occurs calling the HTTP methodIOException
- if there is a communication errorObjectStoreException
- where an unexpected error occursprotected static List<CalDavCalendarCollection> collectionsFromResponse(CalDavCalendarStore store, org.apache.jackrabbit.webdav.MultiStatusResponse[] responses)
Copyright © 2008-2013 Micronode. All Rights Reserved.