|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.core.EntityObject org.figure8.join.businessobjects.security.User
public class User
This is en entity representing a User within Join system.
Constructor Summary | |
---|---|
User()
Creates a new instance of User. |
|
User(java.lang.String login,
java.lang.String password,
java.lang.String lastname,
java.lang.String firstname)
Creates a new instance of User with mandatory fields. |
Method Summary | |
---|---|
java.lang.String |
getFirstname()
|
long |
getId()
Get this entity unique identifier. |
java.lang.String |
getLastname()
|
java.lang.String |
getLogin()
|
java.lang.String |
getMail()
|
java.lang.String |
getName()
Implementation of java.security.Principal getName()
method. |
java.lang.String |
getPassword()
|
java.lang.String |
getPhone()
|
java.lang.String |
getTeam()
|
boolean |
isTransient()
Tell if this entity has already been persisted into datastore. |
void |
setFirstname(java.lang.String firstname)
|
void |
setId(long id)
Set this user unique identifier. |
void |
setLastname(java.lang.String lastname)
|
void |
setLogin(java.lang.String login)
|
void |
setMail(java.lang.String mail)
|
void |
setPassword(java.lang.String password)
|
void |
setPhone(java.lang.String phone)
|
void |
setTeam(java.lang.String team)
|
java.lang.String |
toString()
Implementation of java.security.Principal toString()
method. |
Methods inherited from class org.figure8.join.core.EntityObject |
---|
clone, equals, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode |
Constructor Detail |
---|
public User()
public User(java.lang.String login, java.lang.String password, java.lang.String lastname, java.lang.String firstname)
login
- This user login (must be unique)password
- This user password (encoded)lastname
- This user last namefirstname
- This user first nameMethod Detail |
---|
public void setId(long id)
id
- Long identifier to setpublic long getId()
getId
in class EntityObject
public boolean isTransient()
isTransient
in class EntityObject
public java.lang.String getLogin()
public void setLogin(java.lang.String login)
login
- This user loginpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- New password for this userpublic java.lang.String getLastname()
public void setLastname(java.lang.String lastname)
lastname
- New lastname for this userpublic java.lang.String getFirstname()
public void setFirstname(java.lang.String firstname)
firstname
- New firstname for this userpublic java.lang.String getMail()
public void setMail(java.lang.String mail)
mail
- New mail address for this userpublic java.lang.String getPhone()
public void setPhone(java.lang.String phone)
phone
- New phone number for this userpublic java.lang.String getTeam()
public void setTeam(java.lang.String team)
team
- New team description for this userpublic java.lang.String getName()
java.security.Principal
getName()
method. This implementation returns this user uniques identifier : its login.
getName
in interface java.security.Principal
public java.lang.String toString()
java.security.Principal
toString()
method. This implementation return this user summary : "lastname firstname"
toString
in interface java.security.Principal
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |