public class SimpleRoleGroup extends SimpleRole implements RoleGroup
ANYBODY, ANYBODY_ROLE| Constructor and Description |
|---|
SimpleRoleGroup(Group rolesGroup) |
SimpleRoleGroup(Set<Principal> rolesAsPrincipals) |
SimpleRoleGroup(String roleName) |
SimpleRoleGroup(String roleName,
Collection<Role> roles) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Collection<Role> roles) |
void |
addRole(Role role) |
void |
clearRoles() |
Object |
clone() |
boolean |
containsAll(Role anotherRole) |
boolean |
containsAtleastOneRole(RoleGroup anotherRole) |
boolean |
containsRole(Role role) |
Collection<Role> |
getRoles() |
RoleType |
getType() |
void |
removeRole(Role role) |
String |
toString() |
equals, getParent, getRoleName, hashCodefinalize, getClass, notify, notifyAll, wait, wait, waitgetParent, getRoleNamepublic SimpleRoleGroup(String roleName)
public SimpleRoleGroup(String roleName, Collection<Role> roles)
public SimpleRoleGroup(Group rolesGroup)
public RoleType getType()
getType in interface RolegetType in class SimpleRolepublic void addAll(Collection<Role> roles)
public void removeRole(Role role)
removeRole in interface RoleGrouppublic void clearRoles()
clearRoles in interface RoleGrouppublic Collection<Role> getRoles()
public Object clone() throws CloneNotSupportedException
clone in class SimpleRoleCloneNotSupportedExceptionpublic boolean containsAll(Role anotherRole)
containsAll in interface RolecontainsAll in class SimpleRoleRole#contains(Role)public boolean containsAtleastOneRole(RoleGroup anotherRole)
containsAtleastOneRole in interface RoleGrouppublic boolean containsRole(Role role)
containsRole in interface RoleGrouppublic String toString()
toString in class SimpleRoleCopyright © 2018 JBoss by Red Hat. All rights reserved.