org.jboss.security.identity.plugins
Class SimpleRoleGroup
java.lang.Object
org.jboss.security.identity.plugins.SimpleRole
org.jboss.security.identity.plugins.SimpleRoleGroup
- All Implemented Interfaces:
- Serializable, Cloneable, org.jboss.security.identity.Role, org.jboss.security.identity.RoleGroup
public class SimpleRoleGroup
- extends SimpleRole
- implements org.jboss.security.identity.RoleGroup
Simple Role Group
- Since:
- Nov 16, 2007
- Version:
- $Revision$
- Author:
- Anil.Saldhana@redhat.com
- See Also:
- Serialized Form
| Methods inherited from interface org.jboss.security.identity.Role |
getParent, getRoleName |
SimpleRoleGroup
public SimpleRoleGroup(String roleName)
SimpleRoleGroup
public SimpleRoleGroup(String roleName,
List<org.jboss.security.identity.Role> roles)
SimpleRoleGroup
public SimpleRoleGroup(Group rolesGroup)
SimpleRoleGroup
public SimpleRoleGroup(Set<Principal> rolesAsPrincipals)
getType
public org.jboss.security.identity.RoleType getType()
- Specified by:
getType in interface org.jboss.security.identity.Role- Overrides:
getType in class SimpleRole
addRole
public void addRole(org.jboss.security.identity.Role role)
- Specified by:
addRole in interface org.jboss.security.identity.RoleGroup
- See Also:
RoleGroup.addRole(Role)
removeRole
public void removeRole(org.jboss.security.identity.Role role)
- Specified by:
removeRole in interface org.jboss.security.identity.RoleGroup
- See Also:
RoleGroup.removeRole(Role)
clearRoles
public void clearRoles()
- Specified by:
clearRoles in interface org.jboss.security.identity.RoleGroup
- See Also:
RoleGroup.clearRoles()
getRoles
public List<org.jboss.security.identity.Role> getRoles()
- Specified by:
getRoles in interface org.jboss.security.identity.RoleGroup
- See Also:
RoleGroup.getRoles()
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone in class SimpleRole
- Throws:
CloneNotSupportedException
containsAll
public boolean containsAll(org.jboss.security.identity.Role anotherRole)
- Specified by:
containsAll in interface org.jboss.security.identity.Role- Overrides:
containsAll in class SimpleRole
- See Also:
Role#contains(Role)
containsAtleastOneRole
public boolean containsAtleastOneRole(org.jboss.security.identity.RoleGroup anotherRole)
- Specified by:
containsAtleastOneRole in interface org.jboss.security.identity.RoleGroup
- See Also:
RoleGroup.containsAtleastOneRole(RoleGroup)
containsRole
public boolean containsRole(org.jboss.security.identity.Role role)
- Specified by:
containsRole in interface org.jboss.security.identity.RoleGroup
- See Also:
RoleGroup.containsRole(Role)
toString
public String toString()
- Overrides:
toString in class SimpleRole
Copyright © 2008 JBoss Inc.. All Rights Reserved.