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
    ID
    private java.lang.String imgSrc
    IMAGE SOURCE
    private Location location
    LOCATION
    private java.lang.String name
    NAME
    private java.lang.String password
    PASSWORD
    private java.util.Collection<Role> roles
    ROLES
    private java.lang.String secondName
    SECOND NAME
    private 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 id

      ID

      ID of the role.

    • name

      private java.lang.String name

      NAME

      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 secondName

      SECOND 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 username

      USERNAME

      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 password

      PASSWORD

      Authentication values for the user.

    • roles

      private java.util.Collection<Role> roles

      ROLES

      A list with the different roles of the user.

    • imgSrc

      private java.lang.String imgSrc

      IMAGE SOURCE

      A list with the different roles of the user.

    • location

      private Location location

      LOCATION

      The location of the user.

  • Constructor Details

    • AppUser

      public AppUser()