Subversion Repositories eFlore/Applications.coel

Rev

Rev 363 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.tela_botanica.client.modeles;

import java.util.Iterator;

import com.google.gwt.json.client.JSONObject;

public class PublicationListe extends aDonneeListe<Publication> {

        private static final long serialVersionUID = 2600314321196345072L;

        public PublicationListe(int taille) {
                super(taille);
        }
        
        /**
         * Constructeur pour une liste d'institutions
         * @param dates
         */
        public PublicationListe(JSONObject publications) {
                super(publications.size()) ;
                
                Iterator<String> it = publications.keySet().iterator();
                while (it.hasNext()) {
                        JSONObject publicationCourante = publications.get(it.next()).isObject() ;
                        
                        if (publicationCourante != null)        {
                                Publication publication = new Publication(publicationCourante);
                                this.put(publication.getId(), publication);
                        }
                }
        }
        
}