org.jboss.security.identity
Interface Role

All Superinterfaces:
Serializable
All Known Subinterfaces:
RoleGroup

public interface Role
extends Serializable

Represents a Role

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

Method Summary
 boolean containsAll(Role anotherRole)
          Indicate whether the argument role is equal or contained depending on the role-type
 Role getParent()
          Gets a reference to the parent role, if one is available.
 String getRoleName()
          Get Name of the Role
 RoleType getType()
          Get type of role
 

Method Detail

getRoleName

String getRoleName()
Get Name of the Role

Returns:

getType

RoleType getType()
Get type of role

Returns:
simple,group

containsAll

boolean containsAll(Role anotherRole)
Indicate whether the argument role is equal or contained depending on the role-type

Parameters:
anotherRole -
Returns:
true or false

getParent

Role getParent()
Gets a reference to the parent role, if one is available.

Returns:
a reference to the parent role if one exists; null otherwise.


Copyright © 2011 JBoss Inc.. All Rights Reserved.