Rev 712 | Blame | Last modification | View Log | RSS feed
package org.tela_botanica.client.modeles;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
public class PublicationListe extends aDonneeListe<Publication> {
private static final long serialVersionUID = 2600314321196345072L;
public PublicationListe() {
super();
}
public PublicationListe(int taille) {
super(taille);
}
/**
* Constructeur pour une liste d'institutions
* @param dates
*/
public PublicationListe(JSONArray publications) {
super(publications.size());
int taille = publications.size();
for (int i = 0; i < taille; i++) {
JSONObject publicationCourante = publications.get(i).isObject() ;
if (publicationCourante != null) {
Publication publication = new Publication(publicationCourante);
this.put(publication.getId(), publication);
}
}
}
}