Subversion Repositories eFlore/Applications.coel

Rev

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