|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccessControlRuntimeModel
The AccessControlRuntimeModel
provides read access to the
current access control permissions on one resource. Use this interface to
evaluate if the current user or any other user has been granted the access
level represented by a specific RoleType
Method Summary | |
---|---|
boolean |
hasPermission(Principal principal,
RoleType accessLevel)
This method calculates if the given principal has been granted at least the privileges represented by the given RoleType. |
boolean |
hasPermission(RoleType accessLevel)
This method calculates if the current user has been granted at least the privileges represented by the given RoleType. |
boolean |
isOwner()
This method returns true if the current user is the owner of the resource. |
boolean |
isPrivate()
This method returns true if the resource is a private resource. |
Method Detail |
---|
boolean hasPermission(RoleType accessLevel) throws AccessControlException, SystemException
accessLevel
- the RoleType 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, occursboolean hasPermission(Principal principal, RoleType accessLevel) throws AccessControlException, SystemException
principal
- to check the permissions foraccessLevel
- the RoleType 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, occursboolean isOwner() throws AccessControlException, SystemException
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 isPrivate() throws AccessControlException, SystemException
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 |