Class 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
      boolean owner
      Match a resource for which the current user is the owner
      Element principalProperty
      Property we're supposed to match on
      Collection<WebdavProperty> props
      Properties to return (none for empty collection)
      boolean self
      Match a resource which identifies the current user
      boolean whoami
      Match a resource which identifies the current user
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bedework.util.logging.BwLogger getLogger()  
      void parse​(Element root, int depth)
      Parse the principal match request.
      void process​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, int depth)  
      • 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
    • Constructor Detail

      • PrincipalMatchReport

        public PrincipalMatchReport​(MethodBase mb,
                                    WebdavNsIntf intf)
        Constructor
        Parameters:
        mb - method base
        intf - 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 request
        depth - 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 request
        resp - http response
        depth - for search
        Throws:
        WebdavException - on fatal error
      • getLogger

        public org.bedework.util.logging.BwLogger getLogger()
        Specified by:
        getLogger in interface org.bedework.util.logging.Logged