Class AccessUtil

  • All Implemented Interfaces:
    Serializable, org.bedework.util.logging.Logged

    public class AccessUtil
    extends org.bedework.access.AccessXmlUtil
    Author:
    douglm
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.bedework.access.AccessXmlUtil

        org.bedework.access.AccessXmlUtil.AccessXmlCb
    • Field Summary

      • Fields inherited from class org.bedework.access.AccessXmlUtil

        caldavPrivTags
    • Constructor Summary

      Constructors 
      Constructor Description
      AccessUtil​(String namespacePrefix, org.bedework.util.xml.XmlEmit xml, org.bedework.access.AccessXmlUtil.AccessXmlCb cb)
      Acls use tags in the webdav and caldav namespace.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      QName[] getPrivTags()  
      String makeGroupHref​(String who)
      Override this to construct urls from the parameter
      String makeUserHref​(String who)
      Override this to construct urls from the parameter
      • Methods inherited from class org.bedework.access.AccessXmlUtil

        emitAcl, emitCurrentPrivSet, emitSupportedPrivSet, escapeChars, getAcl, getAcl, getCurrentPrivSetString, getErrorMsg, getErrorTag, getLogger, getXmlAclString, setXml
      • 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
    • Constructor Detail

      • AccessUtil

        public AccessUtil​(String namespacePrefix,
                          org.bedework.util.xml.XmlEmit xml,
                          org.bedework.access.AccessXmlUtil.AccessXmlCb cb)
                   throws WebdavException
        Acls use tags in the webdav and caldav namespace. For use over caldav we should supply the uris. Otherwise a null namespace will be used.
        Parameters:
        namespacePrefix - String prefix
        xml - XmlEmit
        cb -
        Throws:
        WebdavException
    • Method Detail

      • makeUserHref

        public String makeUserHref​(String who)
        Override this to construct urls from the parameter
        Parameters:
        who - String
        Returns:
        String href
      • makeGroupHref

        public String makeGroupHref​(String who)
        Override this to construct urls from the parameter
        Parameters:
        who - String
        Returns:
        String href
      • getPrivTags

        public QName[] getPrivTags()
        Returns:
        QName[]