Liferay 6.0.5

com.liferay.portlet.imagegallery.webdav
Class IGWebDAVStorageImpl

java.lang.Object
  extended by com.liferay.portal.kernel.webdav.BaseWebDAVStorageImpl
      extended by com.liferay.portlet.imagegallery.webdav.IGWebDAVStorageImpl
All Implemented Interfaces:
WebDAVStorage

public class IGWebDAVStorageImpl
extends BaseWebDAVStorageImpl


Constructor Summary
IGWebDAVStorageImpl()
           
 
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)
           
 int deleteResource(WebDAVRequest webDavRequest)
           
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  List<Resource> getImages(WebDAVRequest webDavRequest, long parentFolderId)
           
protected  long getParentFolderId(long companyId, String[] pathArray)
           
 Resource getResource(WebDAVRequest webDavRequest)
           
 List<Resource> getResources(WebDAVRequest webDavRequest)
           
 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)
           
protected  Resource toResource(WebDAVRequest webDavRequest, IGFolder folder, boolean appendPath)
           
protected  Resource toResource(WebDAVRequest webDavRequest, IGImage image, boolean appendPath)
           
 
Methods inherited from class com.liferay.portal.kernel.webdav.BaseWebDAVStorageImpl
getPlid, getRootPath, getToken, isAddCommunityPermissions, isAvailable, isSupportsClassTwo, lockResource, refreshResourceLock, setRootPath, setToken, unlockResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IGWebDAVStorageImpl

public IGWebDAVStorageImpl()
Method Detail

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

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

deleteResource

protected boolean deleteResource(long groupId,
                                 long parentFolderId,
                                 String name)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getFolders

protected List<Resource> getFolders(WebDAVRequest webDavRequest,
                                    long parentFolderId)
                             throws Exception
Throws:
Exception

getImages

protected List<Resource> getImages(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

getParentFolderId

protected long getParentFolderId(long companyId,
                                 String[] pathArray)
                          throws Exception
Throws:
Exception

toResource

protected Resource toResource(WebDAVRequest webDavRequest,
                              IGImage image,
                              boolean appendPath)

toResource

protected Resource toResource(WebDAVRequest webDavRequest,
                              IGFolder folder,
                              boolean appendPath)

Liferay 6.0.5