Subversion Repositories eFlore/Applications.coel

Rev

Rev 708 | Rev 745 | 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
 
708 jp_milcent 3
import com.google.gwt.json.client.JSONArray;
712 aurelien 4
import com.google.gwt.json.client.JSONArray;
106 aurelien 5
import com.google.gwt.json.client.JSONObject;
712 aurelien 6
import com.google.gwt.user.client.Window;
106 aurelien 7
 
363 jp_milcent 8
public class PublicationListe extends aDonneeListe<Publication> {
106 aurelien 9
 
10
	private static final long serialVersionUID = 2600314321196345072L;
11
 
706 jp_milcent 12
	public PublicationListe() {
13
		super();
14
	}
15
 
363 jp_milcent 16
	public PublicationListe(int taille) {
106 aurelien 17
		super(taille);
18
	}
363 jp_milcent 19
 
712 aurelien 20
	/**
21
	 * Constructeur pour une liste d'institutions
22
	 * @param dates
23
	 */
24
	public PublicationListe(JSONArray publications) {
25
 
26
		super(publications.size());
363 jp_milcent 27
 
712 aurelien 28
		int taille = publications.size();
29
		for (int i = 0; i < taille; i++) {
30
			JSONObject publicationCourante = publications.get(i).isObject() ;
363 jp_milcent 31
 
106 aurelien 32
			if (publicationCourante != null)	{
33
				Publication publication = new Publication(publicationCourante);
708 jp_milcent 34
				this.put(publication.getId(), publication);
106 aurelien 35
			}
36
		}
37
	}
38
}