Class AclRestrictionsProperty

  • All Implemented Interfaces:
    DavConstants, DavProperty, PropEntry, XmlSerializable

    public class AclRestrictionsProperty
    extends AbstractDavProperty
    AclRestrictionsProperty as defined by RFC 3744 Section 5.6. DAV:acl-restrictions:
     <!ELEMENT acl-restrictions (grant-only?, no-invert?, deny-before-grant?, required-principal?)>
     <!ELEMENT grant-only EMPTY>
     <!ELEMENT no-invert EMPTY>
     <!ELEMENT deny-before-grant EMPTY>
     <!ELEMENT required-principal (all? | authenticated? | unauthenticated? | self? | href* | property*)>
    See Also:
    Principal, AclProperty
    • Constructor Detail

      • AclRestrictionsProperty

        public AclRestrictionsProperty​(boolean grantOnly,
                                       boolean noInvert,
                                       boolean denyBeforeGrant,
                                       Principal requiredPrincipal)
    • Method Detail

      • toXml

        public Element toXml​(Document document)
        Description copied from class: AbstractDavProperty
        Return a XML element representation of this property. The value of the property will be added as text or as child element.
         new DavProperty("displayname", "WebDAV Directory").toXml
         gives a element like:
         <D:displayname>WebDAV Directory</D:displayname>
         new DavProperty("resourcetype", new Element("collection")).toXml
         gives a element like:
         Element[] customVals = { new Element("bla", customNamespace), new Element("bli", customNamespace) };
         new DavProperty("custom-property", customVals, customNamespace).toXml
         gives an element like
        Specified by:
        toXml in interface XmlSerializable
        toXml in class AbstractDavProperty
        document - to be used as factory.
        a XML element of this property
        See Also:
      • isGrantOnly

        public boolean isGrantOnly()
      • isNoInvert

        public boolean isNoInvert()
      • isDenyBeforeGrant

        public boolean isDenyBeforeGrant()
      • getRequiredPrincipal

        public Principal getRequiredPrincipal()