org.apache.webdav.lib
Class Ace
java.lang.Object
org.apache.webdav.lib.Ace
public class Ace
extends java.lang.Object
This interface models a DAV Access control entry.
Ace(String principal)
|
Ace(String principal, boolean negative, boolean protectedAce, boolean inherited, String inheritedFrom)
|
inherited
protected boolean inherited
Inherited.
inheritedFrom
protected String inheritedFrom
Inherited from.
negative
protected boolean negative
Negative (deny) flag.
principal
protected String principal
Principal.
privileges
protected Vector privileges
Privileges this ACE grants or denies.
property
protected PropertyName property
Property. Only used if principal.equals("property").
protectedAce
protected boolean protectedAce
Protected.
Ace
public Ace(String principal)
Ace
public Ace(String principal,
boolean negative,
boolean protectedAce,
boolean inherited,
String inheritedFrom)
addPrivilege
public void addPrivilege(Privilege privilege)
Add privilege.
clearPrivileges
public void clearPrivileges()
Clear privileges.
enumeratePrivileges
public Enumeration enumeratePrivileges()
Enumerate privileges.
equals
public boolean equals(Object o)
getInheritedFrom
public String getInheritedFrom()
Inherited from accessor.
getPrincipal
public String getPrincipal()
Principal accessor.
getProperty
public PropertyName getProperty()
Property accessor.
- 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".
hashCode
public int hashCode()
isInherited
public boolean isInherited()
Inherited accessor.
isNegative
public boolean isNegative()
Negative accessor.
isProtected
public boolean isProtected()
Protected accessor.
removePrivilege
public boolean removePrivilege(Privilege privilege)
Remove privilege.
setInherited
public void setInherited(boolean inherited)
Inherited mutator.
setInheritedFrom
public void setInheritedFrom(String inheritedFrom)
Inherited from mutator.
setNegative
public void setNegative(boolean negative)
Negative mutator.
setPrincipal
public void setPrincipal(String principal)
Principal mutator.
setProperty
public void setProperty(PropertyName property)
Property mutator.
property
- the property to compare if the principal is "property"
setProtected
public void setProtected(boolean protectedAce)
Protected mutator.
toString
public String toString()