com.liferay.portal.kernel.webdav
Class BaseWebDAVStorageImpl
java.lang.Object
com.liferay.portal.kernel.webdav.BaseWebDAVStorageImpl
- All Implemented Interfaces:
- WebDAVStorage
- Direct Known Subclasses:
- CompanyWebDAVStorageImpl, DLWebDAVStorageImpl, GroupWebDAVStorageImpl, JournalWebDAVStorageImpl
public abstract class BaseWebDAVStorageImpl
- extends Object
- implements WebDAVStorage
Method Summary |
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)
|
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)
|
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,
String destination,
boolean overwrite,
long depth)
throws WebDAVException
- Specified by:
copyCollectionResource
in interface WebDAVStorage
- Throws:
WebDAVException
copySimpleResource
public int copySimpleResource(WebDAVRequest webDavRequest,
Resource resource,
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 String getRootPath()
- Specified by:
getRootPath
in interface WebDAVStorage
getToken
public 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,
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,
String destination,
boolean overwrite)
throws WebDAVException
- Specified by:
moveCollectionResource
in interface WebDAVStorage
- Throws:
WebDAVException
moveSimpleResource
public int moveSimpleResource(WebDAVRequest webDavRequest,
Resource resource,
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,
String uuid,
long timeout)
throws WebDAVException
- Specified by:
refreshResourceLock
in interface WebDAVStorage
- Throws:
WebDAVException
setRootPath
public void setRootPath(String rootPath)
- Specified by:
setRootPath
in interface WebDAVStorage
setToken
public void setToken(String token)
- Specified by:
setToken
in interface WebDAVStorage
unlockResource
public boolean unlockResource(WebDAVRequest webDavRequest,
String token)
throws WebDAVException
- Specified by:
unlockResource
in interface WebDAVStorage
- Throws:
WebDAVException
getPlid
protected long getPlid(long groupId)
throws SystemException
- Throws:
SystemException
isAddGroupPermissions
protected boolean isAddGroupPermissions(long groupId)
throws Exception
- Throws:
Exception