public class CatWebdavUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Constructor and Description |
---|
CatWebdavUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getCustomProtocolScheme()
Retrieve the custom protocol scheme (default is "jcmsoffice").
|
static java.lang.String |
getDataName(Data data)
Retrieve the name of the Data as it should be used in WebDav.
|
static int |
getMaxWebFolderLength()
Retrieve the maximum length of webfolder URL as defined by property "channel.webdav.max-web-folder-length".
|
static java.lang.String |
getParentPath(FileDocument doc)
Retrieve the WebDav path of the first valid parent folder of the specified FileDocument.
|
static java.lang.String |
getPath(Category cat,
Workspace ws)
Retrieve the WebDav path of the specified category in the specified workspace.
|
static java.lang.String |
getPath(FileDocument doc)
Retrieve the WebDav path of the specified FileDocument.
|
static java.lang.String |
getPath(Workspace ws)
Retrieve the WebDav path of the specified Workspace.
|
static java.lang.String |
getPathShort(Category cat,
Workspace ws)
Retrieve the WebDav path of the specified category in the specified workspace use a short notation for IE compatibility.
|
static Category |
getRootCategory()
Retrieve the global root category to be used for webdav
|
static boolean |
isCustomProtocolEnabled()
Check if the use of the custom protocol for WebDav edition link is enabled
|
static boolean |
isWebdavEditable(FileDocument doc)
Check if the specified document can be edited through WebDAV.
|
static boolean |
isWebdavEditable(FileDocument doc,
Member mbr)
Check if the specified document can be edited through WebDAV by the specified member.
|
static boolean |
useDigestAuthentication()
Check if HTTP Digest authentification should be used in WebDav.
|
public static final java.lang.String REVISION
public static boolean isCustomProtocolEnabled()
public static java.lang.String getCustomProtocolScheme()
public static boolean isWebdavEditable(FileDocument doc)
doc
- the FileDocument to checkpublic static boolean isWebdavEditable(FileDocument doc, Member mbr)
doc
- the FileDocument to check.mbr
- the Member to checkpublic static boolean useDigestAuthentication()
public static java.lang.String getDataName(Data data)
data
- the Data for which url should be retrieved, must be a Workspace, Category or FileDocument (otherwise null is returned)public static java.lang.String getPath(Workspace ws)
ws
- the Workspace for which the path is retrieved, must not be null.WebdavContext.encodePath(String)
.public static java.lang.String getPath(Category cat, Workspace ws)
Return null if the category cannot be displayed using WebDAV in this workspace.
cat
- the category for which the path is retrieved, must not be null.ws
- the workspace in which the category is to be displayed.WebdavContext.encodePath(String)
.public static java.lang.String getPath(FileDocument doc)
doc
- the FileDocument for which the path is retrieved, must not be null.WebdavContext.encodePath(String)
.public static java.lang.String getParentPath(FileDocument doc)
doc
- the FileDocument for which the path is retrieved, must not be null.WebdavContext.encodePath(String)
.public static Category getRootCategory()
public static int getMaxWebFolderLength()
- With IE 6 the maxwebfolder length was 90 !
- After patch http://support.microsoft.com/kb/325355/ it is 260 (==MAX_PATH)
- After patch http://support.microsoft.com/kb/329919 is is 2083 (==INTERNET_MAX_URL_LENGTH)
- With IE 7 and 8 it is probably also 2083
public static java.lang.String getPathShort(Category cat, Workspace ws)
Return null if the category cannot be displayed using WebDAV in this workspace.
cat
- the category for which the path is retrieved, must not be null.ws
- the workspace in which the category is to be displayed.WebdavContext.encodePath(String)
.Copyright © 2001-2018 Jalios SA. All Rights Reserved.