|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wiki.auth.acl.AclEntryImpl
public class AclEntryImpl

Implementation of a JSPWiki AclEntry.
| Constructor Summary | |
|---|---|
AclEntryImpl()
Constructs a new AclEntryImpl instance. |
|
| Method Summary | |
|---|---|
boolean |
addPermission(Permission permission)
Adds the specified permission to this ACL entry. |
boolean |
checkPermission(Permission permission)
Checks if the specified permission is part of the permission set in this entry. |
Principal |
getPrincipal()
Returns the principal for which permissions are granted by this ACL entry. |
Enumeration<Permission> |
permissions()
Returns an enumeration of the permissions in this ACL entry. |
boolean |
removePermission(Permission permission)
Removes the specified permission from this ACL entry. |
boolean |
setPrincipal(Principal user)
Specifies the principal for which permissions are granted or denied by this ACL entry. |
String |
toString()
Returns a string representation of the contents of this ACL entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AclEntryImpl()
| Method Detail |
|---|
public boolean addPermission(Permission permission)
PagePermission. Note: An entry
can have multiple permissions.
addPermission in interface AclEntrypermission - the permission to be associated with the principal in
this entry
true if the permission was added,
false if the permission was
already part of this entry's permission set, and false if
the permission is not of type PagePermissionpublic boolean checkPermission(Permission permission)
checkPermission in interface AclEntrypermission - the permission to be checked for.
public Principal getPrincipal()
getPrincipal in interface AclEntrypublic Enumeration<Permission> permissions()
permissions in interface AclEntrypublic boolean removePermission(Permission permission)
removePermission in interface AclEntrypermission - the permission to be removed from this entry.
public boolean setPrincipal(Principal user)
setPrincipal in interface AclEntryuser - the principal to be set for this entry
public String toString()
toString in interface AclEntrytoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||