Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 12 Rev 140
Line 2... Line 2...
2
 
2
 
Line 3... Line 3...
3
public class Utilisateur {
3
public class Utilisateur {
-
 
4
 
4
 
5
	
-
 
6
	private String identifiant=null;
Line 5... Line 7...
5
	
7
	private String identite=null;
6
	private String identifiant=null;
8
	private boolean identifie=false;
7
	private boolean identifie=false;
9
	private boolean isAdmin=false;
-
 
10
 
-
 
11
	public Utilisateur(String identifiant, boolean identifie) {
-
 
12
		this.identifiant=identifiant;
-
 
13
		this.identifie=identifie;
-
 
14
		this.identite=identifiant;
-
 
15
	}
-
 
16
	
-
 
17
	public Utilisateur(String identifiant, boolean identifie, boolean isAdmin) {
8
 
18
		this.identifiant=identifiant;
Line 9... Line 19...
9
	public Utilisateur(String identifiant, boolean identifie) {
19
		this.identifie=identifie;
10
		this.identifiant=identifiant;
20
		this.isAdmin=isAdmin;
Line 23... Line 33...
23
 
33
 
24
	/**
34
	/**
25
	 * Retourne vrai si utilisateur identifie
35
	 * Retourne vrai si utilisateur identifie
26
	 * @return boolean
36
	 * @return boolean
27
	 */
-
 
28
	
37
	 */
29
	public boolean isIdentifie() {
38
	public boolean isIdentifie() {
30
		return identifie;
39
		return identifie;
Line -... Line 40...
-
 
40
	}
-
 
41
	
-
 
42
	/**
-
 
43
	 * Retourne vrai si utilisateur est admin
-
 
44
	 * @return boolean
-
 
45
	 */
-
 
46
	public boolean isAdmin() {
-
 
47
		return isAdmin;
-
 
48
	}
-
 
49
	
-
 
50
	public void setIdentite(String identite) {
-
 
51
		this.identite = identite;
-
 
52
	}
-
 
53
	
-
 
54
	public String getIdentite() {
-
 
55
		return identite;
31
	}
56
	}