org.jboss.security.idm
Class Role

java.lang.Object
  extended by org.jboss.security.idm.Role
All Implemented Interfaces:
java.io.Serializable

public class Role
extends java.lang.Object
implements java.io.Serializable

Role represents an authorization group used by an Authorization system to grant appropriate access. A role consists of users that are considered members of that role.

Author:
Sohil Shah - sohil.shah@jboss.com - Jun 1, 2006
See Also:
Serialized Form

Constructor Summary
Role()
          Initializes a role object
 
Method Summary
 java.util.Collection getIdentities()
          Return a collection of identities which represent all users/members that belong to this role
 java.lang.String getName()
          Return the role name
 void setIdentities(java.util.Collection identities)
          Sets a collection of identities which represent all users/members that belong to this role
 void setName(java.lang.String name)
          Sets the name of the role
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Role

public Role()
Initializes a role object

Method Detail

getName

public java.lang.String getName()
Return the role name

Returns:

setName

public void setName(java.lang.String name)
Sets the name of the role

Parameters:
name -

getIdentities

public java.util.Collection getIdentities()
Return a collection of identities which represent all users/members that belong to this role

Returns:

setIdentities

public void setIdentities(java.util.Collection identities)
Sets a collection of identities which represent all users/members that belong to this role

Parameters:
identities -