Subversion Repositories eFlore/Applications.cel

Rev

Rev 108 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 108 Rev 145
Line 20... Line 20...
20
	
20
	
21
	public TransmissionObservationAsynchroneDAO(ObservationModele observationModele) {
21
	public TransmissionObservationAsynchroneDAO(ObservationModele observationModele) {
22
		om = observationModele ;
22
		om = observationModele ;
Line 23... Line 23...
23
	}
23
	}
Line 24... Line 24...
24
 
24
 
25
	public void transmettreObservations(final Rafraichissable r, String identifiant, String idsObs) {
25
	public void transmettreObservations(final Rafraichissable r, String identifiant, String idsObs, boolean publier) {
-
 
26
		
-
 
27
		// on envoie le get asynchrone
-
 
28
		String post = "&transmission=";
-
 
29
		
-
 
30
		if(publier) {
-
 
31
			post += "1";
-
 
32
		}
-
 
33
		else
-
 
34
		{
26
		
35
			post += "0" ;
27
		// on envoie le get asynchrone
36
		}
Line 28... Line 37...
28
		String post = "&transmission=1";
37
		
29
		RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,Configuration.getServiceBaseUrl()
38
		RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,Configuration.getServiceBaseUrl()