org.jboss.security.identity.plugins
Class SimpleRoleGroup

java.lang.Object
  extended by org.jboss.security.identity.plugins.SimpleRole
      extended by 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

Field Summary
 
Fields inherited from class org.jboss.security.identity.plugins.SimpleRole
ANYBODY, ANYBODY_ROLE
 
Constructor Summary
SimpleRoleGroup(Group rolesGroup)
           
SimpleRoleGroup(Set<Principal> rolesAsPrincipals)
           
SimpleRoleGroup(String roleName)
           
SimpleRoleGroup(String roleName, List<org.jboss.security.identity.Role> roles)
           
 
Method Summary
 void addRole(org.jboss.security.identity.Role role)
           
 void clearRoles()
           
 Object clone()
           
 boolean containsAll(org.jboss.security.identity.Role anotherRole)
           
 boolean containsAtleastOneRole(org.jboss.security.identity.RoleGroup anotherRole)
           
 boolean containsRole(org.jboss.security.identity.Role role)
           
 List<org.jboss.security.identity.Role> getRoles()
           
 org.jboss.security.identity.RoleType getType()
           
 void removeRole(org.jboss.security.identity.Role role)
           
 String toString()
           
 
Methods inherited from class org.jboss.security.identity.plugins.SimpleRole
getParent, getRoleName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.security.identity.Role
getParent, getRoleName
 

Constructor Detail

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)
Method Detail

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 © 2009 JBoss Inc.. All Rights Reserved.