com.liferay.portal.webdav
Class BaseWebDAVStorageImpl
java.lang.Object
com.liferay.portal.webdav.BaseWebDAVStorageImpl
- All Implemented Interfaces:
- WebDAVStorage
public abstract class BaseWebDAVStorageImpl
- extends java.lang.Object
- implements WebDAVStorage
View Source
- Author:
- Brian Wing Shun Chan
|
Method Summary |
int |
copyCollectionResource(WebDAVRequest webDavRequest,
Resource resource,
java.lang.String destination,
boolean overwrite,
long depth)
|
int |
copySimpleResource(WebDAVRequest webDavRequest,
Resource resource,
java.lang.String destination,
boolean overwrite)
|
int |
deleteResource(WebDAVRequest webDavRequest)
|
protected long |
getPlid(long groupId)
|
java.lang.String |
getRootPath()
|
java.lang.String |
getToken()
|
boolean |
isAvailable(WebDAVRequest webDavRequest)
|
boolean |
isSupportsClassTwo()
|
Status |
lockResource(WebDAVRequest webDavRequest,
java.lang.String owner,
long timeout)
|
Status |
makeCollection(WebDAVRequest webDavRequest)
|
int |
moveCollectionResource(WebDAVRequest webDavRequest,
Resource resource,
java.lang.String destination,
boolean overwrite)
|
int |
moveSimpleResource(WebDAVRequest webDavRequest,
Resource resource,
java.lang.String destination,
boolean overwrite)
|
int |
putResource(WebDAVRequest webDavRequest)
|
Lock |
refreshResourceLock(WebDAVRequest webDavRequest,
java.lang.String uuid,
long timeout)
|
void |
setRootPath(java.lang.String rootPath)
|
void |
setToken(java.lang.String token)
|
boolean |
unlockResource(WebDAVRequest webDavRequest,
java.lang.String token)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseWebDAVStorageImpl
public BaseWebDAVStorageImpl()
copyCollectionResource
public int copyCollectionResource(WebDAVRequest webDavRequest,
Resource resource,
java.lang.String destination,
boolean overwrite,
long depth)
throws WebDAVException
- Specified by:
copyCollectionResource in interface WebDAVStorage
- Throws:
WebDAVException
copySimpleResource
public int copySimpleResource(WebDAVRequest webDavRequest,
Resource resource,
java.lang.String destination,
boolean overwrite)
throws WebDAVException
- Specified by:
copySimpleResource in interface WebDAVStorage
- Throws:
WebDAVException
deleteResource
public int deleteResource(WebDAVRequest webDavRequest)
throws WebDAVException
- Specified by:
deleteResource in interface WebDAVStorage
- Throws:
WebDAVException
getRootPath
public java.lang.String getRootPath()
- Specified by:
getRootPath in interface WebDAVStorage
getToken
public java.lang.String getToken()
- Specified by:
getToken in interface WebDAVStorage
isAvailable
public boolean isAvailable(WebDAVRequest webDavRequest)
throws WebDAVException
- Specified by:
isAvailable in interface WebDAVStorage
- Throws:
WebDAVException
isSupportsClassTwo
public boolean isSupportsClassTwo()
- Specified by:
isSupportsClassTwo in interface WebDAVStorage
lockResource
public Status lockResource(WebDAVRequest webDavRequest,
java.lang.String owner,
long timeout)
throws WebDAVException
- Specified by:
lockResource in interface WebDAVStorage
- Throws:
WebDAVException
makeCollection
public Status makeCollection(WebDAVRequest webDavRequest)
throws WebDAVException
- Specified by:
makeCollection in interface WebDAVStorage
- Throws:
WebDAVException
moveCollectionResource
public int moveCollectionResource(WebDAVRequest webDavRequest,
Resource resource,
java.lang.String destination,
boolean overwrite)
throws WebDAVException
- Specified by:
moveCollectionResource in interface WebDAVStorage
- Throws:
WebDAVException
moveSimpleResource
public int moveSimpleResource(WebDAVRequest webDavRequest,
Resource resource,
java.lang.String destination,
boolean overwrite)
throws WebDAVException
- Specified by:
moveSimpleResource in interface WebDAVStorage
- Throws:
WebDAVException
putResource
public int putResource(WebDAVRequest webDavRequest)
throws WebDAVException
- Specified by:
putResource in interface WebDAVStorage
- Throws:
WebDAVException
refreshResourceLock
public Lock refreshResourceLock(WebDAVRequest webDavRequest,
java.lang.String uuid,
long timeout)
throws WebDAVException
- Specified by:
refreshResourceLock in interface WebDAVStorage
- Throws:
WebDAVException
setRootPath
public void setRootPath(java.lang.String rootPath)
- Specified by:
setRootPath in interface WebDAVStorage
setToken
public void setToken(java.lang.String token)
- Specified by:
setToken in interface WebDAVStorage
unlockResource
public boolean unlockResource(WebDAVRequest webDavRequest,
java.lang.String token)
throws WebDAVException
- Specified by:
unlockResource in interface WebDAVStorage
- Throws:
WebDAVException
getPlid
protected long getPlid(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException