Package org.apache.webdav.lib
Class Ace
- java.lang.Object
-
- org.apache.webdav.lib.Ace
-
public class Ace extends java.lang.ObjectThis interface models a DAV Access control entry.- Version:
- $Revision: 1.4.2.1 $
-
-
Field Summary
Fields Modifier and Type Field Description protected booleaninheritedInherited.protected java.lang.StringinheritedFromInherited from.protected booleannegativeNegative (deny) flag.protected java.lang.StringprincipalPrincipal.protected java.util.VectorprivilegesPrivileges this ACE grants or denies.protected PropertyNamepropertyProperty.protected booleanprotectedAceProtected.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPrivilege(Privilege privilege)Add privilege.voidclearPrivileges()Clear privileges.java.util.EnumerationenumeratePrivileges()Enumerate privileges.booleanequals(java.lang.Object o)java.lang.StringgetInheritedFrom()Inherited from accessor.java.lang.StringgetPrincipal()Principal accessor.PropertyNamegetProperty()Property accessor.inthashCode()booleanisInherited()Inherited accessor.booleanisNegative()Negative accessor.booleanisProtected()Protected accessor.booleanremovePrivilege(Privilege privilege)Remove privilege.voidsetInherited(boolean inherited)Inherited mutator.voidsetInheritedFrom(java.lang.String inheritedFrom)Inherited from mutator.voidsetNegative(boolean negative)Negative mutator.voidsetPrincipal(java.lang.String principal)Principal mutator.voidsetProperty(PropertyName property)Property mutator.voidsetProtected(boolean protectedAce)Protected mutator.java.lang.StringtoString()
-
-
-
Field Detail
-
principal
protected java.lang.String principal
Principal.
-
negative
protected boolean negative
Negative (deny) flag.
-
privileges
protected java.util.Vector privileges
Privileges this ACE grants or denies.
-
protectedAce
protected boolean protectedAce
Protected.
-
inherited
protected boolean inherited
Inherited.
-
inheritedFrom
protected java.lang.String inheritedFrom
Inherited from.
-
property
protected PropertyName property
Property. Only used if principal.equals("property").
-
-
Method Detail
-
getPrincipal
public java.lang.String getPrincipal()
Principal accessor.
-
setPrincipal
public void setPrincipal(java.lang.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 java.lang.String getInheritedFrom()
Inherited from accessor.
-
setInheritedFrom
public void setInheritedFrom(java.lang.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(PropertyName)
-
setProperty
public void setProperty(PropertyName property)
Property mutator.- Parameters:
property- the property to compare if the principal is "property"- See Also:
getProperty()
-
enumeratePrivileges
public java.util.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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-