public interface RoleGroup extends Role
Modifier and Type | Method and Description |
---|---|
void |
addAll(Collection<Role> roles)
Adds all specified roles to the role group.
|
void |
addRole(Role aRole)
Add a role
|
void |
clearRoles()
Clear all the roles
|
Object |
clone() |
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
|
Collection<Role> |
getRoles()
Get the roles contained in the
RoleGroup . |
void |
removeRole(Role aRole)
Remove a role
|
containsAll, getParent, getRoleName, getType
Collection<Role> getRoles()
Get the roles contained in the RoleGroup
. The returned List
should be unmodifiable as the
RoleGroup
interface provides methods to add and remove roles.
Collection
containing the RoleGroup
's roles.void addRole(Role aRole)
aRole
- void addAll(Collection<Role> roles)
Adds all specified roles to the role group.
roles
- the list of roles to be added.void clearRoles()
void removeRole(Role aRole)
aRole
- boolean containsRole(Role aRole)
aRole
- simple roleIllegalArgumentException
- role is not simpleboolean containsAtleastOneRole(RoleGroup anotherRoleGroup)
anotherRoleGroup
- another role groupObject clone() throws CloneNotSupportedException
CloneNotSupportedException
Copyright © 2021 JBoss by Red Hat. All rights reserved.