Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 65 Rev 66
Line 12... Line 12...
12
	/**
12
	/**
13
	 * Variable pour la sérialisation de l'objet.
13
	 * Variable pour la sérialisation de l'objet.
14
	 */
14
	 */
15
	private static final long serialVersionUID = 3;
15
	private static final long serialVersionUID = 3;
Line 16... Line 16...
16
	
16
	
17
	public Utilisateur(String identifiant, boolean identifie) {
17
	public Utilisateur(String login, boolean identifie) {
18
		set("identifiant", identifiant);
18
		set("login", login);
19
		set("identifie", identifie);
19
		set("identifie", identifie);
Line 20... Line 20...
20
	}
20
	}
21
 
21
 
Line 55... Line 55...
55
	
55
	
56
	public void setIdentifie(Boolean bool) {
56
	public void setIdentifie(Boolean bool) {
57
		set("identifie", bool);
57
		set("identifie", bool);
Line 58... Line 58...
58
	}
58
	}
59
	
59
	
60
	public void setIdentifiant(String i) {
60
	public void setLogin(String l) {
Line 61... Line -...
61
		set("identifiant", i);
-
 
62
	}
-
 
63
	
-
 
64
	/**
-
 
65
	 * Retourne l'identifiant de l'utilisateur identifié ou un identifiant de session.
61
		set("login", l);
66
	 * @return String identifiant
62
	}
67
	 */
63
	
Line 68... Line 64...
68
	public String getIdentifiant() {
64
	public void setMotDePasse(String mdp) {
69
		return get("identifiant");
65
		set("mot_de_passe", mdp);
70
	}
66
	}
71
 
67
 
72
	/**
68
	/**
73
	 * Retourne le login de l'utilisateur
69
	 * Retourne le login de l'utilisateur ou l'identifiant de session si la personne n'est pas identifiée.
74
	 * @return String login
70
	 * @return String login
Line 90... Line 86...
90
	 * @return boolean
86
	 * @return boolean
91
	 */
87
	 */
92
	public boolean isIdentifie() {
88
	public boolean isIdentifie() {
93
		return get("identifie");
89
		return get("identifie");
94
	}
90
	}
95
 
-
 
96
	public void setLogin(String l) {
-
 
97
		set("login", l);
-
 
98
	}
-
 
99
	
-
 
100
	public void setMotDePasse(String mdp) {
-
 
101
		set("mot_de_passe", mdp);
-
 
102
	}
-
 
103
	
-
 
Line 104... Line 91...
104
	
91