org.exoplatform.services.jcr.webdav.resource
Interface Resource

All Superinterfaces:
PropertyConstants
All Known Subinterfaces:
VersionedResource
All Known Implementing Classes:
CollectionResource, FileResource, GenericResource, VersionedCollectionResource, VersionedFileResource, VersionHistoryResource, VersionResource

public interface Resource
extends PropertyConstants

Created by The eXo Platform SARL .
WebDAV applicable abstraction of REST Resource definition (by Fielding: "Any information that can be named can be a resource... Inother words: any concept that might be the target of an author's hypertext reference must fit within the definition of a resource") Here the REST resource abstraction is some narrowed to the WebDAV needs

Version:
$Id: Resource.java 35184 2009-08-07 14:14:37Z pnedonosko $
Author:
Gennady Azarenkov

Field Summary
static int COLLECTION
           
static int FILE
           
static int NULL
           
static int VERSION
           
static int VERSION_HISTORY
           
static int VERSIONED_COLLECTION
           
static int VERSIONED_FILE
           
 
Fields inherited from interface org.exoplatform.services.jcr.webdav.util.PropertyConstants
CHILDCOUNT, CREATION_PATTERN, CREATIONDATE, DISPLAYNAME, EXCLUSIVE, GETCONTENTLANGUAGE, GETCONTENTLENGTH, GETCONTENTTYPE, GETLASTMODIFIED, HASCHILDREN, ISCOLLECTION, ISFOLDER, ISROOT, ISVERSIONED, LOCKDISCOVERY, LOCKSCOPE, LOCKTYPE, MODIFICATION_PATTERN, ORDERING_TYPE, OWNER, PARENTNAME, RESOURCETYPE, SUPPORTEDLOCK, SUPPORTEDMETHODSET, WRITE
 
Method Summary
 java.net.URI getIdentifier()
           
 WebDavNamespaceContext getNamespaceContext()
           
 java.util.Set<org.exoplatform.common.util.HierarchicalProperty> getProperties(boolean namesOnly)
           
 org.exoplatform.common.util.HierarchicalProperty getProperty(javax.xml.namespace.QName name)
           
 int getType()
           
 boolean isCollection()
           
 

Field Detail

FILE

static final int FILE
See Also:
Constant Field Values

COLLECTION

static final int COLLECTION
See Also:
Constant Field Values

VERSION

static final int VERSION
See Also:
Constant Field Values

VERSIONED_FILE

static final int VERSIONED_FILE
See Also:
Constant Field Values

VERSIONED_COLLECTION

static final int VERSIONED_COLLECTION
See Also:
Constant Field Values

VERSION_HISTORY

static final int VERSION_HISTORY
See Also:
Constant Field Values

NULL

static final int NULL
See Also:
Constant Field Values
Method Detail

getIdentifier

java.net.URI getIdentifier()
Returns:
resource identifier

getType

int getType()
Returns:
resource type

getProperty

org.exoplatform.common.util.HierarchicalProperty getProperty(javax.xml.namespace.QName name)
                                                             throws javax.jcr.PathNotFoundException,
                                                                    javax.jcr.AccessDeniedException,
                                                                    javax.jcr.RepositoryException
Parameters:
name -
Returns:
property by its name
Throws:
javax.jcr.PathNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException

getProperties

java.util.Set<org.exoplatform.common.util.HierarchicalProperty> getProperties(boolean namesOnly)
                                                                              throws javax.jcr.RepositoryException
Parameters:
namesOnly - - if true "empty" properties will be returned (w/o values inside)
Returns:
all properties belonging to this resource
Throws:
javax.jcr.RepositoryException

isCollection

boolean isCollection()
Returns:
true if this is collection-able resource - i.e. this resource may contain other resources

getNamespaceContext

WebDavNamespaceContext getNamespaceContext()
Returns:
namespace context for this resource


Copyright © 2010 eXo Platform SAS. All Rights Reserved.