Subversion Repositories eFlore/Applications.coel

Rev

Rev 238 | Rev 706 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
106 aurelien 1
package org.tela_botanica.client.modeles;
2
 
238 aurelien 3
import java.util.Iterator;
106 aurelien 4
 
5
import com.google.gwt.json.client.JSONObject;
6
 
363 jp_milcent 7
public class PublicationListe extends aDonneeListe<Publication> {
106 aurelien 8
 
9
	private static final long serialVersionUID = 2600314321196345072L;
10
 
363 jp_milcent 11
	public PublicationListe(int taille) {
106 aurelien 12
		super(taille);
13
	}
363 jp_milcent 14
 
106 aurelien 15
	/**
16
	 * Constructeur pour une liste d'institutions
17
	 * @param dates
18
	 */
363 jp_milcent 19
	public PublicationListe(JSONObject publications) {
106 aurelien 20
		super(publications.size()) ;
363 jp_milcent 21
 
22
		Iterator<String> it = publications.keySet().iterator();
23
		while (it.hasNext()) {
238 aurelien 24
			JSONObject publicationCourante = publications.get(it.next()).isObject() ;
363 jp_milcent 25
 
106 aurelien 26
			if (publicationCourante != null)	{
27
				Publication publication = new Publication(publicationCourante);
28
				this.put(publication.getId(), publication);
29
			}
30
		}
31
	}
32
 
33
}