Line 3... |
Line 3... |
3 |
import org.tela_botanica.client.Mediateur;
|
3 |
import org.tela_botanica.client.Mediateur;
|
4 |
import org.tela_botanica.client.RegistreId;
|
4 |
import org.tela_botanica.client.RegistreId;
|
5 |
import org.tela_botanica.client.http.JsonRestRequestBuilder;
|
5 |
import org.tela_botanica.client.http.JsonRestRequestBuilder;
|
6 |
import org.tela_botanica.client.http.JsonRestRequestCallback;
|
6 |
import org.tela_botanica.client.http.JsonRestRequestCallback;
|
7 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
7 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
- |
|
8 |
import org.tela_botanica.client.util.Debug;
|
8 |
import org.tela_botanica.client.util.UtilDAO;
|
9 |
import org.tela_botanica.client.util.UtilDAO;
|
Line 9... |
Line 10... |
9 |
|
10 |
|
10 |
import com.extjs.gxt.ui.client.Registry;
|
11 |
import com.extjs.gxt.ui.client.Registry;
|
11 |
import com.google.gwt.core.client.GWT;
|
12 |
import com.google.gwt.core.client.GWT;
|
Line 26... |
Line 27... |
26 |
|
27 |
|
27 |
public void selectionner(final String collectionId, final String roleId) {
|
28 |
public void selectionner(final String collectionId, final String roleId) {
|
Line 28... |
Line 29... |
28 |
String[] parametres = {collectionId, roleId};
|
29 |
String[] parametres = {collectionId, roleId};
|
- |
|
30 |
|
29 |
|
31 |
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
|
30 |
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
|
32 |
Debug.log(rb.getUrl());
|
31 |
rb.envoyerRequete(null, new JsonRestRequestCallback() {
|
33 |
rb.envoyerRequete(null, new JsonRestRequestCallback() {
|
32 |
@Override
|
34 |
@Override
|
33 |
public void surReponse(JSONValue responseValue) {
|
35 |
public void surReponse(JSONValue responseValue) {
|
Line 76... |
Line 78... |
76 |
public void modifier(CollectionAPersonne personnes) {
|
78 |
public void modifier(CollectionAPersonne personnes) {
|
77 |
String[] parametres = {personnes.getIdCollection(), personnes.getIdPersonne(), personnes.getIdRole()};
|
79 |
String[] parametres = {personnes.getIdCollection(), personnes.getIdPersonne(), personnes.getIdRole()};
|
78 |
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
|
80 |
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
|
Line 79... |
Line 81... |
79 |
|
81 |
|
80 |
String postDonneesEncodees = construirePost(personnes.getIdCollection(), personnes);
|
- |
|
- |
|
82 |
String postDonneesEncodees = construirePost(personnes.getIdCollection(), personnes);
|
81 |
|
83 |
Debug.log(rb.getUrl());
|
82 |
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
|
84 |
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
|
83 |
@Override
|
85 |
@Override
|
84 |
public void surReponse(JSONValue responseValue) {
|
86 |
public void surReponse(JSONValue responseValue) {
|
85 |
Information info = new Information("modif_collection_a_personne");
|
87 |
Information info = new Information("modif_collection_a_personne");
|