org.jboss.security.identity.plugins
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,
List<Role> roles) |
Modifier and Type | Method and Description |
---|---|
void |
addAll(List<Role> roles) |
void |
addRole(Role role) |
void |
clearRoles() |
Object |
clone() |
boolean |
containsAll(Role anotherRole) |
boolean |
containsAtleastOneRole(RoleGroup anotherRole) |
boolean |
containsRole(Role role) |
List<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(Group rolesGroup)
public RoleType getType()
getType
in interface Role
getType
in class SimpleRole
public void removeRole(Role role)
removeRole
in interface RoleGroup
public void clearRoles()
clearRoles
in interface RoleGroup
public Object clone() throws CloneNotSupportedException
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 © 2015 JBoss Inc.. All Rights Reserved.