Package org.apache.webdav.lib
Class Ace
java.lang.Object
org.apache.webdav.lib.Ace
This interface models a DAV Access control entry.
- Version:
- $Revision: 1.4.2.1 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Inherited.protected String
Inherited from.protected boolean
Negative (deny) flag.protected String
Principal.protected Vector
Privileges this ACE grants or denies.protected PropertyName
Property.protected boolean
Protected. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPrivilege
(Privilege privilege) Add privilege.void
Clear privileges.Enumerate privileges.boolean
Inherited from accessor.Principal accessor.Property accessor.int
hashCode()
boolean
Inherited accessor.boolean
Negative accessor.boolean
Protected accessor.boolean
removePrivilege
(Privilege privilege) Remove privilege.void
setInherited
(boolean inherited) Inherited mutator.void
setInheritedFrom
(String inheritedFrom) Inherited from mutator.void
setNegative
(boolean negative) Negative mutator.void
setPrincipal
(String principal) Principal mutator.void
setProperty
(PropertyName property) Property mutator.void
setProtected
(boolean protectedAce) Protected mutator.toString()
-
Field Details
-
principal
Principal. -
negative
protected boolean negativeNegative (deny) flag. -
privileges
Privileges this ACE grants or denies. -
protectedAce
protected boolean protectedAceProtected. -
inherited
protected boolean inheritedInherited. -
inheritedFrom
Inherited from. -
property
Property. Only used if principal.equals("property").
-
-
Constructor Details
-
Ace
-
Ace
-
-
Method Details
-
getPrincipal
Principal accessor. -
setPrincipal
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
Inherited from accessor. -
setInheritedFrom
Inherited from mutator. -
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
Property mutator.- Parameters:
property
- the property to compare if the principal is "property"- See Also:
-
enumeratePrivileges
Enumerate privileges. -
addPrivilege
Add privilege. -
removePrivilege
Remove privilege. -
clearPrivileges
public void clearPrivileges()Clear privileges. -
hashCode
public int hashCode() -
equals
-
toString
-