public class VersionHistoryResource extends GenericResource
| Modifier and Type | Field and Description |
|---|---|
protected VersionedResource |
versionedResource
Versioned resource.
|
protected javax.jcr.version.VersionHistory |
versionHistory
History of versions.
|
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 |
|---|
VersionHistoryResource(URI identifier,
javax.jcr.version.VersionHistory versionHistory,
VersionedResource versionedResource,
WebDavNamespaceContext namespaceContext) |
| Modifier and Type | Method and Description |
|---|---|
org.exoplatform.common.util.HierarchicalProperty |
getProperty(QName name) |
VersionResource |
getVersion(String name)
Returns the version of resouce by name.
|
Set<VersionResource> |
getVersions()
Returns all versions of a resource.
|
boolean |
isCollection() |
protected URI |
versionURI(String versionName)
Returns URI of the resource version.
|
getIdentifier, getNamespaceContext, getProperties, getType, lockDiscovery, supportedLock, supportedMethodSetprotected final javax.jcr.version.VersionHistory versionHistory
protected final VersionedResource versionedResource
public VersionHistoryResource(URI identifier, javax.jcr.version.VersionHistory versionHistory, VersionedResource versionedResource, WebDavNamespaceContext namespaceContext) throws IllegalResourceTypeException, javax.jcr.RepositoryException
identifier - resource identifierversionHistory - history of versionsversionedResource - resourcenamespaceContext - namespace contextIllegalResourceTypeException - IllegalResourceTypeExceptionjavax.jcr.RepositoryExceptionpublic 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 Set<VersionResource> getVersions() throws javax.jcr.RepositoryException, IllegalResourceTypeException
javax.jcr.RepositoryException - RepositoryExceptionIllegalResourceTypeException - IllegalResourceTypeExceptionpublic VersionResource getVersion(String name) throws javax.jcr.RepositoryException, IllegalResourceTypeException
name - version namejavax.jcr.RepositoryException - RepositoryExceptionIllegalResourceTypeException - IllegalResourceTypeExceptionCopyright © 2016 eXo Platform SAS. All Rights Reserved.