org.apache.webdav.lib

Class Ace


public class Ace
extends java.lang.Object

This interface models a DAV Access control entry.
Version:
$Revision: 1.4.2.1 $

Field Summary

protected boolean
inherited
Inherited.
protected String
inheritedFrom
Inherited from.
protected boolean
negative
Negative (deny) flag.
protected String
principal
Principal.
protected Vector
privileges
Privileges this ACE grants or denies.
protected PropertyName
property
Property.
protected boolean
protectedAce
Protected.

Constructor Summary

Ace(String principal)
Ace(String principal, boolean negative, boolean protectedAce, boolean inherited, String inheritedFrom)

Method Summary

void
addPrivilege(Privilege privilege)
Add privilege.
void
clearPrivileges()
Clear privileges.
Enumeration
enumeratePrivileges()
Enumerate privileges.
boolean
equals(Object o)
String
getInheritedFrom()
Inherited from accessor.
String
getPrincipal()
Principal accessor.
PropertyName
getProperty()
Property accessor.
int
hashCode()
boolean
isInherited()
Inherited accessor.
boolean
isNegative()
Negative accessor.
boolean
isProtected()
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.
String
toString()

Field Details

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.

Constructor Details

Ace

public Ace(String principal)

Ace

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

Method Details

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.
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".

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.
Parameters:
property - the property to compare if the principal is "property"
See Also:
getProperty()

setProtected

public void setProtected(boolean protectedAce)
Protected mutator.

toString

public String toString()