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 Backendbackendstatic StringDC_CREATEDstatic StringDC_SOURCEprotected DocumentModeldocstatic StringREADONLY_TOKENstatic DurationRECENTLY_CREATED_DELTA-
Fields inherited from class org.nuxeo.ecm.webdav.resource.AbstractResource
name, parentPath, path, request
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExistingResource(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 voidclearMoveOriginalName()javax.ws.rs.core.Responsecopy(String dest, String overwrite)javax.ws.rs.core.Responsedelete()protected net.java.dev.webdav.jaxrs.xml.properties.LockDiscoverygetLockDiscovery(DocumentModel doc, javax.ws.rs.core.UriInfo uriInfo)protected StringgetMoveOriginalName()protected PropStatBuilderExtgetPropStatBuilderExt(DocumentModel doc, javax.ws.rs.core.UriInfo uriInfo)protected DategetTimePropertyWrapper(DocumentModel doc, String name)javax.ws.rs.core.Responsehead()protected booleanisMoveTargetCandidate(String path)protected booleanisRecentlyCreated(DocumentModel doc)javax.ws.rs.core.Responselock(javax.ws.rs.core.UriInfo uriInfo)javax.ws.rs.core.Responsemkcol()We can't MKCOL over an existing resource.javax.ws.rs.core.Responsemove(String dest, String overwrite)javax.ws.rs.core.Responseproppatch(javax.ws.rs.core.UriInfo uriInfo)protected voidsaveMoveOriginalName()javax.ws.rs.core.Responseunlock()-
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)
-
-