public abstract class BaseWebDAVStorageImpl extends Object implements WebDAVStorage
Constructor and Description |
---|
BaseWebDAVStorageImpl() |
Modifier and Type | Method and Description |
---|---|
int |
copyCollectionResource(WebDAVRequest webDAVRequest,
Resource resource,
String destination,
boolean overwrite,
long depth) |
int |
copySimpleResource(WebDAVRequest webDAVRequest,
Resource resource,
String destination,
boolean overwrite) |
int |
deleteResource(WebDAVRequest webDAVRequest) |
MethodFactory |
getMethodFactory() |
protected long |
getPlid(long groupId) |
String |
getRootPath() |
String |
getToken() |
protected boolean |
isAddGroupPermissions(long groupId) |
boolean |
isAvailable(WebDAVRequest webDAVRequest) |
boolean |
isSupportsClassTwo() |
Status |
lockResource(WebDAVRequest webDAVRequest,
String owner,
long timeout) |
Status |
makeCollection(WebDAVRequest webDAVRequest) |
int |
moveCollectionResource(WebDAVRequest webDAVRequest,
Resource resource,
String destination,
boolean overwrite) |
int |
moveSimpleResource(WebDAVRequest webDAVRequest,
Resource resource,
String destination,
boolean overwrite) |
int |
putResource(WebDAVRequest webDAVRequest) |
Lock |
refreshResourceLock(WebDAVRequest webDAVRequest,
String uuid,
long timeout) |
void |
setRootPath(String rootPath) |
void |
setToken(String token) |
boolean |
unlockResource(WebDAVRequest webDAVRequest,
String token) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResource, getResources
public int copyCollectionResource(WebDAVRequest webDAVRequest, Resource resource, String destination, boolean overwrite, long depth) throws WebDAVException
copyCollectionResource
in interface WebDAVStorage
WebDAVException
public int copySimpleResource(WebDAVRequest webDAVRequest, Resource resource, String destination, boolean overwrite) throws WebDAVException
copySimpleResource
in interface WebDAVStorage
WebDAVException
public int deleteResource(WebDAVRequest webDAVRequest) throws WebDAVException
deleteResource
in interface WebDAVStorage
WebDAVException
public MethodFactory getMethodFactory()
getMethodFactory
in interface WebDAVStorage
public String getRootPath()
getRootPath
in interface WebDAVStorage
public String getToken()
getToken
in interface WebDAVStorage
public boolean isAvailable(WebDAVRequest webDAVRequest) throws WebDAVException
isAvailable
in interface WebDAVStorage
WebDAVException
public boolean isSupportsClassTwo()
isSupportsClassTwo
in interface WebDAVStorage
public Status lockResource(WebDAVRequest webDAVRequest, String owner, long timeout) throws WebDAVException
lockResource
in interface WebDAVStorage
WebDAVException
public Status makeCollection(WebDAVRequest webDAVRequest) throws WebDAVException
makeCollection
in interface WebDAVStorage
WebDAVException
public int moveCollectionResource(WebDAVRequest webDAVRequest, Resource resource, String destination, boolean overwrite) throws WebDAVException
moveCollectionResource
in interface WebDAVStorage
WebDAVException
public int moveSimpleResource(WebDAVRequest webDAVRequest, Resource resource, String destination, boolean overwrite) throws WebDAVException
moveSimpleResource
in interface WebDAVStorage
WebDAVException
public int putResource(WebDAVRequest webDAVRequest) throws WebDAVException
putResource
in interface WebDAVStorage
WebDAVException
public Lock refreshResourceLock(WebDAVRequest webDAVRequest, String uuid, long timeout) throws WebDAVException
refreshResourceLock
in interface WebDAVStorage
WebDAVException
public void setRootPath(String rootPath)
setRootPath
in interface WebDAVStorage
public void setToken(String token)
setToken
in interface WebDAVStorage
public boolean unlockResource(WebDAVRequest webDAVRequest, String token) throws WebDAVException
unlockResource
in interface WebDAVStorage
WebDAVException
protected long getPlid(long groupId)
protected boolean isAddGroupPermissions(long groupId) throws Exception
Exception