tyrex.security.container.helper
Class RolesRealm.Role

java.lang.Object
  extended bytyrex.security.container.helper.RolesRealm.Role
Enclosing class:
RolesRealm

static class RolesRealm.Role
extends java.lang.Object

Definition of a role is a name and members list.


Nested Class Summary
(package private) static class RolesRealm.Role.MemberEntry
          An entry for each member in the hashtable.
 
Constructor Summary
(package private) RolesRealm.Role(java.lang.String roleName, java.lang.String[] members)
          Construct a new role with the given role name and list of members.
 
Method Summary
(package private)  void addMembers(java.lang.String[] members)
          Add members to the role.
(package private)  java.lang.String getRoleName()
          Returns the role name.
(package private)  boolean isInRole(java.lang.String member)
          Returns true if the named member is a member of this role.
(package private)  java.lang.String[] listMembers()
          Lists all the members in the role.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolesRealm.Role

RolesRealm.Role(java.lang.String roleName,
                java.lang.String[] members)
Construct a new role with the given role name and list of members.

Parameters:
roleName - The role name
members - Array of zero or more members
Method Detail

getRoleName

java.lang.String getRoleName()
Returns the role name.

Returns:
The role name

addMembers

void addMembers(java.lang.String[] members)
Add members to the role.


isInRole

boolean isInRole(java.lang.String member)
Returns true if the named member is a member of this role.

Parameters:
member - Member name
Returns:
True if listed in role

listMembers

java.lang.String[] listMembers()
Lists all the members in the role.

Returns:
An array of zero or more members


Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.