Package | Description |
---|---|
com.jalios.jcms.policy | |
com.jalios.jcms.webdav |
Contains classes which provides webdav access to JCMS.
|
com.jalios.jcms.webdav.cat |
Contains classes which provides webdav access to Categorie of JCMS.
|
com.jalios.jcms.webdav.file |
Contains classes which provides webdav access to FileDocument of JCMS.
|
Modifier and Type | Method and Description |
---|---|
void |
PolicyManager.handleWebdavHeaders(java.util.Map<java.lang.String,java.lang.String> headers,
WebdavContext ctxt) |
void |
WebdavPolicyFilter.handleWebdavHeaders(java.util.Map headers,
WebdavContext ctxt)
This method is called by WebdavManager to handle headers set
to all Webdav response.
|
void |
BasicWebdavPolicyFilter.handleWebdavHeaders(java.util.Map headers,
WebdavContext ctxt) |
java.lang.String |
WebdavPolicyFilter.handleWebdavProperty(java.lang.String property,
java.lang.String jcms,
WebdavResource res,
WebdavContext ctxt)
This method handle response for the given property.
|
java.lang.String |
PolicyManager.handleWebdavProperty(java.lang.String property,
java.lang.String jcms,
WebdavResource res,
WebdavContext ctxt) |
java.lang.String |
BasicWebdavPolicyFilter.handleWebdavProperty(java.lang.String property,
java.lang.String jcms,
WebdavResource res,
WebdavContext ctxt) |
boolean |
WebdavPolicyFilter.silentFilterResource(boolean jcms,
WebdavResource res,
WebdavContext ctxt)
This method is called by CatWebdavFileSystem to ignore custom files
like windows thumb.db... that shound not be added to JCMS.
|
boolean |
PolicyManager.silentFilterResource(boolean jcms,
WebdavResource res,
WebdavContext ctxt) |
boolean |
BasicWebdavPolicyFilter.silentFilterResource(boolean jcms,
WebdavResource res,
WebdavContext ctxt) |
Modifier and Type | Method and Description |
---|---|
protected WebdavContext |
WebdavServlet.getWebdavContext(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Create a new instance of WebdavContext calling the right Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
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
|
boolean |
WebdavFileSystem.doCopy(WebdavResource source,
WebdavResource target,
boolean overwrite,
boolean recursive,
WebdavContext ctxt)
This method perform copy from one Webdav Resource to an Other
|
abstract boolean |
WebdavFileSystem.doCreate(WebdavResource resource,
boolean overwrite,
boolean isFolder,
WebdavContext ctxt)
This method perform create from one Webdav Resource
|
protected void |
WebdavManager.doDelete(WebdavContext ctxt)
DELETE Method.
|
boolean |
WebdavFileSystem.doDelete(WebdavResource resource,
boolean recursive,
WebdavContext ctxt)
This method perform delete from one Webdav Resource
|
protected void |
WebdavManager.doGet(WebdavContext ctxt,
boolean printContent)
GET Method.
|
protected void |
WebdavManager.doHead(WebdavContext ctxt)
HEAD Method.
|
protected void |
WebdavManager.doLock(WebdavContext ctxt)
LOCK 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.doMkcol(WebdavContext ctxt)
MKCOL Method.
|
protected void |
WebdavManager.doMove(WebdavContext ctxt)
MOVE 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.doOption(WebdavContext ctxt)
OPTION Method.
|
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! |
protected void |
WebdavManager.doPut(WebdavContext ctxt)
PUT Method.
|
boolean |
WebdavFileSystem.doPut(WebdavResource resource,
boolean overwrite,
WebdavContext ctxt)
This method will do a create/overwrite a File or a Folder
|
protected void |
WebdavManager.doUnlock(WebdavContext ctxt)
UNLOCK Method.
|
boolean |
WebdavFileSystem.doUnlock(WebdavResource resource,
WebdavContext ctxt)
This method will unlock the given resource lock
defined in the if header.
|
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> |
WebdavResource.getDescendantLocks(WebdavContext ctxt)
Convenient method that delegate call to the WebdavFileSystem
|
java.util.Collection<WebdavLock> |
WebdavFileSystem.getDescendantLocks(WebdavResource resource,
WebdavContext ctxt)
This method will return locks of descendant on the given resource
|
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> |
WebdavResource.getLocks(WebdavContext ctxt)
Convenient method that delegate call to the WebdavFileSystem
|
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.
|
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.
|
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 |
WebdavResource.putLock(WebdavLock lock,
WebdavContext ctxt)
Convenient method that delegate call to the WebdavFileSystem
|
WebdavLock |
WebdavFileSystem.putLock(WebdavLock lock,
WebdavResource resource,
WebdavContext ctxt)
This method will put a lock on single given resource
|
WebdavLock |
WebdavResource.putLocks(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
|
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.
|
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) |
Constructor and Description |
---|
WebdavFileSystem(WebdavContext ctxt)
Initialise the webdav FileSystem setting baseUri from ContextPath
and ServletPath
|
WebdavLock(java.lang.String uri,
WebdavContext ctxt)
The lock must be a relative URI to the path folders starting and ending by '/'.
|
WebdavResource(java.lang.String uri,
WebdavContext ctxt)
The resource must be a relative URI to the path folders starting and ending by '/'.
|
Modifier and Type | Class and Description |
---|---|
class |
CatWebdavContext
A JCMS Representation of a Webdav Context
using Category for folders and FileDocument for files
Authentification use BASIC authentification and store result in a cookie. |
Modifier and Type | Method and Description |
---|---|
void |
CatWebdavLock.acquire(WebdavResource resource,
WebdavContext ctxt)
This method is called for other mecanism outside of Webdav
that need to be notified by lock
|
boolean |
CatWebdavFileSystem.canReadData(Data data,
boolean recursive,
WebdavContext ctxt)
Check if the data can be read given the current context
|
boolean |
CatWebdavFileSystem.copyFolder(WebdavResource src,
WebdavResource tgt,
boolean overwrite,
boolean recursive,
WebdavContext ctxt) |
boolean |
CatWebdavFileSystem.copyMoveFile(WebdavResource src,
WebdavResource tgt,
boolean move,
WebdavContext ctxt)
This method Copy/Move a resource to a given target location
|
boolean |
CatWebdavFileSystem.createFile(WebdavResource res,
WebdavContext ctxt)
Create a resource child of a given folder with the given name
If child already exists in JCMS then recaterize it
|
boolean |
CatWebdavFileSystem.createFolder(WebdavResource res,
WebdavContext ctxt)
Create a given target folder
|
boolean |
CatWebdavFileSystem.deleteFile(WebdavResource res,
WebdavContext ctxt)
Delete a given target file
|
boolean |
CatWebdavFileSystem.deleteFolder(WebdavResource res,
WebdavContext ctxt)
Delete a given target folder
|
boolean |
CatWebdavFileSystem.doCopy(WebdavResource source,
WebdavResource target,
boolean overwrite,
boolean recursive,
WebdavContext ctxt) |
boolean |
CatWebdavFileSystem.doCreate(WebdavResource resource,
boolean overwrite,
boolean isFolder,
WebdavContext ctxt) |
boolean |
CatWebdavFileSystem.doDelete(WebdavResource resource,
boolean recursive,
WebdavContext ctxt) |
boolean |
CatWebdavFileSystem.doMove(WebdavResource source,
WebdavResource target,
boolean overwrite,
boolean recursive,
WebdavContext ctxt) |
java.util.Collection<WebdavResource> |
CatWebdavResource.getChildren(WebdavContext ctxt) |
long |
CatWebdavFileSystem.getContentLength(Data data,
WebdavContext ctxt)
This method return the length of the ressource
|
long |
CatWebdavResource.getContentLength(WebdavContext ctxt) |
java.lang.String |
CatWebdavFileSystem.getContentType(Data data,
WebdavContext ctxt)
This method return the content type of the ressource
|
java.lang.String |
CatWebdavResource.getContentType(WebdavContext ctxt) |
long |
CatWebdavResource.getCreationDate(WebdavContext ctxt) |
java.util.Collection<Data> |
CatWebdavFileSystem.getDataChildrenSet(Data parent,
WebdavContext ctxt) |
Data |
CatWebdavFileSystem.getDataFromName(java.lang.String name,
Data parent,
boolean onlyFolders,
WebdavContext ctxt)
Return the Data represented by the given short uri
|
Data |
CatWebdavFileSystem.getDataFromUri(java.lang.String uri,
WebdavContext ctxt)
Retrieve the Data from the given URI
Starting from the given root.
|
long |
CatWebdavResource.getLastModified(WebdavContext ctxt) |
java.lang.String |
CatWebdavFileSystem.getNameFromData(Data data,
WebdavContext ctxt)
This method return the short name of the given data
(Category or FileDocument) for this implementation
|
WebdavResource |
CatWebdavFileSystem.getResource(java.lang.String uri,
WebdavContext ctxt) |
java.io.InputStream |
CatWebdavFileSystem.getResourceStream(Data data,
WebdavContext ctxt)
This method return the resource input stream
|
java.io.InputStream |
CatWebdavResource.getResourceStream(WebdavContext ctxt) |
Workspace |
CatWebdavFileSystem.getWorkspaceFromURI(java.lang.String uri,
WebdavContext ctxt)
This method return the Workspace
bind to the given URI.
|
boolean |
CatWebdavFileSystem.isExisting(Data data,
WebdavContext ctxt)
This method return true if the Data is existing
|
boolean |
CatWebdavResource.isExisting(WebdavContext ctxt) |
boolean |
CatWebdavFileSystem.isFile(Data data,
WebdavContext ctxt)
This method return true if the Data is a File
|
boolean |
CatWebdavResource.isFile(WebdavContext ctxt) |
boolean |
CatWebdavFileSystem.isFolder(Data data,
WebdavContext ctxt)
This method return true if the Data is a Folder
|
boolean |
CatWebdavResource.isFolder(WebdavContext ctxt) |
boolean |
CatWebdavResource.isReadable(boolean recursive,
WebdavContext ctxt) |
boolean |
CatWebdavFileSystem.isReadable(WebdavResource res,
boolean recursive,
WebdavContext ctxt)
Check if the resource is Readable
|
boolean |
CatWebdavFileSystem.isReadOnly(WebdavContext ctxt) |
boolean |
CatWebdavResource.isWritable(boolean recursive,
boolean overwrite,
WebdavContext ctxt) |
boolean |
CatWebdavFileSystem.isWritable(WebdavResource res,
boolean recursive,
boolean overwrite,
WebdavContext ctxt)
Check if the resource is Writable
|
boolean |
CatWebdavFileSystem.moveFolder(WebdavResource src,
WebdavResource tgt,
boolean overwrite,
boolean recursive,
WebdavContext ctxt)
This method will move a given source to target location
If target folder already exists then:
- Copy all children of the target under source
- Then copy all children of source under target
- Then remove source
|
WebdavLock |
CatWebdavFileSystem.newLock(WebdavResource resource,
WebdavContext ctxt) |
void |
CatWebdavLock.refresh(WebdavResource resource,
WebdavContext ctxt)
This method is called for other mecanism outside of Webdav
that need to be notified by unlock
|
void |
CatWebdavLock.release(WebdavResource resource,
WebdavContext ctxt)
This method is called for other mecanism outside of Webdav
that need to be notified by unlock
|
boolean |
CatWebdavFileSystem.renameFile(WebdavResource src,
WebdavResource tgt,
WebdavContext ctxt)
Rename the given WebdavResource file to the given
target resource
|
boolean |
CatWebdavFileSystem.renameFolder(WebdavResource src,
WebdavResource tgt,
WebdavContext ctxt)
Rename the given WebdavResource folder to the given
target resource
|
void |
CatWebdavResource.setPath(java.lang.String uri,
WebdavContext ctxt) |
boolean |
CatWebdavFileSystem.setResourceStream(Data data,
java.io.File tmp,
WebdavContext ctxt)
Update/Override the FileDocument
|
boolean |
CatWebdavResource.setResourceStream(java.io.InputStream in,
WebdavContext ctxt) |
protected boolean |
CatWebdavFileSystem.silentFilterResource(WebdavResource resource,
WebdavContext ctxt) |
Constructor and Description |
---|
CatWebdavFileSystem(WebdavContext ctxt) |
CatWebdavLock(java.lang.String uri,
WebdavContext ctxt) |
CatWebdavResource(java.lang.String uri,
WebdavContext ctxt) |
Modifier and Type | Class and Description |
---|---|
class |
FileWebdavContext
A File Representation of a Webdav Context
|
Modifier and Type | Method and Description |
---|---|
boolean |
FileWebdavFileSystem.doCopy(WebdavResource source,
WebdavResource target,
boolean overwrite,
boolean recursive,
WebdavContext ctxt) |
boolean |
FileWebdavFileSystem.doCreate(WebdavResource resource,
boolean overwrite,
boolean isFolder,
WebdavContext ctxt) |
boolean |
FileWebdavFileSystem.doDelete(WebdavResource resource,
boolean recursive,
WebdavContext ctxt) |
boolean |
FileWebdavFileSystem.doMove(WebdavResource source,
WebdavResource target,
boolean overwrite,
boolean recursive,
WebdavContext ctxt) |
java.lang.String |
FileWebdavFileSystem.getAbsolutePath(java.lang.String path,
WebdavContext ctxt)
Work like getAbsoluteUri() but with FileSystem Path
|
java.util.Collection<WebdavResource> |
FileWebdavResource.getChildren(WebdavContext ctxt) |
long |
FileWebdavResource.getContentLength(WebdavContext ctxt) |
java.lang.String |
FileWebdavResource.getContentType(WebdavContext ctxt) |
long |
FileWebdavResource.getCreationDate(WebdavContext ctxt) |
long |
FileWebdavResource.getLastModified(WebdavContext ctxt) |
java.lang.String |
FileWebdavFileSystem.getRelativePath(java.lang.String path,
WebdavContext ctxt)
Work like getRelativeUri() but with FileSystem Path
|
WebdavResource |
FileWebdavFileSystem.getResource(java.lang.String uri,
WebdavContext ctxt) |
java.io.InputStream |
FileWebdavResource.getResourceStream(WebdavContext ctxt) |
boolean |
FileWebdavResource.isExisting(WebdavContext ctxt) |
boolean |
FileWebdavResource.isFile(WebdavContext ctxt) |
boolean |
FileWebdavResource.isFolder(WebdavContext ctxt) |
boolean |
FileWebdavResource.isHidden(WebdavContext ctxt) |
WebdavLock |
FileWebdavFileSystem.newLock(WebdavResource resource,
WebdavContext ctxt) |
boolean |
FileWebdavResource.setResourceStream(java.io.InputStream in,
WebdavContext ctxt) |
Constructor and Description |
---|
FileWebdavFileSystem(WebdavContext ctxt) |
FileWebdavLock(java.lang.String uri,
WebdavContext ctxt) |
FileWebdavResource(java.lang.String uri,
WebdavContext ctxt) |
Copyright © 2001-2010 Jalios SA. All Rights Reserved.