Subversion Repositories eFlore/Applications.coel

Rev

Rev 363 | Rev 708 | 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
 
706 jp_milcent 11
	public PublicationListe() {
12
		super();
13
	}
14
 
363 jp_milcent 15
	public PublicationListe(int taille) {
106 aurelien 16
		super(taille);
17
	}
363 jp_milcent 18
 
106 aurelien 19
	/**
20
	 * Constructeur pour une liste d'institutions
21
	 * @param dates
22
	 */
363 jp_milcent 23
	public PublicationListe(JSONObject publications) {
106 aurelien 24
		super(publications.size()) ;
363 jp_milcent 25
 
26
		Iterator<String> it = publications.keySet().iterator();
27
		while (it.hasNext()) {
238 aurelien 28
			JSONObject publicationCourante = publications.get(it.next()).isObject() ;
363 jp_milcent 29
 
106 aurelien 30
			if (publicationCourante != null)	{
31
				Publication publication = new Publication(publicationCourante);
32
				this.put(publication.getId(), publication);
33
			}
34
		}
35
	}
36
 
37
}