Subversion Repositories eFlore/Applications.del

Rev

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

package org.tela_botanica.del.client.modeles;

import com.google.gwt.user.client.Window;

public class Contributeur {
        
        private String id, nom, prenom, adresseEmail;
        
        public Contributeur(String id, String nom, String prenom, String adresseEmail) {
                this.id = id;
                this.nom = nom;
                this.prenom = prenom;
                this.adresseEmail = adresseEmail;
        }

        public String getNom() {
                return nom;
        }

        public void setNom(String nom) {
                this.nom = nom;
        }

        public String getPrenom() {
                return prenom;
        }

        public void setPrenom(String prenom) {
                this.prenom = prenom;
        }

        public String getAdresseEmail() {
                return adresseEmail;
        }

        public void setAdresseEmail(String adresseEmail) {
                this.adresseEmail = adresseEmail;
        }
        
        public String getNomComplet() {
                String retour;
                if ((this.prenom == null || this.prenom.equals("")) && (this.nom == null || this.nom.equals(""))) {
                        retour = ""; // évite de retourner " "
                } else {
                        retour = this.prenom + " " + this.nom;
                }
                return retour;
        }
        
        public void setId(String id) {
                this.id = id;
        }

        public String getId() {
                return id;
        }
}