@Entity public class User extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
|
User()
Default empty constructor (required by JPA).
|
|
User(String login,
String email,
String password)
Utility constructor using required attributes.
|
protected |
User(String login,
String password,
String email,
String name,
String lastName,
String address,
String city,
String province,
String country,
String postalCode,
String phoneNumber,
Date birthDate,
String facebookProfile,
String twitterProfile,
String instagramProfile,
Date deleted,
UserRole role,
String preregistrationCode,
Player ownPlayer) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Set the logical deleted state of the user, setting the deletion date to
current timestamp
|
boolean |
equals(Object object)
equals method for the user, based on login String |
String |
getAddress()
Get the address of the user.
|
Date |
getBirthDate()
Get the birth date of the user.
|
String |
getCity()
Get the city of the user.
|
String |
getCountry()
Get the country of the user.
|
Date |
getDeleted()
Get the deletion time of the user.
|
String |
getEmail()
Get the email of the user.
|
String |
getFacebookProfile()
Get the facebook profile of the user.
|
String |
getInstagramProfile()
Get the instagram profile of the user.
|
String |
getLastName()
Get the last name of the user.
|
String |
getLogin()
Get the login of the user.
|
String |
getName()
Get the name of the user.
|
Player |
getOwnPlayer()
Get the player profile of the user.
|
String |
getPassword()
Get the password of the user.
|
String |
getPhoneNumber()
Get the phone number of the user.
|
String |
getPostalCode()
Get the postal code of the user.
|
String |
getPreregistrationCode()
Get the preregistration code of the user.
|
String |
getProvince()
Get the province/state of the user.
|
UserRole |
getRole()
Get the role for the user in LIGAaaS application.
|
String |
getTwitterProfile()
Get the twitter profile of the user.
|
int |
hashCode() |
boolean |
isDeleted()
Get the deletion state of the user
|
boolean |
isRegistered()
Get whether the user already registered or not
|
void |
register()
Set the user as an registered on, assigning the correct role and setting to
null the preregistration code
|
void |
setAddress(String address)
Set the address of the user.
|
void |
setBirthDate(Date birthDate)
Set the birth date of the user.
|
void |
setCity(String city)
Set the city of the user.
|
void |
setCountry(String country)
Set the country of the user.
|
void |
setDeleted(Date deleted)
Set the deletion date of the user.
|
void |
setEmail(String email)
Set the email of the user.
|
void |
setFacebookProfile(String facebookProfile)
Set the facebook profile of the user.
|
void |
setInstagramProfile(String instagramProfile)
Set the instagram profile of the user.
|
void |
setLastName(String lastName)
Set the lastname of the user.
|
void |
setLogin(String login)
Set the login of the user.
|
void |
setName(String name)
Set the name of the user.
|
void |
setOwnPlayer(Player ownPlayer)
Set the Player profile for the user.
|
void |
setPassword(String password)
Set the password of the user.
|
void |
setPhoneNumber(String phoneNumber)
Set the phone number of the user.
|
void |
setPostalCode(String postalCode)
Set the postal code of the user.
|
void |
setPreregistrationCode(String preregistrationCode)
Set the preregistration code for the user.
|
void |
setProvince(String province)
Set the province or state of the user.
|
void |
setRole(UserRole role)
Set the role for the user in LIGAaaS application.
|
void |
setTwitterProfile(String twitterProfile)
Set the twitter profile of the user.
|
String |
toString()
toString method for the user, based on login String |
void |
undelete()
Set the logical undeleted state of the user, setting the deletion date to
null
|
public User()
public User(String login, String email, String password)
login - login to be setemail - email to be setpassword - password to be setprotected User(String login, String password, String email, String name, String lastName, String address, String city, String province, String country, String postalCode, String phoneNumber, Date birthDate, String facebookProfile, String twitterProfile, String instagramProfile, Date deleted, UserRole role, String preregistrationCode, Player ownPlayer)
public boolean isDeleted()
public void delete()
public void undelete()
public boolean isRegistered()
public void register()
public String getLogin()
public void setLogin(String login)
login - login to be setpublic String getPassword()
public void setPassword(String password)
password - password to be setpublic String getEmail()
public void setEmail(String email)
email - email to be setpublic String getName()
public void setName(String name)
name - name to be setpublic String getLastName()
public void setLastName(String lastName)
lastName - lastname to be setpublic String getAddress()
public void setAddress(String address)
address - address to be setpublic String getCity()
public void setCity(String city)
city - city to be setpublic String getProvince()
public void setProvince(String province)
province - province/state to be setpublic String getPostalCode()
public void setPostalCode(String postalCode)
postalCode - postal code to be setpublic String getCountry()
public void setCountry(String country)
country - country to be setpublic String getPhoneNumber()
public void setPhoneNumber(String phoneNumber)
phoneNumber - phone number to be setpublic Date getBirthDate()
public void setBirthDate(Date birthDate)
birthDate - birth date to be setpublic String getFacebookProfile()
public void setFacebookProfile(String facebookProfile)
facebookProfile - facebook profile to be setpublic String getTwitterProfile()
public void setTwitterProfile(String twitterProfile)
twitterProfile - twitter profile to be setpublic String getInstagramProfile()
public void setInstagramProfile(String instagramProfile)
instagramProfile - instagram profile to be setpublic Date getDeleted()
public void setDeleted(Date deleted)
deleted - date when the user was deletedpublic Player getOwnPlayer()
public void setOwnPlayer(Player ownPlayer)
ownPlayer - player profile for the userpublic String getPreregistrationCode()
public void setPreregistrationCode(String preregistrationCode)
preregistrationCode - preregistration code for the userpublic UserRole getRole()
public void setRole(UserRole role)
role - role for the userpublic boolean equals(Object object)
equals method for the user, based on login StringCopyright © 2018. All rights reserved.