Class VersionHistoryResource

java.lang.Object
org.exoplatform.services.jcr.webdav.resource.GenericResource
org.exoplatform.services.jcr.webdav.resource.VersionHistoryResource
All Implemented Interfaces:
Resource, PropertyConstants

public class VersionHistoryResource extends GenericResource
Created by The eXo Platform SARL .
Version:
$Id: $
Author:
Gennady Azarenkov
  • Field Details

    • versionHistory

      protected final javax.jcr.version.VersionHistory versionHistory
      History of versions.
    • versionedResource

      protected final VersionedResource versionedResource
      Versioned resource.
  • Constructor Details

  • Method Details

    • getProperty

      public org.exoplatform.common.util.HierarchicalProperty getProperty(QName name) throws javax.jcr.PathNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
      Parameters:
      name - property name
      Returns:
      property by its name
      Throws:
      javax.jcr.PathNotFoundException - PathNotFoundException
      javax.jcr.AccessDeniedException - AccessDeniedException
      javax.jcr.RepositoryException - RepositoryException
    • isCollection

      public final boolean isCollection()
      Returns:
      true if this is collection-able resource - i.e. this resource may contain other resources
    • getVersions

      public Set<VersionResource> getVersions() throws javax.jcr.RepositoryException, IllegalResourceTypeException
      Returns all versions of a resource.
      Returns:
      all versions of a resource
      Throws:
      javax.jcr.RepositoryException - RepositoryException
      IllegalResourceTypeException - IllegalResourceTypeException
    • getVersion

      public VersionResource getVersion(String name) throws javax.jcr.RepositoryException, IllegalResourceTypeException
      Returns the version of resouce by name.
      Parameters:
      name - version name
      Returns:
      version of a resource
      Throws:
      javax.jcr.RepositoryException - RepositoryException
      IllegalResourceTypeException - IllegalResourceTypeException
    • versionURI

      protected final URI versionURI(String versionName)
      Returns URI of the resource version.
      Parameters:
      versionName - version name
      Returns:
      URI of the resource version