Subversion Repositories eFlore/Applications.del

Rev

Rev 1175 | Rev 1667 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1175 Rev 1496
Line 2... Line 2...
2
 
2
 
Line 3... Line 3...
3
import java.util.HashMap;
3
import java.util.HashMap;
Line -... Line 4...
-
 
4
 
4
 
5
import org.tela_botanica.del.client.i18n.I18n;
Line 5... Line 6...
5
import org.tela_botanica.del.client.i18n.I18n;
6
 
6
 
7
 
7
public class Utilisateur {
8
public class Utilisateur {
-
 
9
 
8
 
10
	private String nom = "";
-
 
11
	private String prenom = "";
9
	private String nom = "";
12
	private String courriel = "";
10
	private String prenom = "";
13
	private String motDePasseHash = "";
Line 11... Line 14...
11
	private String courriel = "";
14
	private String id = "0";
12
	private String id = "0";
15
	private String sessionId = "";
-
 
16
	private boolean identifie = false;
13
	private boolean identifie = false;
17
	private HashMap<String, String> preferences = null;
Line 14... Line 18...
14
	private HashMap<String, String> preferences = null;
18
	
15
	
19
	public Utilisateur(String sessionId, String id) {
16
	public Utilisateur(String id) {
20
		this.id = id;
17
		this.id = id;
21
		this.sessionId = sessionId;
18
	}
22
	}
-
 
23
	
19
	
24
	public Utilisateur(String sessionId, String id, String prenom, String nom, String courriel, String motDePasseHash) {
20
	public Utilisateur(String id, String prenom, String nom, String courriel) {
25
		this(sessionId, id);
Line -... Line 26...
-
 
26
		this.prenom = prenom;
-
 
27
		this.nom = nom;
-
 
28
		this.courriel = courriel;
-
 
29
		this.motDePasseHash = motDePasseHash;
-
 
30
		identifie = true;
-
 
31
	}
-
 
32
	
-
 
33
	public String getMotDePasseHash() {
21
		this(id);
34
		return motDePasseHash;
22
		this.prenom = prenom;
35
	}
23
		this.nom = nom;
36
	
24
		this.courriel = courriel;
37
	public void setMotDePasseHash(String motDePasseHash) {
25
		identifie = true;
38
		this.motDePasseHash = motDePasseHash;