org.talika.tarsis.security
Class UserImpl

java.lang.Object
  extended by org.talika.tarsis.security.UserImpl
All Implemented Interfaces:
java.io.Serializable, User
Direct Known Subclasses:
MemoryUserImpl

public class UserImpl
extends java.lang.Object
implements User, java.io.Serializable

Implementatio of User interface.

Version:
$Revision: 124 $
Author:
Jose M. Palomar
See Also:
Serialized Form

Constructor Summary
UserImpl(java.lang.String login, java.lang.String name, java.util.Set roles)
          Creates a new UserImpl instance.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 java.lang.String getLogin()
          Returns login name of user.
 java.lang.String getRealName()
          Returns real name of user.
 java.util.Set getRoles()
          Returns roles of user.
 int hashCode()
          Returns a hash code value for the object.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserImpl

public UserImpl(java.lang.String login,
                java.lang.String name,
                java.util.Set roles)
Creates a new UserImpl instance.

Parameters:
login - String login name of user.
name - String real name of user.
roles - Set roles of user.
Method Detail

getLogin

public final java.lang.String getLogin()
Returns login name of user.

Specified by:
getLogin in interface User
Returns:
String login name of user.
See Also:
User.getLogin()

getRealName

public final java.lang.String getRealName()
Returns real name of user.

Specified by:
getRealName in interface User
Returns:
String real name of user.
See Also:
User.getRealName()

getRoles

public final java.util.Set getRoles()
Returns roles of user.

Specified by:
getRoles in interface User
Returns:
Set roles of user.
See Also:
User.getRoles()

equals

public final boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object the reference object with which to compare.
Returns:
boolean true if this object is the same as the obj argument; false otherwise.

hashCode

public final int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
int a hash code value for this object.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
String a string representation of the object.


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.