Liferay 6.0.5

com.liferay.portal.kernel.webdav
Class WebDAVUtil

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

public class WebDAVUtil
extends Object


Field Summary
static Namespace DAV_URI
           
static int SC_LOCKED
           
static int SC_MULTI_STATUS
           
static String TOKEN_PREFIX
           
 
Method Summary
static void addStorage(WebDAVStorage storage)
           
static void deleteStorage(WebDAVStorage storage)
           
static long getDepth(javax.servlet.http.HttpServletRequest request)
           
static String getDestination(javax.servlet.http.HttpServletRequest request, String rootPath)
           
static long getGroupId(long companyId, String path)
           
static long getGroupId(long companyId, String[] pathArray)
           
static List<Group> getGroups(long userId)
           
static List<Group> getGroups(User user)
           
static String getLockUuid(javax.servlet.http.HttpServletRequest request)
           
static String[] getPathArray(String path)
           
static String[] getPathArray(String path, boolean fixTrailing)
           
static String getResourceName(String[] pathArray)
           
static WebDAVStorage getStorage(String token)
           
static Collection<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_MULTI_STATUS

public static final int SC_MULTI_STATUS
See Also:
Constant Field Values

SC_LOCKED

public static final int SC_LOCKED
See Also:
Constant Field Values

TOKEN_PREFIX

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

addStorage

public static void addStorage(WebDAVStorage storage)

deleteStorage

public static void deleteStorage(WebDAVStorage storage)

getDepth

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

getDestination

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

getGroupId

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

getGroupId

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

getGroups

public static List<Group> getGroups(long userId)
                             throws Exception
Throws:
Exception

getGroups

public static List<Group> getGroups(User user)
                             throws Exception
Throws:
Exception

getLockUuid

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

getPathArray

public static String[] getPathArray(String path)

getPathArray

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

getResourceName

public static String getResourceName(String[] pathArray)

getStorage

public static WebDAVStorage getStorage(String token)

getStorageTokens

public static Collection<String> getStorageTokens()

getTimeout

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

isOverwrite

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

Liferay 6.0.5