Class PrincipalMatchReport
- java.lang.Object
-
- org.bedework.webdav.servlet.common.PrincipalMatchReport
-
- All Implemented Interfaces:
org.bedework.util.logging.Logged
public class PrincipalMatchReport extends Object implements org.bedework.util.logging.Logged
- Author:
- Mike Douglass
-
-
Field Summary
Fields Modifier and Type Field Description booleanownerMatch a resource for which the current user is the ownerElementprincipalPropertyProperty we're supposed to match onCollection<WebdavProperty>propsProperties to return (none for empty collection)booleanselfMatch a resource which identifies the current userbooleanwhoamiMatch a resource which identifies the current user
-
Constructor Summary
Constructors Constructor Description PrincipalMatchReport(MethodBase mb, WebdavNsIntf intf)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bedework.util.logging.BwLoggergetLogger()voidparse(Element root, int depth)Parse the principal match request.voidprocess(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, int depth)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warn
-
-
-
-
Field Detail
-
self
public boolean self
Match a resource which identifies the current user
-
owner
public boolean owner
Match a resource for which the current user is the owner
-
whoami
public boolean whoami
Match a resource which identifies the current user
-
principalProperty
public Element principalProperty
Property we're supposed to match on
-
props
public Collection<WebdavProperty> props
Properties to return (none for empty collection)
-
-
Constructor Detail
-
PrincipalMatchReport
public PrincipalMatchReport(MethodBase mb, WebdavNsIntf intf)
Constructor- Parameters:
mb- method baseintf- interface
-
-
Method Detail
-
parse
public void parse(Element root, int depth) throws WebdavException
Parse the principal match request. ANY value: an element whose value identifies a property. The expectation is the value of the named property typically contains an href element that contains the URI of a principal- Parameters:
root- of requestdepth- how far down- Throws:
WebdavException- on fatal error
-
process
public void process(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, int depth) throws WebdavException- Parameters:
req- http requestresp- http responsedepth- for search- Throws:
WebdavException- on fatal error
-
getLogger
public org.bedework.util.logging.BwLogger getLogger()
- Specified by:
getLoggerin interfaceorg.bedework.util.logging.Logged
-
-