| Line 21... |
Line 21... |
| 21 |
import org.tela_botanica.client.modeles.Personne;
|
21 |
import org.tela_botanica.client.modeles.Personne;
|
| 22 |
import org.tela_botanica.client.modeles.PersonneListe;
|
22 |
import org.tela_botanica.client.modeles.PersonneListe;
|
| 23 |
import org.tela_botanica.client.modeles.Projet;
|
23 |
import org.tela_botanica.client.modeles.Projet;
|
| 24 |
import org.tela_botanica.client.modeles.ProjetListe;
|
24 |
import org.tela_botanica.client.modeles.ProjetListe;
|
| 25 |
import org.tela_botanica.client.modeles.Publication;
|
25 |
import org.tela_botanica.client.modeles.Publication;
|
| - |
|
26 |
import org.tela_botanica.client.modeles.PublicationAPersonne;
|
| - |
|
27 |
import org.tela_botanica.client.modeles.PublicationAPersonneListe;
|
| 26 |
import org.tela_botanica.client.modeles.PublicationListe;
|
28 |
import org.tela_botanica.client.modeles.PublicationListe;
|
| 27 |
import org.tela_botanica.client.modeles.Structure;
|
29 |
import org.tela_botanica.client.modeles.Structure;
|
| 28 |
import org.tela_botanica.client.modeles.StructureAPersonne;
|
30 |
import org.tela_botanica.client.modeles.StructureAPersonne;
|
| 29 |
import org.tela_botanica.client.modeles.CollectionAPersonneListe;
|
31 |
import org.tela_botanica.client.modeles.CollectionAPersonneListe;
|
| 30 |
import org.tela_botanica.client.modeles.StructureAPersonneListe;
|
32 |
import org.tela_botanica.client.modeles.StructureAPersonneListe;
|
| Line 485... |
Line 487... |
| 485 |
|
487 |
|
| 486 |
public void supprimerStructureAPersonne(Rafraichissable vueARafraichir, StructureAPersonneListe personnelSupprime) {
|
488 |
public void supprimerStructureAPersonne(Rafraichissable vueARafraichir, StructureAPersonneListe personnelSupprime) {
|
| 487 |
if (personnelSupprime != null && personnelSupprime.size() > 0) {
|
489 |
if (personnelSupprime != null && personnelSupprime.size() > 0) {
|
| 488 |
String idStructureAPersonneSepareParVirgule = "" ;
|
490 |
String idStructureAPersonneSepareParVirgule = "" ;
|
| 489 |
for (Iterator<String> it = personnelSupprime.keySet().iterator(); it.hasNext();) {
|
491 |
for (Iterator<String> it = personnelSupprime.keySet().iterator(); it.hasNext();) {
|
| - |
|
492 |
idStructureAPersonneSepareParVirgule += personnelSupprime.get(it.next()).getId();
|
| - |
|
493 |
if (it.hasNext()) {
|
| - |
|
494 |
idStructureAPersonneSepareParVirgule += ",";
|
| 490 |
idStructureAPersonneSepareParVirgule += personnelSupprime.get(it.next()).getId()+"," ;
|
495 |
}
|
| 491 |
}
|
496 |
}
|
| 492 |
modele.supprimerStructureAPersonne(vueARafraichir, idStructureAPersonneSepareParVirgule);
|
497 |
modele.supprimerStructureAPersonne(vueARafraichir, idStructureAPersonneSepareParVirgule);
|
| 493 |
}
|
498 |
}
|
| Line 587... |
Line 592... |
| 587 |
|
592 |
|
| 588 |
public void supprimerCollectionAPersonne(Rafraichissable vueARafraichir, CollectionAPersonneListe personnesSupprimees) {
|
593 |
public void supprimerCollectionAPersonne(Rafraichissable vueARafraichir, CollectionAPersonneListe personnesSupprimees) {
|
| 589 |
if (personnesSupprimees != null && personnesSupprimees.size() > 0) {
|
594 |
if (personnesSupprimees != null && personnesSupprimees.size() > 0) {
|
| 590 |
String idCollectionAPersonneSeparesParVirgule = "" ;
|
595 |
String idCollectionAPersonneSeparesParVirgule = "" ;
|
| 591 |
for (Iterator<String> it = personnesSupprimees.keySet().iterator(); it.hasNext();) {
|
596 |
for (Iterator<String> it = personnesSupprimees.keySet().iterator(); it.hasNext();) {
|
| - |
|
597 |
idCollectionAPersonneSeparesParVirgule += personnesSupprimees.get(it.next()).getId();
|
| - |
|
598 |
if (it.hasNext()) {
|
| - |
|
599 |
idCollectionAPersonneSeparesParVirgule += ",";
|
| 592 |
idCollectionAPersonneSeparesParVirgule += personnesSupprimees.get(it.next()).getId()+"," ;
|
600 |
}
|
| 593 |
}
|
601 |
}
|
| 594 |
modele.supprimerCollectionAPersonne(vueARafraichir, idCollectionAPersonneSeparesParVirgule);
|
602 |
modele.supprimerCollectionAPersonne(vueARafraichir, idCollectionAPersonneSeparesParVirgule);
|
| 595 |
}
|
603 |
}
|
| Line 620... |
Line 628... |
| 620 |
|
628 |
|
| 621 |
public void supprimerCollectionAPersonne(Rafraichissable vueARafraichir, CollectionAPublicationListe publicationsSupprimees) {
|
629 |
public void supprimerCollectionAPersonne(Rafraichissable vueARafraichir, CollectionAPublicationListe publicationsSupprimees) {
|
| 622 |
if (publicationsSupprimees != null && publicationsSupprimees.size() > 0) {
|
630 |
if (publicationsSupprimees != null && publicationsSupprimees.size() > 0) {
|
| 623 |
String idCollectionAPublicationSeparesParVirgule = "" ;
|
631 |
String idCollectionAPublicationSeparesParVirgule = "" ;
|
| 624 |
for (Iterator<String> it = publicationsSupprimees.keySet().iterator(); it.hasNext();) {
|
632 |
for (Iterator<String> it = publicationsSupprimees.keySet().iterator(); it.hasNext();) {
|
| - |
|
633 |
idCollectionAPublicationSeparesParVirgule += publicationsSupprimees.get(it.next()).getId();
|
| - |
|
634 |
if (it.hasNext()) {
|
| - |
|
635 |
idCollectionAPublicationSeparesParVirgule += ",";
|
| 625 |
idCollectionAPublicationSeparesParVirgule += publicationsSupprimees.get(it.next()).getId()+"," ;
|
636 |
}
|
| 626 |
}
|
637 |
}
|
| 627 |
modele.supprimerCollectionAPublication(vueARafraichir, idCollectionAPublicationSeparesParVirgule);
|
638 |
modele.supprimerCollectionAPublication(vueARafraichir, idCollectionAPublicationSeparesParVirgule);
|
| 628 |
}
|
639 |
}
|
| Line 846... |
Line 857... |
| 846 |
|
857 |
|
| 847 |
public void selectionnerPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String roleId) {
|
858 |
public void selectionnerPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String roleId) {
|
| 848 |
modele.selectionPublicationAPersonne(vueARafraichir, publicationId, personnesId, roleId);
|
859 |
modele.selectionPublicationAPersonne(vueARafraichir, publicationId, personnesId, roleId);
|
| Line 849... |
Line 860... |
| 849 |
}
|
860 |
}
|
| - |
|
861 |
|
| - |
|
862 |
public void ajouterPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, PublicationAPersonneListe personnesAjoutees, String roleId) {
|
| - |
|
863 |
if (personnesAjoutees != null && personnesAjoutees.size() > 0) {
|
| - |
|
864 |
String idPublicationAPersonneSepareParVirgule = "" ;
|
| - |
|
865 |
for (Iterator<String> it = personnesAjoutees.keySet().iterator(); it.hasNext();) {
|
| - |
|
866 |
idPublicationAPersonneSepareParVirgule += personnesAjoutees.get(it.next()).getIdPersonne();
|
| - |
|
867 |
if (it.hasNext()) {
|
| - |
|
868 |
idPublicationAPersonneSepareParVirgule += ",";
|
| 850 |
|
869 |
}
|
| - |
|
870 |
}
|
| 851 |
public void ajouterPublicationAPersonne(Rafraichissable vueArafraichir, String publicationId, String personnesId, String roleId) {
|
871 |
modele.ajouterPublicationAPersonne(vueARafraichir, publicationId, idPublicationAPersonneSepareParVirgule, roleId);
|
| 852 |
modele.ajouterAuteurPublication(vueArafraichir, publicationId, personnesId, roleId);
|
872 |
}
|
| 853 |
}
|
873 |
}
|
| - |
|
874 |
|
| - |
|
875 |
public void supprimerPublicationAPersonne(Rafraichissable vueARafraichir, PublicationAPersonneListe personnesSupprimees) {
|
| - |
|
876 |
if (personnesSupprimees != null && personnesSupprimees.size() > 0) {
|
| - |
|
877 |
String idPublicationAPersonneSepareParVirgule = "" ;
|
| - |
|
878 |
for (Iterator<String> it = personnesSupprimees.keySet().iterator(); it.hasNext();) {
|
| - |
|
879 |
idPublicationAPersonneSepareParVirgule += personnesSupprimees.get(it.next()).getId();
|
| - |
|
880 |
if (it.hasNext()) {
|
| - |
|
881 |
idPublicationAPersonneSepareParVirgule += ",";
|
| 854 |
|
882 |
}
|
| - |
|
883 |
}
|
| 855 |
public void modifierPublicationAPersonne(Rafraichissable vueArafraichir, String publicationId, String personnesId, String roleId) {
|
884 |
modele.supprimerPublicationAPersonne(vueARafraichir, idPublicationAPersonneSepareParVirgule);
|
| Line 856... |
Line 885... |
| 856 |
modele.modifierAuteurPublication(vueArafraichir, publicationId, personnesId, roleId);
|
885 |
}
|
| 857 |
}
|
886 |
}
|
| 858 |
|
887 |
|