|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.jportlet.impl.UserImpl
Implementation of User
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 |
public 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 |
public java.lang.String getEmail()
User
getEmail
in interface User
User.getEmail()
public java.lang.String getFirstname()
User
getFirstname
in interface User
User.getFirstname()
public java.lang.String getId()
User
getId
in interface User
User.getId()
public java.lang.String getLastname()
User
getLastname
in interface User
User.getLastname()
public java.util.Locale getLocale()
User
getLocale
in interface User
User.getLocale()
public java.lang.String getPassword()
public boolean matchPassword(java.lang.String password)
User
matchPassword
in interface User
password
-
User.matchPassword(java.lang.String)
public void setEmail(java.lang.String email)
email
- The email to setpublic void setFirstname(java.lang.String firstname)
firstname
- The firstname to setpublic void setId(java.lang.String id)
id
- The id to setpublic void setLastname(java.lang.String lastname)
lastname
- The lastname to setpublic void setLocale(java.util.Locale locale)
locale
- The locale to setpublic void setPassword(java.lang.String password)
password
- The password to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |