Liferay 6.2-ce-ga5

com.liferay.portal.kernel.webdav
Class BaseWebDAVStorageImpl

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

public abstract class BaseWebDAVStorageImpl
extends Object
implements WebDAVStorage


Constructor Summary
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)
           
 int deleteResource(WebDAVRequest webDAVRequest)
           
 MethodFactory getMethodFactory()
           
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
 
Methods inherited from interface com.liferay.portal.kernel.webdav.WebDAVStorage
getResource, getResources
 

Constructor Detail

BaseWebDAVStorageImpl

public BaseWebDAVStorageImpl()
Method Detail

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

getMethodFactory

public MethodFactory getMethodFactory()
Specified by:
getMethodFactory in interface WebDAVStorage

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

Liferay 6.2-ce-ga5