| Line 438... |
Line 438... |
| 438 |
}
|
438 |
}
|
| Line 439... |
Line 439... |
| 439 |
|
439 |
|
| 440 |
//+----------------------------------------------------------------------------------------------------------------+
|
440 |
//+----------------------------------------------------------------------------------------------------------------+
|
| 441 |
// GESTION de la relation STRUCTURE A PERSONNE
|
441 |
// GESTION de la relation STRUCTURE A PERSONNE
|
| 442 |
public void selectionnerStructureAPersonne(Rafraichissable vue, String structureId, String roleId) {
|
- |
|
| 443 |
GWT.log("Structure : "+structureId, null);
|
442 |
public void selectionnerStructureAPersonne(Rafraichissable vue, String structureId, String roleId) {
|
| 444 |
modele.selectionnerStructureAPersonne(vue, getUtilisateurId(), null, structureId, roleId);
|
443 |
modele.selectionnerStructureAPersonne(vue, structureId, roleId);
|
| Line 445... |
Line 444... |
| 445 |
}
|
444 |
}
|
| 446 |
|
445 |
|
| 447 |
public void ajouterStructureAPersonne(Rafraichissable vue, String structureId, StructureAPersonneListe personnelAjoute) {
|
446 |
public void ajouterStructureAPersonne(Rafraichissable vue, String structureId, StructureAPersonneListe personnelAjoute) {
|
| 448 |
if (personnelAjoute != null && personnelAjoute.size() > 0) {
|
447 |
if (personnelAjoute != null && personnelAjoute.size() > 0) {
|
| 449 |
for (Iterator<String> it = personnelAjoute.keySet().iterator(); it.hasNext();) {
|
448 |
for (Iterator<String> it = personnelAjoute.keySet().iterator(); it.hasNext();) {
|
| 450 |
modele.ajouterStructureAPersonne(vue, getUtilisateurId(), structureId, (StructureAPersonne) personnelAjoute.get(it.next()));
|
449 |
modele.ajouterStructureAPersonne(vue, structureId, (StructureAPersonne) personnelAjoute.get(it.next()));
|
| 451 |
}
|
450 |
}
|
| Line 452... |
Line 451... |
| 452 |
}
|
451 |
}
|
| 453 |
}
|
452 |
}
|
| 454 |
|
- |
|
| 455 |
public void modifierStructureAPersonne(Rafraichissable vue, StructureAPersonneListe personnelModifie) {
|
453 |
|
| 456 |
if (personnelModifie != null && personnelModifie.size() > 0) {
|
454 |
public void modifierStructureAPersonne(Rafraichissable vue, StructureAPersonneListe personnelModifie) {
|
| 457 |
GWT.log("Mediateur :modif", null);
|
455 |
if (personnelModifie != null && personnelModifie.size() > 0) {
|
| 458 |
for (Iterator<String> it = personnelModifie.keySet().iterator(); it.hasNext();) {
|
456 |
for (Iterator<String> it = personnelModifie.keySet().iterator(); it.hasNext();) {
|
| 459 |
modele.modifierStructureAPersonne(vue, getUtilisateurId(), (StructureAPersonne) personnelModifie.get(it.next()));
|
457 |
modele.modifierStructureAPersonne(vue, (StructureAPersonne) personnelModifie.get(it.next()));
|
| Line 460... |
Line 458... |
| 460 |
}
|
458 |
}
|
| 461 |
}
|
459 |
}
|
| 462 |
}
|
460 |
}
|
| 463 |
|
461 |
|
| 464 |
public void supprimerStructureAPersonne(Rafraichissable vue, StructureAPersonneListe personnelSupprime) {
|
462 |
public void supprimerStructureAPersonne(Rafraichissable vue, StructureAPersonneListe personnelSupprime) {
|
| 465 |
if (personnelSupprime != null && personnelSupprime.size() > 0) {
|
463 |
if (personnelSupprime != null && personnelSupprime.size() > 0) {
|
| 466 |
String idStrAPer = "" ;
|
464 |
String idStrAPer = "" ;
|
| 467 |
for (Iterator<String> it = personnelSupprime.keySet().iterator(); it.hasNext();) {
|
465 |
for (Iterator<String> it = personnelSupprime.keySet().iterator(); it.hasNext();) {
|
| 468 |
idStrAPer += personnelSupprime.get(it.next()).getId()+"," ;
|
466 |
idStrAPer += personnelSupprime.get(it.next()).getId()+"," ;
|
| Line 469... |
Line 467... |
| 469 |
}
|
467 |
}
|
| 470 |
modele.supprimerStructureAPersonne(vue, getUtilisateurId(), idStrAPer);
|
468 |
modele.supprimerStructureAPersonne(vue, idStrAPer);
|