Interface Resource
- All Superinterfaces:
PropertyConstants
- All Known Subinterfaces:
VersionedResource
- All Known Implementing Classes:
CollectionResource,FileResource,GenericResource,VersionedCollectionResource,VersionedFileResource,VersionHistoryResource,VersionResource
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... In other 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
WebDAV applicable abstraction of REST Resource definition (by Fielding: "Any information that can be named can be a resource... In other 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: $
- Author:
- Gennady Azarenkov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCollection nodetype index.static final intFile nodetype index.static final intEmpty nodetype index.static final intVersion nodetype index.static final intVersion history nodetype index.static final intVersioned collection nodetype index.static final intVersioned file nodetype index.Fields inherited from interface org.exoplatform.services.jcr.webdav.util.PropertyConstants
CHILDCOUNT, CREATION_PATTERN, CREATIONDATE, DAV_ALLPROP, DAV_ALLPROP_INCLUDE, DISPLAYNAME, EXCLUSIVE, GETCONTENTLANGUAGE, GETCONTENTLENGTH, GETCONTENTTYPE, GETLASTMODIFIED, HASCHILDREN, IS_READ_ONLY, ISCOLLECTION, ISFOLDER, ISROOT, ISVERSIONED, JCR_CONTENT, JCR_DATA, LOCKDISCOVERY, LOCKSCOPE, LOCKTYPE, MODIFICATION_PATTERN, ORDERING_TYPE, OWNER, PARENTNAME, RESOURCETYPE, SUPPORTEDLOCK, SUPPORTEDMETHODSET, WRITE -
Method Summary
Modifier and TypeMethodDescriptionSet<org.exoplatform.common.util.HierarchicalProperty> getProperties(boolean namesOnly) org.exoplatform.common.util.HierarchicalPropertygetProperty(QName name) intgetType()boolean
-
Field Details
-
FILE
static final int FILEFile nodetype index.- See Also:
-
COLLECTION
static final int COLLECTIONCollection nodetype index.- See Also:
-
VERSION
static final int VERSIONVersion nodetype index.- See Also:
-
VERSIONED_FILE
static final int VERSIONED_FILEVersioned file nodetype index.- See Also:
-
VERSIONED_COLLECTION
static final int VERSIONED_COLLECTIONVersioned collection nodetype index.- See Also:
-
VERSION_HISTORY
static final int VERSION_HISTORYVersion history nodetype index.- See Also:
-
NULL
static final int NULLEmpty nodetype index.- See Also:
-
-
Method Details
-
getIdentifier
URI getIdentifier()- Returns:
- resource identifier
-
getType
int getType()- Returns:
- resource type
-
getProperty
org.exoplatform.common.util.HierarchicalProperty getProperty(QName name) throws javax.jcr.PathNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException - Parameters:
name- property name- Returns:
- property by its name
- Throws:
javax.jcr.PathNotFoundException-PathNotFoundExceptionjavax.jcr.AccessDeniedException-AccessDeniedExceptionjavax.jcr.RepositoryException-RepositoryException
-
getProperties
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-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
-