eXo JCR :: Component :: Webdav Service 1.15.4-GA

org.exoplatform.services.jcr.webdav.resource
Class VersionedCollectionResource

java.lang.Object
  extended by org.exoplatform.services.jcr.webdav.resource.GenericResource
      extended by org.exoplatform.services.jcr.webdav.resource.CollectionResource
          extended by org.exoplatform.services.jcr.webdav.resource.VersionedCollectionResource
All Implemented Interfaces:
Resource, VersionedResource, DeltaVConstants, PropertyConstants

public class VersionedCollectionResource
extends CollectionResource
implements VersionedResource

Created by The eXo Platform SARL .

Version:
$Id: $
Author:
Gennady Azarenkov

Field Summary
 
Fields inherited from class org.exoplatform.services.jcr.webdav.resource.CollectionResource
COLLECTION_SKIP, node
 
Fields inherited from class org.exoplatform.services.jcr.webdav.resource.GenericResource
identifier, namespaceContext, PRESET_PROP, type
 
Fields inherited from interface org.exoplatform.services.jcr.webdav.resource.Resource
COLLECTION, FILE, NULL, VERSION, VERSION_HISTORY, VERSIONED_COLLECTION, VERSIONED_FILE
 
Fields inherited from interface org.exoplatform.services.jcr.webdav.util.DeltaVConstants
CHECKEDIN, CHECKEDOUT, LABELNAMESET, PREDECESSORSET, SUCCESSORSET, VERSIONHISTORY, VERSIONNAME
 
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
 
Constructor Summary
VersionedCollectionResource(URI identifier, javax.jcr.Node node, WebDavNamespaceContext namespaceContext)
           
 
Method Summary
 org.exoplatform.common.util.HierarchicalProperty getProperty(QName name)
          
 VersionHistoryResource getVersionHistory()
           
protected  URI versionHistoryURI()
          returns versionhistory URI.
 
Methods inherited from class org.exoplatform.services.jcr.webdav.resource.CollectionResource
childURI, getContentAsStream, getProperties, getResources, isCollection
 
Methods inherited from class org.exoplatform.services.jcr.webdav.resource.GenericResource
getIdentifier, getNamespaceContext, getType, lockDiscovery, supportedLock, supportedMethodSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.exoplatform.services.jcr.webdav.resource.Resource
getIdentifier, getNamespaceContext, getProperties, getType, isCollection
 

Constructor Detail

VersionedCollectionResource

public VersionedCollectionResource(URI identifier,
                                   javax.jcr.Node node,
                                   WebDavNamespaceContext namespaceContext)
                            throws IllegalResourceTypeException,
                                   javax.jcr.RepositoryException
Parameters:
identifier - resource identifier
node - node
namespaceContext - namespace context
Throws:
IllegalResourceTypeException - IllegalResourceTypeException
javax.jcr.RepositoryException - RepositoryException
Method Detail

getVersionHistory

public VersionHistoryResource getVersionHistory()
                                         throws javax.jcr.RepositoryException,
                                                IllegalResourceTypeException
Specified by:
getVersionHistory in interface VersionedResource
Returns:
this resource versionhistory.
Throws:
javax.jcr.RepositoryException - RepositoryException
IllegalResourceTypeException - IllegalResourceTypeException

versionHistoryURI

protected final URI versionHistoryURI()
returns versionhistory URI.

Returns:
versionhistory URI

getProperty

public org.exoplatform.common.util.HierarchicalProperty getProperty(QName name)
                                                             throws javax.jcr.PathNotFoundException,
                                                                    javax.jcr.AccessDeniedException,
                                                                    javax.jcr.RepositoryException

Specified by:
getProperty in interface Resource
Overrides:
getProperty in class CollectionResource
Parameters:
name - property name
Returns:
property by its name
Throws:
javax.jcr.PathNotFoundException - PathNotFoundException
javax.jcr.AccessDeniedException - AccessDeniedException
javax.jcr.RepositoryException - RepositoryException

eXo JCR :: Component :: Webdav Service 1.15.4-GA

Copyright © 2013 eXo Platform SAS. All Rights Reserved.