Acl.checkPermission
Interface Overview | Interface Members |
This Package |
All Packages
public abstract boolean checkPermission( Principal principal,
Permission permission )
Parameters
- principal
- the principal, assumed to be a valid authenticated
Principal.
- permission
- the permission to be checked for.
Returns
true if the principal has the specified permission, false
otherwise.
Description
Checks whether or not the specified principal has the specified
permission. If it does, true is returned, otherwise false is returned.
More specifically, this method checks whether the passed permission
is a member of the allowed permission set of the specified principal.
The allowed permission set is determined by the same algorithm as is
used by the getPermissions method.
See Also
getPermissions