Class VersionResource

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

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

    • version

      protected final javax.jcr.version.Version version
      resource version.
    • versionedResource

      protected final VersionedResource versionedResource
      versioned resource.
  • Constructor Details

    • VersionResource

      public VersionResource(URI identifier, VersionedResource versionedResource, javax.jcr.version.Version version, WebDavNamespaceContext namespaceContext)
      Parameters:
      identifier - resource identifier
      versionedResource - resource
      version - version
      namespaceContext - namespace context
  • 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
    • contentNode

      public javax.jcr.Node contentNode() throws javax.jcr.RepositoryException
      Returns content node.
      Returns:
      content node
      Throws:
      javax.jcr.RepositoryException - RepositoryException
    • getContentAsStream

      public InputStream getContentAsStream() throws javax.jcr.RepositoryException
      Returns the content of node as a stream.
      Returns:
      content as stream
      Throws:
      javax.jcr.RepositoryException - RepositoryException