Class VersionedFileResource
- java.lang.Object
-
- org.exoplatform.services.jcr.webdav.resource.GenericResource
-
- org.exoplatform.services.jcr.webdav.resource.FileResource
-
- org.exoplatform.services.jcr.webdav.resource.VersionedFileResource
-
- All Implemented Interfaces:
Resource,VersionedResource,DeltaVConstants,PropertyConstants
public class VersionedFileResource extends FileResource implements VersionedResource
Created by The eXo Platform SARL .
Versioned file resource (nt:file+mix:versionable/nt:resource )- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
-
Field Summary
-
Fields inherited from class org.exoplatform.services.jcr.webdav.resource.FileResource
CONTENT_SKIP, FILE_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.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
-
Fields inherited from interface org.exoplatform.services.jcr.webdav.resource.Resource
COLLECTION, FILE, NULL, VERSION, VERSION_HISTORY, VERSIONED_COLLECTION, VERSIONED_FILE
-
-
Constructor Summary
Constructors Constructor Description VersionedFileResource(URI identifier, javax.jcr.Node node, WebDavNamespaceContext namespaceContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.exoplatform.common.util.HierarchicalPropertygetProperty(QName name)VersionHistoryResourcegetVersionHistory()protected URIversionHistoryURI()Resturns version history URI.-
Methods inherited from class org.exoplatform.services.jcr.webdav.resource.FileResource
contentNode, dataProperty, getContentAsStream, getContentAsText, getProperties, isCollection, isTextContent
-
Methods inherited from class org.exoplatform.services.jcr.webdav.resource.GenericResource
decodeValue, 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
-
VersionedFileResource
public VersionedFileResource(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 Detail
-
getVersionHistory
public VersionHistoryResource getVersionHistory() throws javax.jcr.RepositoryException, IllegalResourceTypeException
- Specified by:
getVersionHistoryin interfaceVersionedResource- Returns:
- version history
- Throws:
javax.jcr.RepositoryException-RepositoryExceptionIllegalResourceTypeException-IllegalResourceTypeException
-
versionHistoryURI
protected final URI versionHistoryURI()
Resturns version history URI.- Returns:
- version history URI
-
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 classFileResource- Parameters:
name- property name- Returns:
- property by its name
- Throws:
javax.jcr.PathNotFoundException-PathNotFoundExceptionjavax.jcr.AccessDeniedException-AccessDeniedExceptionjavax.jcr.RepositoryException-RepositoryException
-
-