Class ExistingResource

java.lang.Object
org.nuxeo.ecm.webdav.resource.AbstractResource
org.nuxeo.ecm.webdav.resource.ExistingResource
Direct Known Subclasses:
FileResource, FolderResource

public class ExistingResource extends AbstractResource
An existing resource corresponds to an existing object (folder or file) in the repository.
  • Field Details

  • Constructor Details

    • ExistingResource

      protected ExistingResource(String path, DocumentModel doc, javax.servlet.http.HttpServletRequest request, Backend backend)
  • Method Details

    • delete

      public javax.ws.rs.core.Response delete()
    • copy

      public javax.ws.rs.core.Response copy(@HeaderParam("Destination") String dest, @HeaderParam("Overwrite") String overwrite)
    • move

      public javax.ws.rs.core.Response move(@HeaderParam("Destination") String dest, @HeaderParam("Overwrite") String overwrite)
    • proppatch

      public javax.ws.rs.core.Response proppatch(@Context javax.ws.rs.core.UriInfo uriInfo)
    • mkcol

      public javax.ws.rs.core.Response mkcol()
      We can't MKCOL over an existing resource.
    • head

      public javax.ws.rs.core.Response head()
    • lock

      public javax.ws.rs.core.Response lock(@Context javax.ws.rs.core.UriInfo uriInfo)
    • unlock

      public javax.ws.rs.core.Response unlock()
    • getLockDiscovery

      protected net.java.dev.webdav.jaxrs.xml.properties.LockDiscovery getLockDiscovery(DocumentModel doc, javax.ws.rs.core.UriInfo uriInfo)
    • getPropStatBuilderExt

      protected PropStatBuilderExt getPropStatBuilderExt(DocumentModel doc, javax.ws.rs.core.UriInfo uriInfo)
    • getTimePropertyWrapper

      protected Date getTimePropertyWrapper(DocumentModel doc, String name)
    • isMoveTargetCandidate

      protected boolean isMoveTargetCandidate(String path)
    • saveMoveOriginalName

      protected void saveMoveOriginalName()
    • getMoveOriginalName

      protected String getMoveOriginalName()
    • clearMoveOriginalName

      protected void clearMoveOriginalName()
    • isRecentlyCreated

      protected boolean isRecentlyCreated(DocumentModel doc)