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 booleanInherited.protected StringInherited from.protected booleanNegative (deny) flag.protected StringPrincipal.protected VectorPrivileges this ACE grants or denies.protected PropertyNameProperty.protected booleanProtected. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPrivilege(Privilege privilege) Add privilege.voidClear privileges.Enumerate privileges.booleanInherited from accessor.Principal accessor.Property accessor.inthashCode()booleanInherited accessor.booleanNegative accessor.booleanProtected accessor.booleanremovePrivilege(Privilege privilege) Remove privilege.voidsetInherited(boolean inherited) Inherited mutator.voidsetInheritedFrom(String inheritedFrom) Inherited from mutator.voidsetNegative(boolean negative) Negative mutator.voidsetPrincipal(String principal) Principal mutator.voidsetProperty(PropertyName property) Property mutator.voidsetProtected(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
-