@Entity public class User extends Object
| Constructor and Description |
|---|
User()
Instantiates a new user.
|
User(String userLogin,
String userName,
String userSurname,
String userPassword,
Date userBirthdate,
String userIdentificationDocument,
String userResidence,
String userLocality,
String userProvince,
String userCountry,
String userPhone,
String userTwitter,
String userFacebook,
String userInstagram,
String userEmail,
boolean userConfirmed)
Instantiates a new
User. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns if two classes are equals
|
Date |
getUserBirthdate()
Gets the user birthdate.
|
String |
getUserCountry()
Gets the user country.
|
String |
getUserEmail()
Gets the user email.
|
String |
getUserFacebook()
Gets the user facebook.
|
long |
getUserId()
Gets the user id.
|
String |
getUserIdentificationDocument()
Gets the user identification document.
|
String |
getUserInstagram()
Gets the user instagram.
|
String |
getUserLocality()
Gets the user locality.
|
String |
getUserLogin()
Gets the user login.
|
String |
getUserName()
Gets the user name.
|
String |
getUserPassword()
Gets the user password.
|
String |
getUserPhone()
Gets the user phone.
|
String |
getUserProvince()
Gets the user province.
|
String |
getUserResidence()
Gets the user residence.
|
String |
getUserSurname()
Gets the user surname.
|
String |
getUserTwitter()
Gets the user twitter.
|
int |
hashCode()
Returns the hashCode of the User.
|
boolean |
isUserConfirmed()
Checks if is user confirmed.
|
void |
setUserBirthdate(Date userBirthdate)
Sets the user birthdate.
|
void |
setUserConfirmed(boolean userConfirmed)
Sets the user confirmed.
|
void |
setUserCountry(String userCountry)
Sets the user country.
|
void |
setUserEmail(String userEmail)
Sets the user email.
|
void |
setUserFacebook(String userFacebook)
Sets the user facebook.
|
void |
setUserIdentificationDocument(String userIdentificationDocument)
Sets the user identification document.
|
void |
setUserInstagram(String userInstagram)
Sets the user instagram.
|
void |
setUserLocality(String userLocality)
Sets the user locality.
|
void |
setUserLogin(String userLogin)
Sets the user login.
|
void |
setUserName(String userName)
Sets the user name.
|
void |
setUserPassword(String userPassword)
Sets the user password.
|
void |
setUserPhone(String userPhone)
Sets the user phone.
|
void |
setUserProvince(String userProvince)
Sets the user province.
|
void |
setUserResidence(String userResidence)
Sets the user residence.
|
void |
setUserSurname(String userSurname)
Sets the user surname.
|
void |
setUserTwitter(String userTwitter)
Sets the user twitter.
|
public User()
public User(String userLogin, String userName, String userSurname, String userPassword, Date userBirthdate, String userIdentificationDocument, String userResidence, String userLocality, String userProvince, String userCountry, String userPhone, String userTwitter, String userFacebook, String userInstagram, String userEmail, boolean userConfirmed)
User.userLogin - the user login. This parameter must be a non empty and non
nulluserName - the user name. This parameter cannot be null and have a
length between 5 and 60 characters.userSurname - the user surname. This parameter cannot be null and have a
length between 5 and 60 characters.userPassword - the user password. This parameter cannot be null and have
a length between 8 and 60 characters. It also has to comply with
RegexTemplates.PASSWORDuserBirthdate - the user birthdate.userIdentificationDocument - the user identification document. This parameter has to have a
length between 9 and 10 characters.userResidence - the user residence. This parameter has a limit of 100 charactersuserLocality - the user locality. This parameter has a limit of 100 charactersuserProvince - the user province. This parameter has a limit of 100 charactersuserCountry - the user country. This parameter has a limit of 100 charactersuserPhone - the user phone. This parameter has to comply with
RegexTemplates.PHONEuserTwitter - the user twitter. This parameter has to have between 10 and 100
charactersuserFacebook - the user facebook. This parameter has to have between 10 and 100
charactersuserInstagram - the user instagram. This parameter has to have between 10 and 100
charactersuserEmail - the user email. This parameter must be non null, to have
between 5 and 40 characters, and comply with
RegexTemplates.EMAILuserConfirmed - the user confirmed. This parameter must be non nullNullPointerException - if a null value is passed as the value for any parameter.IllegalArgumentException - if value provided for any parameter is not valid according to its
description.public long getUserId()
public String getUserLogin()
public void setUserLogin(String userLogin)
userLogin - the new user loginNullPointerException - if a null value is passedIllegalArgumentException - if the length of the string passed is not valid.public String getUserName()
public void setUserName(String userName)
userName - the new user nameNullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public String getUserSurname()
public void setUserSurname(String userSurname)
userSurname - the new user surnameNullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public String getUserPassword()
public void setUserPassword(String userPassword)
userPassword - the new user passwordNullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public String getUserEmail()
public void setUserEmail(String userEmail)
userEmail - the new user emailNullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public Date getUserBirthdate()
public void setUserBirthdate(Date userBirthdate)
userBirthdate - the new user birthdatepublic String getUserIdentificationDocument()
public void setUserIdentificationDocument(String userIdentificationDocument)
userIdentificationDocument - the new user identification documentNullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public String getUserResidence()
public void setUserResidence(String userResidence)
userResidence - the new user residenceIllegalArgumentException - if the length of the string passed is not valid.public String getUserLocality()
public void setUserLocality(String userLocality)
userLocality - the new user localityIllegalArgumentException - if the length of the string passed is not valid.public String getUserProvince()
public void setUserProvince(String userProvince)
userProvince - the new user provinceIllegalArgumentException - if the length of the string passed is not valid.public String getUserCountry()
public void setUserCountry(String userCountry)
userCountry - the new user countryIllegalArgumentException - if the length of the string passed is not valid.public String getUserPhone()
public void setUserPhone(String userPhone)
userPhone - the new user phoneIllegalArgumentException - if the length of the string passed is not valid.public String getUserTwitter()
public void setUserTwitter(String userTwitter)
userTwitter - the new user twitterIllegalArgumentException - if the length of the string passed is not valid.public String getUserFacebook()
public void setUserFacebook(String userFacebook)
userFacebook - the new user facebookIllegalArgumentException - if the length of the string passed is not valid.public String getUserInstagram()
public void setUserInstagram(String userInstagram)
userInstagram - the new user instagramIllegalArgumentException - if the length of the string passed is not valid.public boolean isUserConfirmed()
public void setUserConfirmed(boolean userConfirmed)
userConfirmed - the new user confirmedpublic int hashCode()
Copyright © 2017. All rights reserved.