Package com.jalios.jcms.policy
Interface WebdavPolicyFilter
-
- All Superinterfaces:
java.lang.Comparable
,PluginComponent
,PolicyFilter
- All Known Implementing Classes:
BasicWebdavPolicyFilter
public interface WebdavPolicyFilter extends PolicyFilter
This class is a hook to allow developer to add custom webdav behaviour without implementing a new WebdavContext, WebdavFileSystem, ...
To handle read/write/upload rights for webdav the class RightPolicy may be used with JcmsContext Webdav.- Since:
- jcms-5.7.0
- Version:
- $Revision: 18706 $
- Author:
- Jean-Philippe Encausse
- See Also:
BasicRightPolicyFilter
-
-
Field Summary
-
Fields inherited from interface com.jalios.jcms.plugin.PluginComponent
REVISION
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handleWebdavHeaders(java.util.Map headers, WebdavContext ctxt)
This method is called by WebdavManager to handle headers set to all Webdav response.void
handleWebdavProperties(java.util.Set propAllSet)
This method is called by WebdavContext to add properties to Set of properties used by PROPFIND method.java.lang.String
handleWebdavProperty(java.lang.String property, java.lang.String jcms, WebdavResource res, WebdavContext ctxt)
This method handle response for the given property.boolean
silentFilterResource(boolean jcms, WebdavResource res, WebdavContext ctxt)
This method is called by CatWebdavFileSystem to ignore custom files like windows thumb.db...-
Methods inherited from interface com.jalios.jcms.plugin.PluginComponent
init
-
-
-
-
Method Detail
-
handleWebdavHeaders
void handleWebdavHeaders(java.util.Map headers, WebdavContext ctxt)
This method is called by WebdavManager to handle headers set to all Webdav response.- Parameters:
ctxt
- the WebdavContextheaders
- a Map of headers to handle
-
handleWebdavProperties
void handleWebdavProperties(java.util.Set propAllSet)
This method is called by WebdavContext to add properties to Set of properties used by PROPFIND method.- Parameters:
propAllSet
- the Set of properties
-
handleWebdavProperty
java.lang.String handleWebdavProperty(java.lang.String property, java.lang.String jcms, WebdavResource res, WebdavContext ctxt)
This method handle response for the given property. It is called before propert resolution. Custom properties must be declared using method WebdavPolicy#handleWebdavProperties(Set)- Parameters:
ctxt
- the WebdavContextproperty
- the working propertyres
- the working webdav- Returns:
- String the value to add to response
-
silentFilterResource
boolean 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.- Parameters:
jcms
- the choice of JCMSres
- the WebdavResourcectxt
- the WebdavContext- Returns:
- boolean true to filter thr given resource
-
-