Subversion Repositories eFlore/Applications.del

Rev

Rev 597 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.tela_botanica.del.client.modeles;

import org.tela_botanica.del.client.i18n.I18n;

public class Utilisateur {

        private String nom = "";
        private String prenom = "";
        private String courriel = "";
        private String id = "0";
        private boolean identifie = false;
        
        public Utilisateur(String id) {
                this.id = id;
        }
        
        public Utilisateur(String id, String prenom, String nom, String courriel) {
                this(id);
                this.prenom = prenom;
                this.nom = nom;
                this.courriel = courriel;
                identifie = true;
        }
        
        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 getCourriel() {
                return courriel;
        }
        public void setCourriel(String courriel) {
                this.courriel = courriel;
        }
        public String getId() {
                return id;
        }
        public void setId(String id) {
                this.id = id;
        }
        public boolean isIdentifie() {
                return identifie;
        }
        public void setIdentifie(boolean identifie) {
                this.identifie = identifie;
        }
        
        public String getNomPrenomFormate() {
                return identifie ? prenom+" "+nom : I18n.getVocabulary().anonyme();
        }
}