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
    boolean
    Match a resource for which the current user is the owner
    Property we're supposed to match on
    Properties to return (none for empty collection)
    boolean
    Match a resource which identifies the current user
    boolean
    Match a resource which identifies the current user
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bedework.util.logging.BwLogger
     
    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 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, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
  • Field Details

    • 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 Details

    • PrincipalMatchReport

      public PrincipalMatchReport(MethodBase mb, WebdavNsIntf intf)
      Constructor
      Parameters:
      mb - method base
      intf - interface
  • Method Details

    • parse

      public void parse(Element root, int depth)
      Parse the principal match request. <!ELEMENT principal-match ((principal-property | self), prop?)> <!ELEMENT principal-property ANY> 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 <!ELEMENT self EMPTY>
      Parameters:
      root - of request
      depth - how far down
    • process

      public void process(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, int depth)
      Parameters:
      req - http request
      resp - http response
      depth - for search
    • getLogger

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