public interface RoleGroup extends Role
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(List<Role> roles)
Adds all specified roles to the
RoleGroup instance. |
void |
addRole(Role aRole)
Add a role
|
void |
clearRoles()
Clear all the roles
|
boolean |
containsAtleastOneRole(RoleGroup anotherRoleGroup)
Validates whether there is at least one matching
role in "anotherRoleGroup"
|
boolean |
containsRole(Role aRole)
Validates whether a simple role is available
|
List<Role> |
getRoles()
Get the roles contained
|
void |
removeRole(Role aRole)
Remove a role
|
containsAll, getParent, getRoleName, getTypevoid addRole(Role aRole)
aRole - void addAll(List<Role> roles)
Adds all specified roles to the RoleGroup instance.
roles - a List containing the roles to be added to the RoleGroup.void clearRoles()
void removeRole(Role aRole)
aRole - boolean containsRole(Role aRole)
aRole - simple roleIllegalArgumentException - role is not simpleboolean containsAtleastOneRole(RoleGroup anotherRoleGroup)
anotherRoleGroup - another role groupCopyright © 2013 JBoss Inc.. All Rights Reserved.