| Line 3... |
Line 3... |
| 3 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
3 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 4 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
4 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
| 5 |
import org.tela_botanica.client.observation.ObservationModele;
|
5 |
import org.tela_botanica.client.observation.ObservationModele;
|
| Line 6... |
Line 6... |
| 6 |
|
6 |
|
| 7 |
import com.google.gwt.http.client.Request;
|
7 |
import com.google.gwt.http.client.Request;
|
| 8 |
import com.google.gwt.http.client.RequestBuilder;
|
8 |
import org.tela_botanica.client.util.RequestBuilderWithCredentials;
|
| 9 |
import com.google.gwt.http.client.RequestCallback;
|
9 |
import com.google.gwt.http.client.RequestCallback;
|
| 10 |
import com.google.gwt.http.client.RequestException;
|
10 |
import com.google.gwt.http.client.RequestException;
|
| 11 |
import com.google.gwt.http.client.Response;
|
11 |
import com.google.gwt.http.client.Response;
|
| Line 44... |
Line 44... |
| 44 |
* @param motcle
|
44 |
* @param motcle
|
| 45 |
* le mots clés à ajouter avec son parent et son identifiant
|
45 |
* le mots clés à ajouter avec son parent et son identifiant
|
| 46 |
*/
|
46 |
*/
|
| 47 |
public void modifier(final Rafraichissable r, String utilisateur, String idObs, String idMC) {
|
47 |
public void modifier(final Rafraichissable r, String utilisateur, String idObs, String idMC) {
|
| Line 48... |
Line 48... |
| 48 |
|
48 |
|
| Line 49... |
Line 49... |
| 49 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,Configuration.getServiceBaseUrl()+ "/InventoryKeyWordObsLink/") ;
|
49 |
RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.POST,Configuration.getServiceBaseUrl()+ "/InventoryKeyWordObsLink/") ;
|
| 50 |
|
50 |
|
| 51 |
String postData = "ce_utilisateur="+utilisateur
|
51 |
String postData = "ce_utilisateur="+utilisateur
|
| Line 75... |
Line 75... |
| 75 |
}
|
75 |
}
|
| 76 |
}
|
76 |
}
|
| Line 77... |
Line 77... |
| 77 |
|
77 |
|
| Line 78... |
Line 78... |
| 78 |
public void supprimer(final Rafraichissable r, String utilisateur, String idObs, String idMC) {
|
78 |
public void supprimer(final Rafraichissable r, String utilisateur, String idObs, String idMC) {
|
| Line 79... |
Line 79... |
| 79 |
|
79 |
|
| Line 80... |
Line 80... |
| 80 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,Configuration.getServiceBaseUrl()+ "/InventoryKeyWordObsLink/" + utilisateur + "/" +idObs+ "/" + URL.encodeComponent(""+idMC) + "/") ;
|
80 |
RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.POST,Configuration.getServiceBaseUrl()+ "/InventoryKeyWordObsLink/" + utilisateur + "/" +idObs+ "/" + URL.encodeComponent(""+idMC) + "/") ;
|