org.jboss.security.identity
Interface RoleGroup

All Superinterfaces:
Role, Serializable

public interface RoleGroup
extends Role

Represents a group of roles

Since:
Nov 16, 2007
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com

Method Summary
 void addRole(Role aRole)
          Add a role
 void clearRoles()
          Clear all the roles
 boolean containsAtleastOneRole(RoleGroup anotherRoleGroup)
          Validates whether there is at least one matching role in "anotherRoleGroup"
 boolean containsRole(Role aRole)
          Validates whether a simple role is available
 List<Role> getRoles()
          Get the roles contained
 void removeRole(Role aRole)
          Remove a role
 
Methods inherited from interface org.jboss.security.identity.Role
containsAll, getParent, getRoleName, getType
 

Method Detail

getRoles

List<Role> getRoles()
Get the roles contained

Returns:

addRole

void addRole(Role aRole)
Add a role

Parameters:
aRole -

clearRoles

void clearRoles()
Clear all the roles


removeRole

void removeRole(Role aRole)
Remove a role

Parameters:
aRole -

containsRole

boolean containsRole(Role aRole)
Validates whether a simple role is available

Parameters:
aRole - simple role
Returns:
Throws:
IllegalArgumentException - role is not simple

containsAtleastOneRole

boolean containsAtleastOneRole(RoleGroup anotherRoleGroup)
Validates whether there is at least one matching role in "anotherRoleGroup"

Parameters:
anotherRoleGroup - another role group
Returns:


Copyright © 2011 JBoss Inc.. All Rights Reserved.