Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 989 Rev 2806
Line 15... Line 15...
15
	private boolean isAdmin = false;
15
	private boolean isAdmin = false;
16
	private boolean licenceAcceptee = false;
16
	private boolean licenceAcceptee = false;
Line 17... Line 17...
17
	
17
	
Line -... Line 18...
-
 
18
	private static Utilisateur thisUtilisateur = null;
-
 
19
	
-
 
20
	// Jeton encodé en base64 passé de manière automatique aux services dans un header
18
	private static Utilisateur thisUtilisateur = null;
21
	private static String jeton = "";
19
	
22
	
Line 20... Line 23...
20
	public static Utilisateur InitialiserInstance(JSONObject objetJsonUtilisateur) {
23
	public static Utilisateur InitialiserInstance(JSONObject objetJsonUtilisateur) {
21
		thisUtilisateur = new Utilisateur(objetJsonUtilisateur);
24
		thisUtilisateur = new Utilisateur(objetJsonUtilisateur);
Line 22... Line 25...
22
		
25
		
23
		return thisUtilisateur;
26
		return thisUtilisateur;
24
	}
27
	}
Line -... Line 28...
-
 
28
	
-
 
29
	public static Utilisateur getInstance() {
-
 
30
		return thisUtilisateur;
-
 
31
	}
-
 
32
	
-
 
33
	public static String getJeton() {
-
 
34
		return jeton;
-
 
35
	}
25
	
36
	
Line 26... Line 37...
26
	public static Utilisateur getInstance() {
37
	public static void setJeton(String jeton) {
27
		return thisUtilisateur;
38
		Utilisateur.jeton = jeton;
28
	}
39
	}