|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.webdav.WebDAVHelper
public class WebDAVHelper
WebDAV Protocol Helper Class
Provides helper methods for repository access using the WebDAV protocol.
Field Summary | |
---|---|
static java.lang.String |
PathSeperator
|
static char |
PathSeperatorChar
|
Constructor Summary | |
---|---|
protected |
WebDAVHelper(org.alfresco.service.ServiceRegistry serviceRegistry,
org.alfresco.service.cmr.security.AuthenticationService authService)
Class constructor |
Method Summary | |
---|---|
static java.lang.String |
encodeHTML(java.lang.String string)
Encodes the given string to valid HTML format |
static java.lang.String |
encodeURL(java.lang.String s)
Encodes the given string to valid URL format |
static java.lang.String |
encodeURL(java.lang.String s,
java.lang.String userAgent)
|
static java.lang.String |
encodeUrlReservedSymbols(java.lang.String string)
ALF-5333: Microsoft clients use ISO-8859-1 to decode WebDAV responses so this method should only be used for Microsoft user agents. |
org.alfresco.service.cmr.action.ActionService |
getActionService()
|
org.alfresco.service.cmr.security.AuthenticationService |
getAuthenticationService()
|
org.alfresco.service.cmr.repository.CopyService |
getCopyService()
|
org.alfresco.service.cmr.dictionary.DictionaryService |
getDictionaryService()
|
org.alfresco.service.cmr.model.FileFolderService |
getFileFolderService()
|
org.alfresco.service.cmr.lock.LockService |
getLockService()
|
org.alfresco.service.cmr.repository.MimetypeService |
getMimetypeService()
|
org.alfresco.service.namespace.NamespaceService |
getNamespaceService()
|
org.alfresco.service.cmr.model.FileInfo |
getNodeForPath(org.alfresco.service.cmr.repository.NodeRef rootNodeRef,
java.lang.String path,
java.lang.String servletPath)
Get the file info for the given paths |
org.alfresco.service.cmr.repository.NodeService |
getNodeService()
|
org.xml.sax.helpers.AttributesImpl |
getNullAttributes()
|
org.alfresco.service.cmr.model.FileInfo |
getParentNodeForPath(org.alfresco.service.cmr.repository.NodeRef rootNodeRef,
java.lang.String path,
java.lang.String servletPath)
|
java.lang.String |
getPathFromNode(org.alfresco.service.cmr.repository.NodeRef rootNodeRef,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Return the relative path for the node walking back to the specified root node |
org.alfresco.service.cmr.security.PermissionService |
getPermissionService()
|
org.alfresco.service.cmr.search.SearchService |
getSearchService()
|
org.alfresco.service.ServiceRegistry |
getServiceRegistry()
|
java.lang.String |
makeETag(org.alfresco.service.cmr.model.FileInfo nodeInfo)
Make an ETag value for a node using the GUID and modify date/time |
protected void |
makeETagString(org.alfresco.service.cmr.model.FileInfo nodeInfo,
java.lang.StringBuilder etag)
Make an ETag value for a node using the GUID and modify date/time |
java.lang.String |
makeQuotedETag(org.alfresco.service.cmr.model.FileInfo nodeInfo)
Make an ETag value for a node using the GUID and modify date/time |
static java.lang.String |
replace(java.lang.String str,
java.lang.String repl,
java.lang.String with)
Replace one string instance with another within the specified string |
java.util.List |
splitAllPaths(java.lang.String path)
Split the path into all the component directories and filename |
java.lang.String[] |
splitPath(java.lang.String path)
Split the path into seperate directory path and file name strings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PathSeperator
public static final char PathSeperatorChar
Constructor Detail |
---|
protected WebDAVHelper(org.alfresco.service.ServiceRegistry serviceRegistry, org.alfresco.service.cmr.security.AuthenticationService authService)
Method Detail |
---|
public final org.alfresco.service.cmr.security.AuthenticationService getAuthenticationService()
public final org.alfresco.service.ServiceRegistry getServiceRegistry()
public final org.alfresco.service.cmr.repository.NodeService getNodeService()
public org.alfresco.service.cmr.model.FileFolderService getFileFolderService()
public final org.alfresco.service.cmr.search.SearchService getSearchService()
public final org.alfresco.service.namespace.NamespaceService getNamespaceService()
public final org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()
public final org.alfresco.service.cmr.repository.MimetypeService getMimetypeService()
public final org.alfresco.service.cmr.lock.LockService getLockService()
public final org.alfresco.service.cmr.action.ActionService getActionService()
public final org.alfresco.service.cmr.security.PermissionService getPermissionService()
public final org.alfresco.service.cmr.repository.CopyService getCopyService()
public final java.lang.String[] splitPath(java.lang.String path)
path
- Full path string.
public final java.util.List splitAllPaths(java.lang.String path)
path
- the string to split
public final org.alfresco.service.cmr.model.FileInfo getNodeForPath(org.alfresco.service.cmr.repository.NodeRef rootNodeRef, java.lang.String path, java.lang.String servletPath) throws org.alfresco.service.cmr.model.FileNotFoundException
rootNodeRef
- the acting webdav rootpath
- the path to search forservletPath
- the base servlet path, which may be null or empty
org.alfresco.service.cmr.model.FileNotFoundException
- if the path doesn't refer to a valid nodepublic final org.alfresco.service.cmr.model.FileInfo getParentNodeForPath(org.alfresco.service.cmr.repository.NodeRef rootNodeRef, java.lang.String path, java.lang.String servletPath) throws org.alfresco.service.cmr.model.FileNotFoundException
org.alfresco.service.cmr.model.FileNotFoundException
public final java.lang.String getPathFromNode(org.alfresco.service.cmr.repository.NodeRef rootNodeRef, org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.model.FileNotFoundException
rootNodeRef
- the root below which the path will be validnodeRef
- the node's path to get
org.alfresco.service.cmr.model.FileNotFoundException
public final java.lang.String makeETag(org.alfresco.service.cmr.model.FileInfo nodeInfo)
public final java.lang.String makeQuotedETag(org.alfresco.service.cmr.model.FileInfo nodeInfo)
protected final void makeETagString(org.alfresco.service.cmr.model.FileInfo nodeInfo, java.lang.StringBuilder etag)
public final org.xml.sax.helpers.AttributesImpl getNullAttributes()
public static final java.lang.String encodeURL(java.lang.String s)
s
- the String to convertpublic static final java.lang.String encodeURL(java.lang.String s, java.lang.String userAgent)
public static java.lang.String replace(java.lang.String str, java.lang.String repl, java.lang.String with)
public static final java.lang.String encodeHTML(java.lang.String string)
string
- the String to convertpublic static final java.lang.String encodeUrlReservedSymbols(java.lang.String string) throws java.io.UnsupportedEncodingException
string
-
java.io.UnsupportedEncodingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |