Rev 597 | Rev 1496 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.del.client.modeles;
import java.util.HashMap;
import org.tela_botanica.del.client.i18n.I18n;
public class Utilisateur {
private String nom = "";
private String prenom = "";
private String courriel = "";
private String id = "0";
private boolean identifie = false;
private HashMap<String, String> preferences = null;
public Utilisateur(String id) {
this.id = id;
}
public Utilisateur(String id, String prenom, String nom, String courriel) {
this(id);
this.prenom = prenom;
this.nom = nom;
this.courriel = courriel;
identifie = true;
}
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 getCourriel() {
return courriel;
}
public void setCourriel(String courriel) {
this.courriel = courriel;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public boolean estIdentifie() {
return identifie;
}
public void setIdentifie(boolean identifie) {
this.identifie = identifie;
}
public String getNomPrenomFormate() {
return identifie ? prenom+" "+nom : I18n.getVocabulary().anonyme();
}
public HashMap<String, String> getPreferences() {
return preferences;
}
public void setPreferences(HashMap<String, String> preferences) {
this.preferences = preferences;
}
}