Line 28... |
Line 28... |
28 |
|
28 |
|
29 |
public void selectionner(final String collectionId, final String roleId) {
|
29 |
public void selectionner(final String collectionId, final String roleId) {
|
Line 30... |
Line 30... |
30 |
String[] parametres = {collectionId, roleId};
|
30 |
String[] parametres = {collectionId, roleId};
|
31 |
|
- |
|
- |
|
31 |
|
32 |
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
|
32 |
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
|
33 |
Debug.log(rb.getUrl());
|
33 |
|
34 |
rb.envoyerRequete(null, new JsonRestRequestCallback() {
|
34 |
rb.envoyerRequete(null, new JsonRestRequestCallback() {
|
35 |
@Override
|
35 |
@Override
|
36 |
public void surReponse(JSONValue responseValue) {
|
36 |
public void surReponse(JSONValue responseValue) {
|
Line 79... |
Line 79... |
79 |
public void modifier(CollectionAPersonne personnes) {
|
79 |
public void modifier(CollectionAPersonne personnes) {
|
80 |
String[] parametres = {personnes.getIdCollection(), personnes.getIdPersonne(), personnes.getIdRole()};
|
80 |
String[] parametres = {personnes.getIdCollection(), personnes.getIdPersonne(), personnes.getIdRole()};
|
81 |
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
|
81 |
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
|
Line 82... |
Line 82... |
82 |
|
82 |
|
83 |
String postDonneesEncodees = construirePost(personnes.getIdCollection(), personnes);
|
- |
|
- |
|
83 |
String postDonneesEncodees = construirePost(personnes.getIdCollection(), personnes);
|
84 |
Debug.log(rb.getUrl());
|
84 |
|
85 |
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
|
85 |
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
|
86 |
@Override
|
86 |
@Override
|
87 |
public void surReponse(JSONValue responseValue) {
|
87 |
public void surReponse(JSONValue responseValue) {
|
88 |
Information info = new Information("modif_collection_a_personne");
|
88 |
Information info = new Information("modif_collection_a_personne");
|