net.sf.jportlet.impl
Class UserImpl

java.lang.Object
  |
  +--net.sf.jportlet.impl.UserImpl
All Implemented Interfaces:
User

public class UserImpl
extends java.lang.Object
implements User

Implementation of User

Author:
Herve Tchepannou

Constructor Summary
UserImpl()
           
UserImpl(java.lang.String id, java.lang.String password, java.lang.String email, java.lang.String firstname, java.lang.String lastname, java.util.Locale locale)
           
 
Method Summary
 java.lang.String getEmail()
          User's email
 java.lang.String getFirstname()
          User's firstname
 java.lang.String getId()
          ID of the user
 java.lang.String getLastname()
          User's last name
 java.util.Locale getLocale()
          User's locale
 java.lang.String getPassword()
           
 boolean matchPassword(java.lang.String password)
          Check if a string match the password of the user
 void setEmail(java.lang.String email)
          Sets the email.
 void setFirstname(java.lang.String firstname)
          Sets the firstname.
 void setId(java.lang.String id)
          Sets the id.
 void setLastname(java.lang.String lastname)
          Sets the lastname.
 void setLocale(java.util.Locale locale)
          Sets the locale.
 void setPassword(java.lang.String password)
          Sets the password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserImpl

public UserImpl()

UserImpl

public UserImpl(java.lang.String id,
                java.lang.String password,
                java.lang.String email,
                java.lang.String firstname,
                java.lang.String lastname,
                java.util.Locale locale)
Method Detail

getEmail

public java.lang.String getEmail()
Description copied from interface: User
User's email

Specified by:
getEmail in interface User
Returns:
String
See Also:
User.getEmail()

getFirstname

public java.lang.String getFirstname()
Description copied from interface: User
User's firstname

Specified by:
getFirstname in interface User
Returns:
String
See Also:
User.getFirstname()

getId

public java.lang.String getId()
Description copied from interface: User
ID of the user

Specified by:
getId in interface User
Returns:
String
See Also:
User.getId()

getLastname

public java.lang.String getLastname()
Description copied from interface: User
User's last name

Specified by:
getLastname in interface User
Returns:
String
See Also:
User.getLastname()

getLocale

public java.util.Locale getLocale()
Description copied from interface: User
User's locale

Specified by:
getLocale in interface User
Returns:
Locale
See Also:
User.getLocale()

getPassword

public java.lang.String getPassword()
Returns:
String

matchPassword

public boolean matchPassword(java.lang.String password)
Description copied from interface: User
Check if a string match the password of the user

Specified by:
matchPassword in interface User
Parameters:
password -
Returns:
boolean
See Also:
User.matchPassword(java.lang.String)

setEmail

public void setEmail(java.lang.String email)
Sets the email.

Parameters:
email - The email to set

setFirstname

public void setFirstname(java.lang.String firstname)
Sets the firstname.

Parameters:
firstname - The firstname to set

setId

public void setId(java.lang.String id)
Sets the id.

Parameters:
id - The id to set

setLastname

public void setLastname(java.lang.String lastname)
Sets the lastname.

Parameters:
lastname - The lastname to set

setLocale

public void setLocale(java.util.Locale locale)
Sets the locale.

Parameters:
locale - The locale to set

setPassword

public void setPassword(java.lang.String password)
Sets the password.

Parameters:
password - The password to set


Copyright © 2002 Herve Tchepannou. All Rights Reserved.