Class AppUser
java.lang.Object
org.eco.mubisoft.good_and_cheap.user.domain.model.AppUser
@Entity
public class AppUser
extends java.lang.Object
User of the application
The user class is used to manage the access to different application functionalities and to store the information of the different users.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Long
id
IDprivate java.lang.String
imgSrc
IMAGE SOURCEprivate Location
location
LOCATIONprivate java.lang.String
name
NAMEprivate java.lang.String
password
PASSWORDprivate java.util.Collection<Role>
roles
ROLESprivate java.lang.String
secondName
SECOND NAMEprivate java.lang.String
username
USERNAME -
Constructor Summary
Constructors Constructor Description AppUser()
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
id
private java.lang.Long idID
ID of the role.
-
name
private java.lang.String nameNAME
Depending on the user, the name attribute will store the first name of the user or the CIF number of the business.
-
secondName
private java.lang.String secondNameSECOND NAME
Depending on the user, the name attribute will store the second name of the user or the name of the business.
-
username
private java.lang.String usernameUSERNAME
An email will be used as the username for the account. It will be used by the authentication system. Each email must be unique.
-
password
private java.lang.String passwordPASSWORD
Authentication values for the user.
-
roles
ROLES
A list with the different roles of the user.
-
imgSrc
private java.lang.String imgSrcIMAGE SOURCE
A list with the different roles of the user.
-
location
LOCATION
The location of the user.
-
-
Constructor Details
-
AppUser
public AppUser()
-