Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.webdav
Class DLWebDAVStorageImpl

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

public class DLWebDAVStorageImpl
extends BaseWebDAVStorageImpl


Field Summary
static String MS_OFFICE_2010_TEXT_XML_UTF8
           
 
Constructor Summary
DLWebDAVStorageImpl()
           
 
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  String getContentType(javax.servlet.http.HttpServletRequest request, File file, String title, String extension)
           
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 hasLock(FileEntry 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 populateServiceContext(ServiceContext serviceContext, FileEntry fileEntry)
           
 int putResource(WebDAVRequest webDavRequest)
           
 Lock refreshResourceLock(WebDAVRequest webDavRequest, String uuid, long timeout)
           
protected  Resource toResource(WebDAVRequest webDavRequest, FileEntry fileEntry, boolean appendPath)
           
protected  Resource toResource(WebDAVRequest webDavRequest, Folder folder, boolean appendPath)
           
 boolean unlockResource(WebDAVRequest webDavRequest, String token)
           
 
Methods inherited from class com.liferay.portal.kernel.webdav.BaseWebDAVStorageImpl
getPlid, getRootPath, getToken, isAddGroupPermissions, isAvailable, setRootPath, setToken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MS_OFFICE_2010_TEXT_XML_UTF8

public static final String MS_OFFICE_2010_TEXT_XML_UTF8
See Also:
Constant Field Values
Constructor Detail

DLWebDAVStorageImpl

public DLWebDAVStorageImpl()
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

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

getContentType

protected String getContentType(javax.servlet.http.HttpServletRequest request,
                                File file,
                                String title,
                                String extension)

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

hasLock

protected boolean hasLock(FileEntry fileEntry,
                          String lockUuid)
                   throws Exception
Throws:
Exception

populateServiceContext

protected void populateServiceContext(ServiceContext serviceContext,
                                      FileEntry fileEntry)
                               throws SystemException
Throws:
SystemException

toResource

protected Resource toResource(WebDAVRequest webDavRequest,
                              FileEntry fileEntry,
                              boolean appendPath)

toResource

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

Liferay 6.1.2-ce-ga3