Subversion Repositories eFlore/Applications.del

Rev

Rev 513 | Rev 1175 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
513 aurelien 1
package org.tela_botanica.del.client.modeles;
2
 
3
import org.tela_botanica.del.client.i18n.I18n;
4
 
5
public class Utilisateur {
6
 
7
	private String nom = "";
8
	private String prenom = "";
9
	private String courriel = "";
10
	private String id = "0";
11
	private boolean identifie = false;
12
 
13
	public Utilisateur(String id) {
14
		this.id = id;
15
	}
16
 
17
	public Utilisateur(String id, String prenom, String nom, String courriel) {
18
		this(id);
19
		this.prenom = prenom;
20
		this.nom = nom;
21
		this.courriel = courriel;
22
		identifie = true;
23
	}
24
 
25
	public String getNom() {
26
		return nom;
27
	}
28
	public void setNom(String nom) {
29
		this.nom = nom;
30
	}
31
	public String getPrenom() {
32
		return prenom;
33
	}
34
	public void setPrenom(String prenom) {
35
		this.prenom = prenom;
36
	}
37
	public String getCourriel() {
38
		return courriel;
39
	}
40
	public void setCourriel(String courriel) {
41
		this.courriel = courriel;
42
	}
43
	public String getId() {
44
		return id;
45
	}
46
	public void setId(String id) {
47
		this.id = id;
48
	}
597 aurelien 49
	public boolean estIdentifie() {
513 aurelien 50
		return identifie;
51
	}
52
	public void setIdentifie(boolean identifie) {
53
		this.identifie = identifie;
54
	}
55
 
56
	public String getNomPrenomFormate() {
57
		return identifie ? prenom+" "+nom : I18n.getVocabulary().anonyme();
58
	}
59
}