Class Ace

java.lang.Object
org.apache.webdav.lib.Ace

public class Ace extends Object
This interface models a DAV Access control entry.
Version:
$Revision: 1.4.2.1 $
  • Field Details

    • principal

      protected String principal
      Principal.
    • negative

      protected boolean negative
      Negative (deny) flag.
    • privileges

      protected Vector privileges
      Privileges this ACE grants or denies.
    • protectedAce

      protected boolean protectedAce
      Protected.
    • inherited

      protected boolean inherited
      Inherited.
    • inheritedFrom

      protected String inheritedFrom
      Inherited from.
    • property

      protected PropertyName property
      Property. Only used if principal.equals("property").
  • Constructor Details

    • Ace

      public Ace(String principal)
    • Ace

      public Ace(String principal, boolean negative, boolean protectedAce, boolean inherited, String inheritedFrom)
  • Method Details

    • getPrincipal

      public String getPrincipal()
      Principal accessor.
    • setPrincipal

      public void setPrincipal(String principal)
      Principal mutator.
    • isNegative

      public boolean isNegative()
      Negative accessor.
    • setNegative

      public void setNegative(boolean negative)
      Negative mutator.
    • isProtected

      public boolean isProtected()
      Protected accessor.
    • setProtected

      public void setProtected(boolean protectedAce)
      Protected mutator.
    • isInherited

      public boolean isInherited()
      Inherited accessor.
    • setInherited

      public void setInherited(boolean inherited)
      Inherited mutator.
    • getInheritedFrom

      public String getInheritedFrom()
      Inherited from accessor.
    • setInheritedFrom

      public void setInheritedFrom(String inheritedFrom)
      Inherited from mutator.
    • getProperty

      public PropertyName getProperty()
      Property accessor.
      Returns:
      the property to compare if the pricipal is "property". If the property has not been set or has been set to null return "DAV:owner".
      See Also:
    • setProperty

      public void setProperty(PropertyName property)
      Property mutator.
      Parameters:
      property - the property to compare if the principal is "property"
      See Also:
    • enumeratePrivileges

      public Enumeration enumeratePrivileges()
      Enumerate privileges.
    • addPrivilege

      public void addPrivilege(Privilege privilege)
      Add privilege.
    • removePrivilege

      public boolean removePrivilege(Privilege privilege)
      Remove privilege.
    • clearPrivileges

      public void clearPrivileges()
      Clear privileges.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object