corelib.security
Class Role

java.lang.Object
  extended by corelib.security.Role

public class Role
extends java.lang.Object

This class represents the concept of role. A role is associated with a or more users (eg the user John Doe who has an administrator role).

Since:
0.3.6
Author:
Dominique Liard

Method Summary
 boolean equals(java.lang.Object obj)
           
 int getIdentifier()
          Returns the unique identifier for this role.
 java.lang.String getRoleName()
          Returns the name of this role.
 int hashCode()
           
 void setRoleName(java.lang.String newRoleName)
          Changes the name of this role.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIdentifier

public int getIdentifier()
Returns the unique identifier for this role.

Returns:
The unique identifier.
See Also:
setIdentifier(int)

getRoleName

public java.lang.String getRoleName()
Returns the name of this role.

Returns:
Role name.
See Also:
setRoleName(java.lang.String)

setRoleName

public void setRoleName(java.lang.String newRoleName)
Changes the name of this role.

Parameters:
newRoleName - The new name of the role.
See Also:
getRoleName()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.