Package org.nuxeo.ecm.webdav.resource
Class ExistingResource
java.lang.Object
org.nuxeo.ecm.webdav.resource.AbstractResource
org.nuxeo.ecm.webdav.resource.ExistingResource
- Direct Known Subclasses:
FileResource
,FolderResource
An existing resource corresponds to an existing object (folder or file) in the repository.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Backend
static final String
static final String
protected DocumentModel
static final String
static final Duration
Fields inherited from class org.nuxeo.ecm.webdav.resource.AbstractResource
name, parentPath, path, request
-
Constructor Summary
ModifierConstructorDescriptionprotected
ExistingResource
(String path, DocumentModel doc, javax.servlet.http.HttpServletRequest request, Backend backend) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
javax.ws.rs.core.Response
javax.ws.rs.core.Response
delete()
protected net.java.dev.webdav.jaxrs.xml.properties.LockDiscovery
getLockDiscovery
(DocumentModel doc, javax.ws.rs.core.UriInfo uriInfo) protected String
protected PropStatBuilderExt
getPropStatBuilderExt
(DocumentModel doc, javax.ws.rs.core.UriInfo uriInfo) protected Date
getTimePropertyWrapper
(DocumentModel doc, String name) javax.ws.rs.core.Response
head()
protected boolean
isMoveTargetCandidate
(String path) protected boolean
javax.ws.rs.core.Response
lock
(javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.Response
mkcol()
We can't MKCOL over an existing resource.javax.ws.rs.core.Response
javax.ws.rs.core.Response
proppatch
(javax.ws.rs.core.UriInfo uriInfo) protected void
javax.ws.rs.core.Response
unlock()
Methods inherited from class org.nuxeo.ecm.webdav.resource.AbstractResource
getNameFromPath, getParentPath, options
-
Field Details
-
READONLY_TOKEN
- See Also:
-
DC_SOURCE
- See Also:
-
DC_CREATED
- See Also:
-
RECENTLY_CREATED_DELTA
-
doc
-
backend
-
-
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
-
move
-
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
-
isMoveTargetCandidate
-
saveMoveOriginalName
protected void saveMoveOriginalName() -
getMoveOriginalName
-
clearMoveOriginalName
protected void clearMoveOriginalName() -
isRecentlyCreated
-