public class ExistingResource extends AbstractResource
Modifier and Type | Field and Description |
---|---|
protected Backend |
backend |
static String |
DC_CREATED |
static String |
DC_SOURCE |
protected DocumentModel |
doc |
static String |
READONLY_TOKEN |
static Duration |
RECENTLY_CREATED_DELTA |
name, parentPath, path, request
Modifier | Constructor and Description |
---|---|
protected |
ExistingResource(String path,
DocumentModel doc,
javax.servlet.http.HttpServletRequest request,
Backend backend) |
Modifier and Type | Method and 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() |
getNameFromPath, getParentPath, options
public static final String READONLY_TOKEN
public static final String DC_SOURCE
public static final String DC_CREATED
public static final Duration RECENTLY_CREATED_DELTA
protected DocumentModel doc
protected ExistingResource(String path, DocumentModel doc, javax.servlet.http.HttpServletRequest request, Backend backend)
public javax.ws.rs.core.Response delete()
public javax.ws.rs.core.Response copy(@HeaderParam(value="Destination") String dest, @HeaderParam(value="Overwrite") String overwrite)
public javax.ws.rs.core.Response move(@HeaderParam(value="Destination") String dest, @HeaderParam(value="Overwrite") String overwrite)
public javax.ws.rs.core.Response proppatch(@Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response mkcol()
public javax.ws.rs.core.Response head()
public javax.ws.rs.core.Response lock(@Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response unlock()
protected net.java.dev.webdav.jaxrs.xml.properties.LockDiscovery getLockDiscovery(DocumentModel doc, javax.ws.rs.core.UriInfo uriInfo)
protected PropStatBuilderExt getPropStatBuilderExt(DocumentModel doc, javax.ws.rs.core.UriInfo uriInfo) throws URISyntaxException
URISyntaxException
protected Date getTimePropertyWrapper(DocumentModel doc, String name)
protected boolean isMoveTargetCandidate(String path)
protected void saveMoveOriginalName()
protected String getMoveOriginalName()
protected void clearMoveOriginalName()
protected boolean isRecentlyCreated(DocumentModel doc)
Copyright © 2018 Nuxeo. All rights reserved.