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
public class ExistingResource extends AbstractResource
An existing resource corresponds to an existing object (folder or file) in the repository.
-
-
Field Summary
Fields Modifier and Type Field Description protected Backend
backend
static String
DC_CREATED
static String
DC_SOURCE
protected DocumentModel
doc
static String
READONLY_TOKEN
static Duration
RECENTLY_CREATED_DELTA
-
Fields inherited from class org.nuxeo.ecm.webdav.resource.AbstractResource
name, parentPath, path, request
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExistingResource(String path, DocumentModel doc, javax.servlet.http.HttpServletRequest request, Backend backend)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearMoveOriginalName()
javax.ws.rs.core.Response
copy(String dest, String overwrite)
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
getMoveOriginalName()
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
isRecentlyCreated(DocumentModel doc)
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
move(String dest, String overwrite)
javax.ws.rs.core.Response
proppatch(javax.ws.rs.core.UriInfo uriInfo)
protected void
saveMoveOriginalName()
javax.ws.rs.core.Response
unlock()
-
Methods inherited from class org.nuxeo.ecm.webdav.resource.AbstractResource
getNameFromPath, getParentPath, options
-
-
-
-
Field Detail
-
READONLY_TOKEN
public static final String READONLY_TOKEN
- See Also:
- Constant Field Values
-
DC_SOURCE
public static final String DC_SOURCE
- See Also:
- Constant Field Values
-
DC_CREATED
public static final String DC_CREATED
- See Also:
- Constant Field Values
-
RECENTLY_CREATED_DELTA
public static final Duration RECENTLY_CREATED_DELTA
-
doc
protected DocumentModel doc
-
backend
protected Backend backend
-
-
Constructor Detail
-
ExistingResource
protected ExistingResource(String path, DocumentModel doc, javax.servlet.http.HttpServletRequest request, Backend backend)
-
-
Method Detail
-
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)
-
-