public class WebDAVUtil
extends Object
Modifier and Type | Field and Description |
---|---|
static Namespace |
DAV_URI |
static int |
SC_LOCKED |
static int |
SC_MULTI_STATUS |
static String |
TOKEN_PREFIX |
Modifier and Type | Method and Description |
---|---|
static void |
addStorage(WebDAVStorage storage) |
static Namespace |
createNamespace(String prefix,
String uri) |
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 WebDAVUtil |
getInstance() |
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 String |
getStorageToken(Portlet portlet) |
static Collection<String> |
getStorageTokens() |
static long |
getTimeout(javax.servlet.http.HttpServletRequest request) |
static boolean |
isOverwrite(javax.servlet.http.HttpServletRequest request) |
static String |
stripManualCheckInRequiredPath(String url) |
static String |
stripOfficeExtension(String url) |
static String |
stripToken(String url,
String token) |
public static final Namespace DAV_URI
public static final int SC_LOCKED
public static final int SC_MULTI_STATUS
public static final String TOKEN_PREFIX
public static void addStorage(WebDAVStorage storage)
public static Namespace createNamespace(String prefix, String uri)
public static void deleteStorage(WebDAVStorage storage)
public static long getDepth(javax.servlet.http.HttpServletRequest request)
public static String getDestination(javax.servlet.http.HttpServletRequest request, String rootPath)
public static long getGroupId(long companyId, String path) throws WebDAVException
WebDAVException
public static long getGroupId(long companyId, String[] pathArray) throws WebDAVException
WebDAVException
public static List<Group> getGroups(long userId) throws Exception
Exception
public static WebDAVUtil getInstance()
public static String getLockUuid(javax.servlet.http.HttpServletRequest request) throws WebDAVException
WebDAVException
public static String[] getPathArray(String path)
public static String[] getPathArray(String path, boolean fixTrailing)
public static String getResourceName(String[] pathArray)
public static WebDAVStorage getStorage(String token)
public static String getStorageToken(Portlet portlet)
public static Collection<String> getStorageTokens()
public static long getTimeout(javax.servlet.http.HttpServletRequest request)
public static boolean isOverwrite(javax.servlet.http.HttpServletRequest request)
public static String stripManualCheckInRequiredPath(String url)
public static String stripOfficeExtension(String url)
public static String stripToken(String url, String token)