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.

Version:
$Revision: 1.3 $
Author:
Remy Maucherat, Dirk Verbeeck

Field Summary
protected  boolean inherited
          Inherited.
protected  java.lang.String inheritedFrom
          Inherited from.
protected  boolean negative
          Negative (deny) flag.
protected  java.lang.String principal
          Principal.
protected  java.util.Vector privileges
          Privileges this ACE grants or denies.
protected  boolean protectedAce
          Protected.
 
Constructor Summary
Ace(java.lang.String principal)
           
Ace(java.lang.String principal, boolean negative, boolean protectedAce, boolean inherited, java.lang.String inheritedFrom)
           
 
Method Summary
 void addPrivilege(Privilege privilege)
          Add privilege.
 void clearPrivileges()
          Clear privileges.
 java.util.Enumeration enumeratePrivileges()
          Enumerate privileges.
 java.lang.String getInheritedFrom()
          Inherited from accessor.
 java.lang.String getPrincipal()
          Principal accessor.
 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(java.lang.String inheritedFrom)
          Inherited from mutator.
 void setNegative(boolean negative)
          Negative mutator.
 void setPrincipal(java.lang.String principal)
          Principal mutator.
 void setProtected(boolean protectedAce)
          Protected mutator.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.
Constructor Detail

Ace

public Ace(java.lang.String principal)

Ace

public Ace(java.lang.String principal,
           boolean negative,
           boolean protectedAce,
           boolean inherited,
           java.lang.String inheritedFrom)
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.

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.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object