com.liferay.portal.kernel.webdav
Class WebDAVUtil

java.lang.Object
  extended by com.liferay.portal.kernel.webdav.WebDAVUtil

public class WebDAVUtil
extends java.lang.Object

Author:
Brian Wing Shun Chan, Alexander Chow, Raymond Augé

Field Summary
static Namespace DAV_URI
           
static int SC_LOCKED
           
static int SC_MULTI_STATUS
           
static java.lang.String TOKEN_PREFIX
           
 
Method Summary
static void addStorage(WebDAVStorage storage)
           
static Namespace createNamespace(java.lang.String prefix, java.lang.String uri)
           
static void deleteStorage(WebDAVStorage storage)
           
static long getDepth(javax.servlet.http.HttpServletRequest request)
           
static java.lang.String getDestination(javax.servlet.http.HttpServletRequest request, java.lang.String rootPath)
           
static long getGroupId(long companyId, java.lang.String path)
           
static long getGroupId(long companyId, java.lang.String[] pathArray)
           
static java.util.List<Group> getGroups(long userId)
           
static java.util.List<Group> getGroups(User user)
           
static WebDAVUtil getInstance()
           
static java.lang.String getLockUuid(javax.servlet.http.HttpServletRequest request)
           
static java.lang.String[] getPathArray(java.lang.String path)
           
static java.lang.String[] getPathArray(java.lang.String path, boolean fixTrailing)
           
static java.lang.String getResourceName(java.lang.String[] pathArray)
           
static WebDAVStorage getStorage(java.lang.String token)
           
static java.util.Collection<java.lang.String> getStorageTokens()
           
static long getTimeout(javax.servlet.http.HttpServletRequest request)
           
static boolean isOverwrite(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DAV_URI

public static final Namespace DAV_URI

SC_LOCKED

public static final int SC_LOCKED
See Also:
Constant Field Values

SC_MULTI_STATUS

public static final int SC_MULTI_STATUS
See Also:
Constant Field Values

TOKEN_PREFIX

public static final java.lang.String TOKEN_PREFIX
See Also:
Constant Field Values
Method Detail

addStorage

public static void addStorage(WebDAVStorage storage)

createNamespace

public static Namespace createNamespace(java.lang.String prefix,
                                        java.lang.String uri)

deleteStorage

public static void deleteStorage(WebDAVStorage storage)

getDepth

public static long getDepth(javax.servlet.http.HttpServletRequest request)

getDestination

public static java.lang.String getDestination(javax.servlet.http.HttpServletRequest request,
                                              java.lang.String rootPath)

getGroupId

public static long getGroupId(long companyId,
                              java.lang.String path)
                       throws WebDAVException
Throws:
WebDAVException

getGroupId

public static long getGroupId(long companyId,
                              java.lang.String[] pathArray)
                       throws WebDAVException
Throws:
WebDAVException

getGroups

public static java.util.List<Group> getGroups(long userId)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getGroups

public static java.util.List<Group> getGroups(User user)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getInstance

public static WebDAVUtil getInstance()

getLockUuid

public static java.lang.String getLockUuid(javax.servlet.http.HttpServletRequest request)
                                    throws WebDAVException
Throws:
WebDAVException

getPathArray

public static java.lang.String[] getPathArray(java.lang.String path)

getPathArray

public static java.lang.String[] getPathArray(java.lang.String path,
                                              boolean fixTrailing)

getResourceName

public static java.lang.String getResourceName(java.lang.String[] pathArray)

getStorage

public static WebDAVStorage getStorage(java.lang.String token)

getStorageTokens

public static java.util.Collection<java.lang.String> getStorageTokens()

getTimeout

public static long getTimeout(javax.servlet.http.HttpServletRequest request)

isOverwrite

public static boolean isOverwrite(javax.servlet.http.HttpServletRequest request)