void |
WebdavLock.acquire(WebdavResource resource,
WebdavContext ctxt) |
This method is called for other mecanism outside of Webdav
that need to be notified by lock
|
void |
WebdavFileSystem.afterDoDelete(WebdavResource resource,
WebdavContext ctxt) |
Must be called by Sub Implementation to resolve
properties and locks problem.
|
void |
WebdavFileSystem.afterDoMove(WebdavResource source,
WebdavResource target,
boolean overwrite,
boolean recursive,
WebdavContext ctxt) |
Must be called by Sub Implementation to resolve
properties and locks problem.
|
boolean |
WebdavResource.checkUnlockAccess(WebdavContext ctxt) |
Check unlock access for current context on this resource
|
boolean |
WebdavFileSystem.doCopy(WebdavResource source,
WebdavResource target,
boolean overwrite,
boolean recursive,
WebdavContext ctxt) |
This method perform copy from one Webdav Resource to an Other
|
protected void |
WebdavManager.doCopy(WebdavContext ctxt) |
COPY Method
If writing is allowed,
This method decode HTTP Headers: destinationHeader, path, ovewrite
Then call doCopy from WebdavFileSystem
|
abstract boolean |
WebdavFileSystem.doCreate(WebdavResource resource,
boolean overwrite,
boolean isFolder,
WebdavContext ctxt) |
This method perform create from one Webdav Resource
|
boolean |
WebdavFileSystem.doDelete(WebdavResource resource,
boolean recursive,
WebdavContext ctxt) |
This method perform delete from one Webdav Resource
|
protected void |
WebdavManager.doDelete(WebdavContext ctxt) |
DELETE Method.
|
protected void |
WebdavManager.doGet(WebdavContext ctxt,
boolean printContent) |
GET Method.
|
protected void |
WebdavManager.doHead(WebdavContext ctxt) |
HEAD Method.
|
WebdavLock |
WebdavFileSystem.doLock(WebdavResource resource,
WebdavContext ctxt) |
This method will parse header to identify
and create lock or locks on the given resource
If Errors append or Lock only need a refresh then
return false otherwise return true.
|
protected void |
WebdavManager.doLock(WebdavContext ctxt) |
LOCK Method.
|
protected void |
WebdavManager.doMkcol(WebdavContext ctxt) |
MKCOL Method.
|
boolean |
WebdavFileSystem.doMove(WebdavResource source,
WebdavResource target,
boolean overwrite,
boolean recursive,
WebdavContext ctxt) |
This method perform move from one Webdav Resource to an Other
|
protected void |
WebdavManager.doMove(WebdavContext ctxt) |
MOVE Method.
|
protected void |
WebdavManager.doOption(WebdavContext ctxt) |
OPTION Method.
Update headers with really custom argument:
"Pragma" -> "no-cache"
"Cache-Control" -> "no-store, no-cache, must-revalidate"
"Cache-Control" -> "post-check=0, pre-check=0"
"MS-Author-Via" -> "DAV, MS-FP/4.0"
"MicrosoftOfficeWebServer" -> "5.0_Pub"
"DAV" -> "1, 2, DAVJCMS, access-control"
|
protected void |
WebdavManager.doPropfind(WebdavContext ctxt) |
PROPFIND Method.
|
protected void |
WebdavManager.doProppatch(WebdavContext ctxt) |
PROPPATCH Method: Not Implemented
Create/Delete a resource property on a non locked resource
WARNING! This methods use in Memory Property management and
has no been correctly tested with litmus because JCMS should not
use it.
|
boolean |
WebdavFileSystem.doPut(WebdavResource resource,
boolean overwrite,
WebdavContext ctxt) |
This method will do a create/overwrite a File or a Folder
|
protected void |
WebdavManager.doPut(WebdavContext ctxt) |
PUT Method.
|
boolean |
WebdavFileSystem.doUnlock(WebdavResource resource,
WebdavContext ctxt) |
This method will unlock the given resource lock
defined in the if header.
|
protected void |
WebdavManager.doUnlock(WebdavContext ctxt) |
UNLOCK Method.
|
java.lang.String |
WebdavLock.generateId(WebdavContext ctxt) |
Generate an MD5 id from the given locks parameters
|
java.lang.String |
WebdavFileSystem.getAbsoluteUri(java.lang.String path,
WebdavContext ctxt) |
This method will convert a relative path to an absolute uri
ie /my/folder/resource.ext -> http://www.example.com/jcms/webapp/webdav/my/folder/resource.ext
|
abstract java.util.Collection<WebdavResource> |
WebdavResource.getChildren(WebdavContext ctxt) |
Return all the Children of the resource.
|
java.lang.String |
WebdavResource.getContentLanguage(WebdavContext ctxt) |
This method will return the content language
Default implementation return null
|
abstract long |
WebdavResource.getContentLength(WebdavContext ctxt) |
Return the size of the resource or 0 if there is no content
|
abstract java.lang.String |
WebdavResource.getContentType(WebdavContext ctxt) |
This method have to return the Content Type of the resource
with the Content Encoding ie "text/html; charset=UTF-8"
It is the media type defined in section 3.7 of [RFC2068]
If no content type then return ""
|
abstract long |
WebdavResource.getCreationDate(WebdavContext ctxt) |
Return long representing the Creation of the resource
It contains a timestamp of the moment when the resource
was created (i.e., the moment it had non-null state).
|
java.util.Collection<WebdavLock> |
WebdavFileSystem.getDescendantLocks(WebdavResource resource,
WebdavContext ctxt) |
This method will return locks of descendant on the given resource
|
java.util.Collection<WebdavLock> |
WebdavResource.getDescendantLocks(WebdavContext ctxt) |
Convenient method that delegate call to the WebdavFileSystem
|
java.lang.String |
WebdavResource.getETag(boolean strong,
WebdavContext ctxt) |
Return a etag representation usefull
not to be read-only with ms-word
|
long |
WebdavResource.getLastAccessed(WebdavContext ctxt) |
This method will return a long representing the last time
this resource was accessed.
|
abstract long |
WebdavResource.getLastModified(WebdavContext ctxt) |
Return long representing the LastModified of the resource
Note that the last-modified date on a resource may reflect
changes in any part of the state of the resource, not necessarily
just a change to the response to the GET method.
|
java.util.Collection<WebdavLock> |
WebdavFileSystem.getLocks(WebdavResource resource,
WebdavContext ctxt) |
This method will return all locks on the given resource and on all the parent collection.
|
java.util.Collection<WebdavLock> |
WebdavResource.getLocks(WebdavContext ctxt) |
Convenient method that delegate call to the WebdavFileSystem
|
protected java.lang.String |
WebdavManager.getMethodsAllowed(WebdavResource res,
WebdavContext ctxt) |
|
java.lang.String |
WebdavResource.getName(WebdavContext ctxt) |
This method will return the name of the resource
ie /my/path/resource.ext -> resource.ext
ie /my/path/ -> path
|
WebdavResource |
WebdavResource.getParent(WebdavContext ctxt) |
This method will return the Parent WebdavResource of the resource.
|
java.lang.String |
WebdavResource.getPath(WebdavContext ctxt) |
This method will return the path of the resource
ie /my/path/resource.ext -> /my/path/resource.ext
ie /my/path/ -> /my/path/
|
protected org.jdom.Element |
WebdavManager.getPropNode(WebdavContext ctxt) |
Return the PropertyNode from the XML Document
|
java.lang.String |
WebdavFileSystem.getRelativeUri(java.lang.String uri,
WebdavContext ctxt) |
This method will convert an absolute uri to a relative uri.
|
abstract WebdavResource |
WebdavFileSystem.getResource(java.lang.String uri,
WebdavContext ctxt) |
Lookup the resource represented by the given URI.
|
abstract java.io.InputStream |
WebdavResource.getResourceStream(WebdavContext ctxt) |
This method have to return an InputStream on the resource.
|
void |
WebdavPolicyManager.handleWebdavHeaders(java.util.Map<java.lang.String,java.lang.String> headers,
WebdavContext ctxt) |
|
java.lang.String |
WebdavPolicyManager.handleWebdavProperty(java.lang.String property,
java.lang.String jcms,
WebdavResource res,
WebdavContext ctxt) |
|
boolean |
WebdavManager.handleWebdavRequest(WebdavContext ctxt) |
This method handle the HTTP Request then redirect to the right method.
|
boolean |
WebdavResource.hasExclusiveLockAccess(WebdavContext ctxt) |
Check that current user has an exclusive lock access for current context on this resource
|
boolean |
WebdavFileSystem.hasInternalLock(WebdavResource res,
WebdavContext ctxt) |
This method is called for other mecanism outside of Webdav
|
boolean |
WebdavResource.hasLockAccess(WebdavContext ctxt) |
Check lock access for current context on this resource
|
abstract boolean |
WebdavResource.isExisting(WebdavContext ctxt) |
Check if the resource exists in the UserFileSystem
This method is abstract and must be implemented by the UserFileSystem.
|
boolean |
WebdavResource.isFile(WebdavContext ctxt) |
This method will check if the resource is a File or a Folder.
|
boolean |
WebdavResource.isFolder(WebdavContext ctxt) |
This method will check if the resource is a File or a Folder.
|
boolean |
WebdavResource.isHidden(WebdavContext ctxt) |
This method will return true if the resource isHidden.
|
boolean |
WebdavFileSystem.isInternallyLocked(WebdavResource res,
WebdavContext ctxt) |
This method is called for other mecanism outside of Webdav
|
boolean |
WebdavFileSystem.isListing(WebdavContext ctxt) |
This method check if the FileSystem allow listing.
|
boolean |
WebdavResource.isReadable(boolean recursive,
WebdavContext ctxt) |
This method will return true if the resource can be read by the context.
|
boolean |
WebdavFileSystem.isReadOnly(WebdavContext ctxt) |
Check if the FileSystem is ReadOnly.
|
boolean |
WebdavResource.isWritable(boolean recursive,
boolean overwrite,
WebdavContext ctxt) |
This method will return true if the resource can be write by the context.
|
boolean |
WebdavFileSystem.matchesIfHeaderCondition(WebdavContext ctxt) |
Check that the current resource matches the if header condition if any.
|
abstract WebdavLock |
WebdavFileSystem.newLock(WebdavResource resource,
WebdavContext ctxt) |
This method will return a new WebdavLock implementation
|
WebdavLock |
WebdavFileSystem.putLock(WebdavLock lock,
WebdavResource resource,
WebdavContext ctxt) |
This method will put a lock on single given resource
|
WebdavLock |
WebdavResource.putLock(WebdavLock lock,
WebdavContext ctxt) |
Convenient method that delegate call to the WebdavFileSystem
|
WebdavLock |
WebdavFileSystem.putLocks(WebdavLock lock,
WebdavResource resource,
WebdavContext ctxt) |
This method will put a lock on the given resource and its children
|
WebdavLock |
WebdavResource.putLocks(WebdavLock lock,
WebdavContext ctxt) |
Convenient method that delegate call to the WebdavFileSystem
|
void |
WebdavLock.refresh(WebdavResource resource,
WebdavContext ctxt) |
This method is called for other mecanism outside of Webdav
that need to be notified by unlock
|
WebdavLock |
WebdavFileSystem.refreshLock(WebdavResource resource,
WebdavContext ctxt) |
This method will refresh a lock on the given resource
and returned the refreshed lock if any or null otherwise.
|
void |
WebdavLock.release(WebdavResource resource,
WebdavContext ctxt) |
This method is called for other mecanism outside of Webdav
that need to be notified by unlock
|
boolean |
WebdavFileSystem.removeLock(WebdavLock lock,
WebdavResource resource,
WebdavContext ctxt) |
This method will remove tokens on the given resource and its children
If there is no more tokens then remove the lock.
|
boolean |
WebdavFileSystem.removeLocks(WebdavResource resource,
WebdavContext ctxt) |
This method will remove all lock for a given resource and its children
(shared lock will also be removed)
|
void |
WebdavResource.setPath(java.lang.String uri,
WebdavContext ctxt) |
|
abstract boolean |
WebdavResource.setResourceStream(java.io.InputStream in,
WebdavContext ctxt) |
This method have to return an InputStream on the resource.
|
protected boolean |
WebdavFileSystem.silentFilterResource(WebdavResource resource,
WebdavContext ctxt) |
Return true if the resource should be silently ignored.
|
boolean |
WebdavPolicyManager.silentFilterResource(boolean jcms,
WebdavResource res,
WebdavContext ctxt) |
|
protected java.util.List<org.jdom.Element> |
WebdavContext.writeProperties(java.lang.String resourcePath,
java.lang.String statusMsg,
com.jalios.jcms.webdav.WebdavManager.PropFindType propType,
java.util.Collection<WebdavProperty> properties,
WebdavContext ctxt) |
This method will write all properties of a given resource in a given type
|
org.jdom.Element |
WebdavContext.writeResponseProperties(java.lang.String resPath,
com.jalios.jcms.webdav.WebdavManager.PropFindType propType,
java.util.Collection<WebdavProperty> properties,
WebdavContext ctxt) |
|