Subversion Repositories eFlore/Applications.coel

Rev

Rev 1457 | Rev 1470 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1457 Rev 1466
Line 1539... Line 1539...
1539
			}
1539
			}
1540
			modele.ajouterPublicationAPersonne(vueARafraichir, publicationId, idPublicationAPersonneSepareParVirgule, ordreAuteursSepareParVirgule, roleId, seqId);
1540
			modele.ajouterPublicationAPersonne(vueARafraichir, publicationId, idPublicationAPersonneSepareParVirgule, ordreAuteursSepareParVirgule, roleId, seqId);
1541
		}
1541
		}
1542
	}
1542
	}
Line 1543... Line -...
1543
	
-
 
1544
	/** AJOUTER **/
1543
	
1545
	// Lier plusieurs publication à une personne
1544
	// Lier plusieurs publication à une personne
1546
	public void ajouterPublicationAPersonne(Rafraichissable vueARafraichir, PublicationAPersonneListe listePublications, String personneId, String roleId, Integer seqId) {
1545
	public void ajouterPublicationAPersonne(Rafraichissable vueARafraichir, PublicationAPersonneListe listePublications, String personneId, String roleId, Integer seqId) {
1547
		if (listePublications!=null && listePublications.size()>0)	{
1546
		if (listePublications != null && listePublications.size() > 0)	{
1548
			String idsPubli = "";
1547
			String idsPubli = "";
1549
			String rolesIds = "";
1548
			String rolesIds = "";
1550
			String ordreAuteurs = "";
1549
			String ordreAuteurs = "";
1551
			for (Iterator<String> it = listePublications.keySet().iterator(); it.hasNext();) {
1550
			for (Iterator<String> it = listePublications.keySet().iterator(); it.hasNext();) {
1552
				PublicationAPersonne publiAPersonne = listePublications.get(it.next());
1551
				PublicationAPersonne publiAPersonne = listePublications.get(it.next());
1553
				idsPubli += publiAPersonne.getId();
1552
				idsPubli += publiAPersonne.getIdPublication();
1554
				rolesIds += publiAPersonne.getRole();
1553
				rolesIds += publiAPersonne.getRole();
1555
				ordreAuteurs += publiAPersonne.getOrdreAuteurs();
1554
				ordreAuteurs += publiAPersonne.getOrdreAuteurs();
1556
				if (it.hasNext()) {
1555
				if (it.hasNext()) {
1557
					idsPubli += ",";
1556
					idsPubli += ",";
Line 1581... Line 1580...
1581
		}
1580
		}
1582
	}
1581
	}
Line 1583... Line 1582...
1583
	
1582
	
1584
	/** SUPPRIMER **/
1583
	/** SUPPRIMER **/
1585
	public void supprimerPublicationAPersonne(Rafraichissable vueARafraichir, PublicationAPersonneListe personnesSupprimees) {
-
 
1586
		
1584
	public void supprimerPublicationAPersonne(Rafraichissable vueARafraichir, PublicationAPersonneListe personnesSupprimees) {
1587
		if (personnesSupprimees != null && personnesSupprimees.size() > 0) {
1585
		if (personnesSupprimees != null && personnesSupprimees.size() > 0) {
1588
			String idPublicationAPersonneSepareParVirgule = "" ;
1586
			String idPublicationAPersonneSepareParVirgule = "" ;
1589
			for (Iterator<String> it = personnesSupprimees.keySet().iterator(); it.hasNext();) {
1587
			for (Iterator<String> it = personnesSupprimees.keySet().iterator(); it.hasNext();) {
1590
				idPublicationAPersonneSepareParVirgule += personnesSupprimees.get(it.next()).getId();
1588
				idPublicationAPersonneSepareParVirgule += personnesSupprimees.get(it.next()).getId();