Class VersionedCollectionResource
java.lang.Object
org.exoplatform.services.jcr.webdav.resource.GenericResource
org.exoplatform.services.jcr.webdav.resource.CollectionResource
org.exoplatform.services.jcr.webdav.resource.VersionedCollectionResource
- All Implemented Interfaces:
Resource, VersionedResource, DeltaVConstants, PropertyConstants
Created by The eXo Platform SARL .
- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
Field Summary
Fields inherited from class CollectionResource
COLLECTION_SKIP, nodeFields inherited from class GenericResource
identifier, namespaceContext, PRESET_PROP, typeFields inherited from interface DeltaVConstants
CHECKEDIN, CHECKEDOUT, LABELNAMESET, PREDECESSORSET, SUCCESSORSET, VERSIONHISTORY, VERSIONNAMEFields inherited from interface 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, WRITEFields inherited from interface Resource
COLLECTION, FILE, NULL, VERSION, VERSION_HISTORY, VERSIONED_COLLECTION, VERSIONED_FILE -
Constructor Summary
ConstructorsConstructorDescriptionVersionedCollectionResource(URI identifier, javax.jcr.Node node, WebDavNamespaceContext namespaceContext) -
Method Summary
Modifier and TypeMethodDescriptionorg.exoplatform.common.util.HierarchicalPropertygetProperty(QName name) protected final URIreturns versionhistory URI.Methods inherited from class CollectionResource
childURI, getContentAsStream, getProperties, getResources, isCollectionMethods inherited from class GenericResource
decodeValue, getIdentifier, getNamespaceContext, getType, lockDiscovery, supportedLock, supportedMethodSetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Resource
getIdentifier, getNamespaceContext, getProperties, getType, isCollection
-
Constructor Details
-
VersionedCollectionResource
public VersionedCollectionResource(URI identifier, javax.jcr.Node node, WebDavNamespaceContext namespaceContext) throws IllegalResourceTypeException, javax.jcr.RepositoryException - Parameters:
identifier- resource identifiernode- nodenamespaceContext- namespace context- Throws:
IllegalResourceTypeException-IllegalResourceTypeExceptionjavax.jcr.RepositoryException-RepositoryException
-
-
Method Details
-
getVersionHistory
public VersionHistoryResource getVersionHistory() throws javax.jcr.RepositoryException, IllegalResourceTypeException- Specified by:
getVersionHistoryin interfaceVersionedResource- Returns:
- this resource versionhistory.
- Throws:
javax.jcr.RepositoryException-RepositoryExceptionIllegalResourceTypeException-IllegalResourceTypeException
-
versionHistoryURI
-
getProperty
public org.exoplatform.common.util.HierarchicalProperty getProperty(QName name) throws javax.jcr.PathNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException - Specified by:
getPropertyin interfaceResource- Overrides:
getPropertyin classCollectionResource- Parameters:
name- property name- Returns:
- property by its name
- Throws:
javax.jcr.PathNotFoundException-PathNotFoundExceptionjavax.jcr.AccessDeniedException-AccessDeniedExceptionjavax.jcr.RepositoryException-RepositoryException
-