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

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)
           
 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()
           
 String toString()
           
 
Methods inherited from class org.jboss.security.identity.plugins.SimpleRole
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
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)
See Also:
RoleGroup#addRole(Role)

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.