com.liferay.portlet.documentlibrary.webdav
Class DLWebDAVStorageImpl
java.lang.Object
com.liferay.portal.webdav.BaseWebDAVStorageImpl
com.liferay.portlet.documentlibrary.webdav.DLWebDAVStorageImpl
- All Implemented Interfaces:
- WebDAVStorage
public class DLWebDAVStorageImpl
- extends BaseWebDAVStorageImpl
View Source
- Author:
- Brian Wing Shun Chan, Alexander Chow
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)
|
protected boolean |
deleteResource(long groupId,
long parentFolderId,
java.lang.String name)
|
int |
deleteResource(WebDAVRequest webDavRequest)
|
protected java.util.List<Resource> |
getFileEntries(WebDAVRequest webDavRequest,
long parentFolderId)
|
protected long |
getFolderId(java.lang.String[] pathArray)
|
protected long |
getFolderId(java.lang.String[] pathArray,
boolean parent)
|
protected java.util.List<Resource> |
getFolders(WebDAVRequest webDavRequest,
long parentFolderId)
|
protected long |
getParentFolderId(java.lang.String[] pathArray)
|
Resource |
getResource(WebDAVRequest webDavRequest)
|
java.util.List<Resource> |
getResources(WebDAVRequest webDavRequest)
|
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)
|
protected Resource |
toResource(WebDAVRequest webDavRequest,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
boolean appendPath)
|
protected Resource |
toResource(WebDAVRequest webDavRequest,
com.liferay.portlet.documentlibrary.model.DLFolder folder,
boolean appendPath)
|
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,
java.lang.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,
java.lang.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 java.util.List<Resource> getResources(WebDAVRequest webDavRequest)
throws WebDAVException
- 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,
java.lang.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,
java.lang.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
deleteResource
protected boolean deleteResource(long groupId,
long parentFolderId,
java.lang.String name)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
getFileEntries
protected java.util.List<Resource> getFileEntries(WebDAVRequest webDavRequest,
long parentFolderId)
throws java.lang.Exception
- Throws:
java.lang.Exception
getFolderId
protected long getFolderId(java.lang.String[] pathArray)
throws java.lang.Exception
- Throws:
java.lang.Exception
getFolderId
protected long getFolderId(java.lang.String[] pathArray,
boolean parent)
throws java.lang.Exception
- Throws:
java.lang.Exception
getFolders
protected java.util.List<Resource> getFolders(WebDAVRequest webDavRequest,
long parentFolderId)
throws java.lang.Exception
- Throws:
java.lang.Exception
getParentFolderId
protected long getParentFolderId(java.lang.String[] pathArray)
throws java.lang.Exception
- Throws:
java.lang.Exception
toResource
protected Resource toResource(WebDAVRequest webDavRequest,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
boolean appendPath)
toResource
protected Resource toResource(WebDAVRequest webDavRequest,
com.liferay.portlet.documentlibrary.model.DLFolder folder,
boolean appendPath)