Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1293 Rev 1918
Line 9... Line 9...
9
import org.tela_botanica.client.interfaces.Rafraichissable;
9
import org.tela_botanica.client.interfaces.Rafraichissable;
10
import org.tela_botanica.client.modeles.objets.Configuration;
10
import org.tela_botanica.client.modeles.objets.Configuration;
11
import org.tela_botanica.client.modeles.objets.Utilisateur;
11
import org.tela_botanica.client.modeles.objets.Utilisateur;
Line 12... Line 12...
12
 
12
 
13
import com.google.gwt.http.client.Request;
13
import com.google.gwt.http.client.Request;
14
import com.google.gwt.http.client.RequestBuilder;
14
import org.tela_botanica.client.util.RequestBuilderWithCredentials;
15
import com.google.gwt.http.client.RequestCallback;
15
import com.google.gwt.http.client.RequestCallback;
16
import com.google.gwt.http.client.RequestException;
16
import com.google.gwt.http.client.RequestException;
17
import com.google.gwt.http.client.Response;
17
import com.google.gwt.http.client.Response;
18
import com.google.gwt.json.client.JSONObject;
18
import com.google.gwt.json.client.JSONObject;
Line 41... Line 41...
41
	 */
41
	 */
Line 42... Line 42...
42
	
42
	
Line 43... Line 43...
43
	public void getEtatUtilisateur(final Rafraichissable r) {
43
	public void getEtatUtilisateur(final Rafraichissable r) {
44
 
44
 
Line 45... Line 45...
45
		// Recherche identifiant utilisateur identifie
45
		// Recherche identifiant utilisateur identifie
Line 46... Line 46...
46
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET,Configuration.getServiceBaseUrl() + "/User/") ;
46
		RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.GET,Configuration.getServiceBaseUrl() + "/User/") ;
Line 81... Line 81...
81
 
81
 
Line 82... Line 82...
82
 
82
 
Line 83... Line 83...
83
 
83
 
Line 84... Line 84...
84
	public void deconnecterUtilisateur(final Rafraichissable r, String user) {
84
	public void deconnecterUtilisateur(final Rafraichissable r, String user) {
Line 115... Line 115...
115
		}
115
		}
116
	}
116
	}
Line 117... Line 117...
117
 
117
 
Line 118... Line 118...
118
	public void connecteUtilisateur (final Rafraichissable r, String login, String password) {
118
	public void connecteUtilisateur (final Rafraichissable r, String login, String password) {
Line 119... Line 119...
119
		
119
		
Line 120... Line 120...
120
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET,Configuration.getServiceBaseUrl() + "/User/" + login + "/" + password) ;
120
		RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.GET,Configuration.getServiceBaseUrl() + "/User/" + login + "/" + password) ;
Line 152... Line 152...
152
		}
152
		}
153
	}
153
	}
Line 154... Line 154...
154
 
154
 
Line 155... Line 155...
155
	public void accepterLicence(String identifiantUtilisateur) {
155
	public void accepterLicence(String identifiantUtilisateur) {
Line 156... Line 156...
156
		
156
		
Line 157... Line 157...
157
		RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,Configuration.getServiceBaseUrl() + "/LicenceUtilisateur/"+identifiantUtilisateur) ;
157
		RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.POST,Configuration.getServiceBaseUrl() + "/LicenceUtilisateur/"+identifiantUtilisateur) ;