Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1572 Rev 1918
Line 6... Line 6...
6
import org.tela_botanica.client.modeles.objets.ListeObservation;
6
import org.tela_botanica.client.modeles.objets.ListeObservation;
7
import org.tela_botanica.client.modeles.objets.Observation;
7
import org.tela_botanica.client.modeles.objets.Observation;
8
import org.tela_botanica.client.observation.ObservationModele;
8
import org.tela_botanica.client.observation.ObservationModele;
Line 9... Line 9...
9
 
9
 
10
import com.google.gwt.http.client.Request;
10
import com.google.gwt.http.client.Request;
11
import com.google.gwt.http.client.RequestBuilder;
11
import org.tela_botanica.client.util.RequestBuilderWithCredentials;
12
import com.google.gwt.http.client.RequestCallback;
12
import com.google.gwt.http.client.RequestCallback;
13
import com.google.gwt.http.client.RequestException;
13
import com.google.gwt.http.client.RequestException;
14
import com.google.gwt.http.client.Response;
14
import com.google.gwt.http.client.Response;
15
import com.google.gwt.http.client.URL;
15
import com.google.gwt.http.client.URL;
Line 74... Line 74...
74
				}
74
				}
75
			}
75
			}
76
		}
76
		}
Line 77... Line 77...
77
		
77
		
78
		// on envoie le get asynchrone
78
		// on envoie le get asynchrone
79
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET,Configuration.getServiceBaseUrl()
79
		RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.GET,Configuration.getServiceBaseUrl()
Line 80... Line 80...
80
				+"/InventoryObservationList/"+utilisateur+"/?"+requete) ;
80
				+"/InventoryObservationList/"+utilisateur+"/?"+requete) ;
81
		
81
		
Line 131... Line 131...
131
	}
131
	}
Line 132... Line 132...
132
	
132
	
133
	public void modifierEnMasse(final Rafraichissable r, String identifiant,
133
	public void modifierEnMasse(final Rafraichissable r, String identifiant,
Line 134... Line 134...
134
			final Observation obs) {
134
			final Observation obs) {
Line 135... Line 135...
135
 
135
 
136
			RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,Configuration.getServiceBaseUrl()+ "/InventoryObservationList/" + identifiant + "/" + obs.getNumeroOrdre()+ "/") ;
136
			RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.POST,Configuration.getServiceBaseUrl()+ "/InventoryObservationList/" + identifiant + "/" + obs.getNumeroOrdre()+ "/") ;
137
			
137
			
138
			String postData = "ce_utilisateur="
138
			String postData = "ce_utilisateur="
Line 231... Line 231...
231
		
231
		
232
		String postData = "";
232
		String postData = "";
Line 233... Line 233...
233
		postData += "&action=DELETE";
233
		postData += "&action=DELETE";
234
 
234
 
235
		// on envoie un post avec l'id de l'image à supprimer
235
		// on envoie un post avec l'id de l'image à supprimer
236
		RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, 
236
		RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.POST, 
237
				Configuration.getServiceBaseUrl()
237
				Configuration.getServiceBaseUrl()
238
				+ "/inventoryObservationList/"
238
				+ "/inventoryObservationList/"
239
				+ identifiant
239
				+ identifiant