|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wiki.auth.acl.AclImpl
public class AclImpl
JSPWiki implementation of an Access Control List.
Constructor Summary | |
---|---|
AclImpl()
Constructs a new AclImpl instance. |
Method Summary | |
---|---|
boolean |
addEntry(AclEntry entry)
Adds an ACL entry to this ACL. |
Enumeration<AclEntry> |
entries()
Returns an enumeration of the entries in this ACL. |
Principal[] |
findPrincipals(Permission permission)
Returns all Principal objects assigned a given Permission in the access control list. |
AclEntry |
getEntry(Principal principal)
Returns an AclEntry for a supplied Principal, or null if
the Principal does not have a matching AclEntry. |
boolean |
isEmpty()
Returns true , if this Acl is empty. |
boolean |
removeEntry(AclEntry entry)
Removes an ACL entry from this ACL. |
String |
toString()
Returns a string representation of the contents of this Acl. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AclImpl()
Method Detail |
---|
public Principal[] findPrincipals(Permission permission)
findPrincipals
in interface Acl
permission
- the permission to search for
public boolean addEntry(AclEntry entry)
addEntry
in interface Acl
entry
- - the ACL entry to be added to this ACL
public boolean removeEntry(AclEntry entry)
removeEntry
in interface Acl
entry
- the ACL entry to be removed from this ACL
public Enumeration<AclEntry> entries()
entries
in interface Acl
public AclEntry getEntry(Principal principal)
null
if
the Principal does not have a matching AclEntry.
getEntry
in interface Acl
principal
- the principal to search for
null
public String toString()
toString
in interface Acl
toString
in class Object
public boolean isEmpty()
true
, if this Acl is empty.
isEmpty
in interface Acl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |