com.liferay.portlet.documentlibrary.webdav
Class DLWebDAVStorageImpl
java.lang.Object
com.liferay.portal.kernel.webdav.BaseWebDAVStorageImpl
com.liferay.portlet.documentlibrary.webdav.DLWebDAVStorageImpl
- All Implemented Interfaces:
- WebDAVStorage
public class DLWebDAVStorageImpl
- extends BaseWebDAVStorageImpl
Method Summary |
int |
copyCollectionResource(WebDAVRequest webDavRequest,
Resource resource,
String destination,
boolean overwrite,
long depth)
|
int |
copySimpleResource(WebDAVRequest webDavRequest,
Resource resource,
String destination,
boolean overwrite)
|
protected boolean |
deleteResource(long groupId,
long parentFolderId,
String name,
String lockUuid)
|
int |
deleteResource(WebDAVRequest webDavRequest)
|
protected List<Resource> |
getFileEntries(WebDAVRequest webDavRequest,
long parentFolderId)
|
protected long |
getFolderId(long companyId,
String[] pathArray)
|
protected long |
getFolderId(long companyId,
String[] pathArray,
boolean parent)
|
protected List<Resource> |
getFolders(WebDAVRequest webDavRequest,
long parentFolderId)
|
protected long |
getParentFolderId(long companyId,
String[] pathArray)
|
Resource |
getResource(WebDAVRequest webDavRequest)
|
List<Resource> |
getResources(WebDAVRequest webDavRequest)
|
protected boolean |
isLocked(DLFileEntry fileEntry,
String lockUuid)
|
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)
|
protected void |
publishFileEntry(DLFileEntry fileEntry)
|
int |
putResource(WebDAVRequest webDavRequest)
|
Lock |
refreshResourceLock(WebDAVRequest webDavRequest,
String uuid,
long timeout)
|
protected Resource |
toResource(WebDAVRequest webDavRequest,
DLFileEntry fileEntry,
boolean appendPath)
|
protected Resource |
toResource(WebDAVRequest webDavRequest,
DLFolder folder,
boolean appendPath)
|
boolean |
unlockResource(WebDAVRequest webDavRequest,
String token)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLWebDAVStorageImpl
public DLWebDAVStorageImpl()
copyCollectionResource
public int copyCollectionResource(WebDAVRequest webDavRequest,
Resource resource,
String destination,
boolean overwrite,
long depth)
throws WebDAVException
- Specified by:
copyCollectionResource
in interface WebDAVStorage
- Overrides:
copyCollectionResource
in class BaseWebDAVStorageImpl
- Throws:
WebDAVException
copySimpleResource
public int copySimpleResource(WebDAVRequest webDavRequest,
Resource resource,
String destination,
boolean overwrite)
throws WebDAVException
- Specified by:
copySimpleResource
in interface WebDAVStorage
- Overrides:
copySimpleResource
in class BaseWebDAVStorageImpl
- Throws:
WebDAVException
deleteResource
public int deleteResource(WebDAVRequest webDavRequest)
throws WebDAVException
- Specified by:
deleteResource
in interface WebDAVStorage
- Overrides:
deleteResource
in class BaseWebDAVStorageImpl
- Throws:
WebDAVException
getResource
public Resource getResource(WebDAVRequest webDavRequest)
throws WebDAVException
- Throws:
WebDAVException
getResources
public List<Resource> getResources(WebDAVRequest webDavRequest)
throws WebDAVException
- Throws:
WebDAVException
isSupportsClassTwo
public boolean isSupportsClassTwo()
- Specified by:
isSupportsClassTwo
in interface WebDAVStorage
- Overrides:
isSupportsClassTwo
in class BaseWebDAVStorageImpl
lockResource
public Status lockResource(WebDAVRequest webDavRequest,
String owner,
long timeout)
throws WebDAVException
- Specified by:
lockResource
in interface WebDAVStorage
- Overrides:
lockResource
in class BaseWebDAVStorageImpl
- Throws:
WebDAVException
makeCollection
public Status makeCollection(WebDAVRequest webDavRequest)
throws WebDAVException
- Specified by:
makeCollection
in interface WebDAVStorage
- Overrides:
makeCollection
in class BaseWebDAVStorageImpl
- Throws:
WebDAVException
moveCollectionResource
public int moveCollectionResource(WebDAVRequest webDavRequest,
Resource resource,
String destination,
boolean overwrite)
throws WebDAVException
- Specified by:
moveCollectionResource
in interface WebDAVStorage
- Overrides:
moveCollectionResource
in class BaseWebDAVStorageImpl
- Throws:
WebDAVException
moveSimpleResource
public int moveSimpleResource(WebDAVRequest webDavRequest,
Resource resource,
String destination,
boolean overwrite)
throws WebDAVException
- Specified by:
moveSimpleResource
in interface WebDAVStorage
- Overrides:
moveSimpleResource
in class BaseWebDAVStorageImpl
- Throws:
WebDAVException
putResource
public int putResource(WebDAVRequest webDavRequest)
throws WebDAVException
- Specified by:
putResource
in interface WebDAVStorage
- Overrides:
putResource
in class BaseWebDAVStorageImpl
- Throws:
WebDAVException
refreshResourceLock
public Lock refreshResourceLock(WebDAVRequest webDavRequest,
String uuid,
long timeout)
throws WebDAVException
- Specified by:
refreshResourceLock
in interface WebDAVStorage
- Overrides:
refreshResourceLock
in class BaseWebDAVStorageImpl
- Throws:
WebDAVException
unlockResource
public boolean unlockResource(WebDAVRequest webDavRequest,
String token)
throws WebDAVException
- Specified by:
unlockResource
in interface WebDAVStorage
- Overrides:
unlockResource
in class BaseWebDAVStorageImpl
- Throws:
WebDAVException
deleteResource
protected boolean deleteResource(long groupId,
long parentFolderId,
String name,
String lockUuid)
throws Exception
- Throws:
Exception
getFileEntries
protected List<Resource> getFileEntries(WebDAVRequest webDavRequest,
long parentFolderId)
throws Exception
- Throws:
Exception
getFolderId
protected long getFolderId(long companyId,
String[] pathArray)
throws Exception
- Throws:
Exception
getFolderId
protected long getFolderId(long companyId,
String[] pathArray,
boolean parent)
throws Exception
- Throws:
Exception
getFolders
protected List<Resource> getFolders(WebDAVRequest webDavRequest,
long parentFolderId)
throws Exception
- Throws:
Exception
getParentFolderId
protected long getParentFolderId(long companyId,
String[] pathArray)
throws Exception
- Throws:
Exception
isLocked
protected boolean isLocked(DLFileEntry fileEntry,
String lockUuid)
throws Exception
- Throws:
Exception
publishFileEntry
protected void publishFileEntry(DLFileEntry fileEntry)
throws Exception
- Throws:
Exception
toResource
protected Resource toResource(WebDAVRequest webDavRequest,
DLFileEntry fileEntry,
boolean appendPath)
toResource
protected Resource toResource(WebDAVRequest webDavRequest,
DLFolder folder,
boolean appendPath)