| Line 3... |
Line 3... |
| 3 |
import org.tela_botanica.client.image.ImageModele;
|
3 |
import org.tela_botanica.client.image.ImageModele;
|
| 4 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
4 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 5 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
5 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
| 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;
|
| 12 |
import com.google.gwt.http.client.URL;
|
12 |
import com.google.gwt.http.client.URL;
|
| Line 45... |
Line 45... |
| 45 |
* @param motcle
|
45 |
* @param motcle
|
| 46 |
* le mots clés à ajouter avec son parent et son identifiant
|
46 |
* le mots clés à ajouter avec son parent et son identifiant
|
| 47 |
*/
|
47 |
*/
|
| 48 |
public void modifier(final Rafraichissable r, String utilisateur, String idImg, String idMC) {
|
48 |
public void modifier(final Rafraichissable r, String utilisateur, String idImg, String idMC) {
|
| Line 49... |
Line 49... |
| 49 |
|
49 |
|
| Line 50... |
Line 50... |
| 50 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,Configuration.getServiceBaseUrl()+ "/InventoryKeyWordImageLink/") ;
|
50 |
RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.POST,Configuration.getServiceBaseUrl()+ "/InventoryKeyWordImageLink/") ;
|
| 51 |
|
51 |
|
| 52 |
String postData = "ce_utilisateur="+utilisateur
|
52 |
String postData = "ce_utilisateur="+utilisateur
|
| Line 76... |
Line 76... |
| 76 |
}
|
76 |
}
|
| 77 |
}
|
77 |
}
|
| Line 78... |
Line 78... |
| 78 |
|
78 |
|
| Line 79... |
Line 79... |
| 79 |
public void supprimer(final Rafraichissable r, String utilisateur, String idImg, String idMC) {
|
79 |
public void supprimer(final Rafraichissable r, String utilisateur, String idImg, String idMC) {
|
| Line 80... |
Line 80... |
| 80 |
|
80 |
|
| Line 81... |
Line 81... |
| 81 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,Configuration.getServiceBaseUrl()+ "/InventoryKeyWordImageLink/" + utilisateur + "/" +idImg+ "/" + URL.encodeComponent(""+idMC) + "/") ;
|
81 |
RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.POST,Configuration.getServiceBaseUrl()+ "/InventoryKeyWordImageLink/" + utilisateur + "/" +idImg+ "/" + URL.encodeComponent(""+idMC) + "/") ;
|