public class VersionResource extends GenericResource
| Modifier and Type | Field and Description |
|---|---|
protected javax.jcr.version.Version |
version
resource version.
|
protected VersionedResource |
versionedResource
versioned resource.
|
identifier, namespaceContext, PRESET_PROP, typeCOLLECTION, FILE, NULL, VERSION, VERSION_HISTORY, VERSIONED_COLLECTION, VERSIONED_FILECHILDCOUNT, 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 and Description |
|---|
VersionResource(URI identifier,
VersionedResource versionedResource,
javax.jcr.version.Version version,
WebDavNamespaceContext namespaceContext) |
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Node |
contentNode()
Returns content node.
|
InputStream |
getContentAsStream()
Returns the content of node as a stream.
|
org.exoplatform.common.util.HierarchicalProperty |
getProperty(QName name) |
boolean |
isCollection() |
getIdentifier, getNamespaceContext, getProperties, getType, lockDiscovery, supportedLock, supportedMethodSetprotected final javax.jcr.version.Version version
protected final VersionedResource versionedResource
public VersionResource(URI identifier, VersionedResource versionedResource, javax.jcr.version.Version version, WebDavNamespaceContext namespaceContext)
identifier - resource identifierversionedResource - resourceversion - versionnamespaceContext - namespace contextpublic org.exoplatform.common.util.HierarchicalProperty getProperty(QName name) throws javax.jcr.PathNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
name - property namejavax.jcr.PathNotFoundException - PathNotFoundExceptionjavax.jcr.AccessDeniedException - AccessDeniedExceptionjavax.jcr.RepositoryException - RepositoryExceptionpublic final boolean isCollection()
public javax.jcr.Node contentNode()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - RepositoryExceptionpublic InputStream getContentAsStream() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - RepositoryExceptionCopyright © 2016 eXo Platform SAS. All Rights Reserved.