com.liferay.portal.webdav
Class BaseWebDAVStorageImpl

java.lang.Object
  extended by com.liferay.portal.webdav.BaseWebDAVStorageImpl
All Implemented Interfaces:
WebDAVStorage
Direct Known Subclasses:
CompanyWebDAVStorageImpl, DLWebDAVStorageImpl, GroupWebDAVStorageImpl, IGWebDAVStorageImpl, JournalWebDAVStorageImpl

public abstract class BaseWebDAVStorageImpl
extends java.lang.Object
implements WebDAVStorage

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
BaseWebDAVStorageImpl()
           
 
Method Summary
 int copyCollectionResource(WebDAVRequest webDavReq, Resource resource, java.lang.String destination, boolean overwrite, long depth)
           
 int copySimpleResource(WebDAVRequest webDavReq, Resource resource, java.lang.String destination, boolean overwrite)
           
 int deleteResource(WebDAVRequest webDavReq)
           
protected  long getPlid(long groupId)
           
 java.lang.String getRootPath()
           
 java.lang.String getToken()
           
 boolean isAvailable(WebDAVRequest webDavReq)
           
 Status makeCollection(WebDAVRequest webDavReq)
           
 int moveCollectionResource(WebDAVRequest webDavReq, Resource resource, java.lang.String destination, boolean overwrite)
           
 int moveSimpleResource(WebDAVRequest webDavReq, Resource resource, java.lang.String destination, boolean overwrite)
           
 int putResource(WebDAVRequest webDavReq)
           
 void setRootPath(java.lang.String rootPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.webdav.WebDAVStorage
getResource, getResources
 

Constructor Detail

BaseWebDAVStorageImpl

public BaseWebDAVStorageImpl()
Method Detail

copyCollectionResource

public int copyCollectionResource(WebDAVRequest webDavReq,
                                  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 webDavReq,
                              Resource resource,
                              java.lang.String destination,
                              boolean overwrite)
                       throws WebDAVException
Specified by:
copySimpleResource in interface WebDAVStorage
Throws:
WebDAVException

deleteResource

public int deleteResource(WebDAVRequest webDavReq)
                   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()

isAvailable

public boolean isAvailable(WebDAVRequest webDavReq)
                    throws WebDAVException
Specified by:
isAvailable in interface WebDAVStorage
Throws:
WebDAVException

makeCollection

public Status makeCollection(WebDAVRequest webDavReq)
                      throws WebDAVException
Specified by:
makeCollection in interface WebDAVStorage
Throws:
WebDAVException

moveCollectionResource

public int moveCollectionResource(WebDAVRequest webDavReq,
                                  Resource resource,
                                  java.lang.String destination,
                                  boolean overwrite)
                           throws WebDAVException
Specified by:
moveCollectionResource in interface WebDAVStorage
Throws:
WebDAVException

moveSimpleResource

public int moveSimpleResource(WebDAVRequest webDavReq,
                              Resource resource,
                              java.lang.String destination,
                              boolean overwrite)
                       throws WebDAVException
Specified by:
moveSimpleResource in interface WebDAVStorage
Throws:
WebDAVException

putResource

public int putResource(WebDAVRequest webDavReq)
                throws WebDAVException
Specified by:
putResource in interface WebDAVStorage
Throws:
WebDAVException

setRootPath

public void setRootPath(java.lang.String rootPath)
Specified by:
setRootPath in interface WebDAVStorage

getPlid

protected long getPlid(long groupId)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException