Connexion page
This commit is contained in:
134
src/main/java/fr/eni/enchere/bo/UserProfil.java
Normal file
134
src/main/java/fr/eni/enchere/bo/UserProfil.java
Normal file
@@ -0,0 +1,134 @@
|
||||
package fr.eni.enchere.bo;
|
||||
|
||||
public class UserProfil {
|
||||
|
||||
//Déclaration de variable
|
||||
private int id;
|
||||
private String pseudo;
|
||||
private String nom;
|
||||
private String prenom;
|
||||
private String email;
|
||||
private String telephone;
|
||||
private String rue;
|
||||
private String code_postal;
|
||||
private String ville;
|
||||
private String password; //Voir la sécurité du mot de passe
|
||||
private float credit;
|
||||
private boolean isAdmin;
|
||||
|
||||
//Constructeur
|
||||
public UserProfil(){}
|
||||
|
||||
public UserProfil(int id, String pseudo, String nom, String prenom, String email, String telephone, String rue, String code_postal, String ville, String password, int credit, boolean isAdmin) {
|
||||
setId(id);
|
||||
setPrenom(prenom);
|
||||
setNom(nom);
|
||||
setPseudo(pseudo);
|
||||
setEmail(email);
|
||||
setTelephone(telephone);
|
||||
setRue(rue);
|
||||
setCode_postal(code_postal);
|
||||
setVille(ville);
|
||||
setPassword(password);
|
||||
setCredit(credit);
|
||||
setAdmin(isAdmin);
|
||||
}
|
||||
|
||||
//Méthode getter et setter
|
||||
public String getPseudo() {
|
||||
return pseudo;
|
||||
}
|
||||
|
||||
public void setPseudo(String pseudo) {
|
||||
this.pseudo = pseudo;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getNom() {
|
||||
return nom;
|
||||
}
|
||||
|
||||
public void setNom(String nom) {
|
||||
this.nom = nom;
|
||||
}
|
||||
|
||||
public String getPrenom() {
|
||||
return prenom;
|
||||
}
|
||||
|
||||
public void setPrenom(String prenom) {
|
||||
this.prenom = prenom;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getTelephone() {
|
||||
return telephone;
|
||||
}
|
||||
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone;
|
||||
}
|
||||
|
||||
public String getRue() {
|
||||
return rue;
|
||||
}
|
||||
|
||||
public void setRue(String rue) {
|
||||
this.rue = rue;
|
||||
}
|
||||
|
||||
public String getCode_postal() {
|
||||
return code_postal;
|
||||
}
|
||||
|
||||
public void setCode_postal(String code_postal) {
|
||||
this.code_postal = code_postal;
|
||||
}
|
||||
|
||||
public String getVille() {
|
||||
return ville;
|
||||
}
|
||||
|
||||
public void setVille(String ville) {
|
||||
this.ville = ville;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public float getCredit() {
|
||||
return credit;
|
||||
}
|
||||
|
||||
public void setCredit(float credit) {
|
||||
this.credit = credit;
|
||||
}
|
||||
|
||||
public boolean isAdmin() {
|
||||
return isAdmin;
|
||||
}
|
||||
|
||||
public void setAdmin(boolean admin) {
|
||||
isAdmin = admin;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user