public class Ace
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 PropertyName |
property
Property.
|
protected boolean |
protectedAce
Protected.
|
Constructor and Description |
---|
Ace(java.lang.String principal) |
Ace(java.lang.String principal,
boolean negative,
boolean protectedAce,
boolean inherited,
java.lang.String inheritedFrom) |
Modifier and Type | Method and Description |
---|---|
void |
addPrivilege(Privilege privilege)
Add privilege.
|
void |
clearPrivileges()
Clear privileges.
|
java.util.Enumeration |
enumeratePrivileges()
Enumerate privileges.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getInheritedFrom()
Inherited from accessor.
|
java.lang.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(java.lang.String inheritedFrom)
Inherited from mutator.
|
void |
setNegative(boolean negative)
Negative mutator.
|
void |
setPrincipal(java.lang.String principal)
Principal mutator.
|
void |
setProperty(PropertyName property)
Property mutator.
|
void |
setProtected(boolean protectedAce)
Protected mutator.
|
java.lang.String |
toString() |
protected java.lang.String principal
protected boolean negative
protected java.util.Vector privileges
protected boolean protectedAce
protected boolean inherited
protected java.lang.String inheritedFrom
protected PropertyName property
public Ace(java.lang.String principal)
public Ace(java.lang.String principal, boolean negative, boolean protectedAce, boolean inherited, java.lang.String inheritedFrom)
public java.lang.String getPrincipal()
public void setPrincipal(java.lang.String principal)
public boolean isNegative()
public void setNegative(boolean negative)
public boolean isProtected()
public void setProtected(boolean protectedAce)
public boolean isInherited()
public void setInherited(boolean inherited)
public java.lang.String getInheritedFrom()
public void setInheritedFrom(java.lang.String inheritedFrom)
public PropertyName getProperty()
setProperty(PropertyName)
public void setProperty(PropertyName property)
property
- the property to compare if the principal is "property"getProperty()
public java.util.Enumeration enumeratePrivileges()
public void addPrivilege(Privilege privilege)
public boolean removePrivilege(Privilege privilege)
public void clearPrivileges()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object