Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 61 Rev 64
Line 8... Line 8...
8
import com.google.gwt.json.client.JSONObject;
8
import com.google.gwt.json.client.JSONObject;
Line 9... Line 9...
9
 
9
 
Line 10... Line 10...
10
public class Utilisateur extends BaseModelData implements Serializable {
10
public class Utilisateur extends BaseModelData implements Serializable {
11
 
-
 
-
 
11
 
12
	/**
12
	/**
13
	 * 
13
	 * Variable pour la sérialisation de l'objet.
Line 14... Line -...
14
	 */
-
 
15
	private static final long serialVersionUID = 1L;
-
 
16
	
-
 
17
	private String identifiant = null;
14
	 */
18
	private boolean identifie = false;
15
	private static final long serialVersionUID = 3;
19
 
16
	
20
	public Utilisateur(String identifiant, boolean identifie) {
17
	public Utilisateur(String identifiant, boolean identifie) {
Line 21... Line 18...
21
		this.identifiant = identifiant;
18
		set("identifiant", identifiant);
22
		this.identifie = identifie;
19
		set("identifie", identifie);
23
	}
20
	}
Line 54... Line 51...
54
	
51
	
55
	public void setPrenom(String prenom) {
52
	public void setPrenom(String prenom) {
56
		set("prenom", prenom);
53
		set("prenom", prenom);
Line -... Line 54...
-
 
54
	}
-
 
55
	
-
 
56
	public void setIdentifie(Boolean bool) {
-
 
57
		set("identifie", bool);
57
	}
58
	}
58
	
59
 
59
	/**
60
	/**
60
	 * Retourne l'identifiant de l'utilisateur identifié ou un identifiant de session.
61
	 * Retourne l'identifiant de l'utilisateur identifié ou un identifiant de session.
61
	 * @return String identifiant
62
	 * @return String identifiant
62
	 */
63
	 */
-
 
64
	public String getIdentifiant() {
-
 
65
		return get("identifiant");
-
 
66
	}
-
 
67
 
-
 
68
	/**
-
 
69
	 * Retourne le login de l'utilisateur
-
 
70
	 * @return String login
-
 
71
	 */
63
	public String getIdentifiant() {
72
	public String getLogin() {
Line 64... Line 73...
64
		return identifiant;
73
		return get("login");
-
 
74
	}
-
 
75
 
-
 
76
	/**
-
 
77
	 * Retourne le mot de passe de l'utilisateur
-
 
78
	 * @return String mot de passe
-
 
79
	 */
-
 
80
	public String getMotDePasse() {
-
 
81
		return get("mot_de_passe");
65
	}
82
	}
66
 
83
	
67
	/**
84
	/**
68
	 * Retourne vrai si utilisateur est identifié.
85
	 * Retourne vrai si utilisateur est identifié.
69
	 * @return boolean
86
	 * @return boolean
70
	 */
87
	 */
Line 71... Line 88...
71
	public boolean isIdentifie() {
88
	public boolean isIdentifie() {