public interface Role extends AAAObject
Role can be used to organize a list of permissions into a group. A AuthorizationService can associate a role instead of permission to a pricipal account
| Modifier and Type | Interface and Description |
|---|---|
static class |
Role.F |
| Modifier and Type | Method and Description |
|---|---|
List<Permission> |
getPermissions()
Returns a list of permissions associated with this role.
|
boolean |
hasPermission(Permission permission)
Check if the role contains a permission.
|
equals, getName, getProperty, hashCode, propertyKeys, setProperty, toString, unsetPropertyList<Permission> getPermissions()
Returns a list of permissions associated with this role.
Note the result of the method shall comply to the result of
AuthorizationService.getPermissions(Role, AAAContext)
It is up to the implementation to decide the dependency relationship
between the two
boolean hasPermission(Permission permission)
Check if the role contains a permission. Calling this method shall be equals to calling getPermissions().contains(permission)
permission - permissiontrue if the role has the permission or false otherwiseCopyright © 2017–2020 OSGL (Open Source General Library). All rights reserved.