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, hashCode
finalize, getClass, notify, notifyAll, wait, wait, wait
getParent, getRoleName
public SimpleRoleGroup(String roleName)
public SimpleRoleGroup(String roleName, Collection<Role> roles)
public SimpleRoleGroup(Group rolesGroup)
public RoleType getType()
getType
in interface Role
getType
in class SimpleRole
public void addAll(Collection<Role> roles)
public void removeRole(Role role)
removeRole
in interface RoleGroup
public void clearRoles()
clearRoles
in interface RoleGroup
public Collection<Role> getRoles()
public Object clone() throws CloneNotSupportedException
clone
in interface RoleGroup
clone
in class SimpleRole
CloneNotSupportedException
public boolean containsAll(Role anotherRole)
containsAll
in interface Role
containsAll
in class SimpleRole
Role#contains(Role)
public boolean containsAtleastOneRole(RoleGroup anotherRole)
containsAtleastOneRole
in interface RoleGroup
public boolean containsRole(Role role)
containsRole
in interface RoleGroup
public String toString()
toString
in class SimpleRole
Copyright © 2019 JBoss by Red Hat. All rights reserved.