|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccessControlGlobalRuntimeModel
The AccessControlGlobalRuntimeModel
provides read access to the
current access control permissions on any resource that is registered at
Portal Access Control. Use this interface to evaluate if the current user or
any other user has been assigned a defined set of privileges.
Permission
Method Summary | |
---|---|
boolean |
hasPermission(Permission p)
This method calculates if the current user has been granted at least the given permission. |
boolean |
hasPermission(Principal principal,
Permission p)
This method calculates if the given principal has been granted at least the given permission. |
boolean |
hasPermission(Principal principal,
java.util.Set<Permission> p)
This method calculates if the given principal has been granted at least the given set of permissions. |
boolean |
hasPermission(java.util.Set<Permission> p)
This method calculates if the current user has been granted at least the given set of permission. |
Method Detail |
---|
boolean hasPermission(Permission p) throws AccessControlException, SystemException
p
- the Permission to be checked
AccessControlException
- will be thrown if any access control
related error occurs
SystemException
- will be thrown if a system resource problem, e.g.
a database exception, occursboolean hasPermission(java.util.Set<Permission> p) throws AccessControlException, SystemException
p
- the set of Permissions to be checked
AccessControlException
- will be thrown if any access control
related error occurs
SystemException
- will be thrown if a system resource problem, e.g.
a database exception, occursboolean hasPermission(Principal principal, Permission p) throws AccessControlException, SystemException
principal
- to check the permissions forp
- the Permission to be checked
AccessControlException
- will be thrown if any access control
related error occurs
SystemException
- will be thrown if a system resource problem, e.g.
a database exception, occursboolean hasPermission(Principal principal, java.util.Set<Permission> p) throws AccessControlException, SystemException
principal
- to check the permissions forp
- the set of Permissions to the checked
AccessControlException
- will be thrown if any access control
related error occurs
SystemException
- will be thrown if a system resource problem, e.g.
a database exception, occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |