Subversion Repositories eFlore/Applications.del

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
690 gduche 1
package org.tela_botanica.del.client.modeles;
2
 
1053 gduche 3
import com.google.gwt.user.client.Window;
4
 
690 gduche 5
public class Contributeur {
6
 
882 aurelien 7
	private String id, nom, prenom, adresseEmail;
690 gduche 8
 
882 aurelien 9
	public Contributeur(String id, String nom, String prenom, String adresseEmail) {
10
		this.id = id;
690 gduche 11
		this.nom = nom;
12
		this.prenom = prenom;
13
		this.adresseEmail = adresseEmail;
14
	}
15
 
16
	public String getNom() {
17
		return nom;
18
	}
19
 
20
	public void setNom(String nom) {
21
		this.nom = nom;
22
	}
23
 
24
	public String getPrenom() {
25
		return prenom;
26
	}
27
 
28
	public void setPrenom(String prenom) {
29
		this.prenom = prenom;
30
	}
31
 
32
	public String getAdresseEmail() {
33
		return adresseEmail;
34
	}
35
 
36
	public void setAdresseEmail(String adresseEmail) {
37
		this.adresseEmail = adresseEmail;
38
	}
39
 
40
	public String getNomComplet() {
1761 mathias 41
		String retour;
42
		if ((this.prenom == null || this.prenom.equals("")) && (this.nom == null || this.nom.equals(""))) {
43
			retour = ""; // évite de retourner " "
44
		} else {
45
			retour = this.prenom + " " + this.nom;
46
		}
47
		return retour;
690 gduche 48
	}
882 aurelien 49
 
50
	public void setId(String id) {
51
		this.id = id;
52
	}
53
 
54
	public String getId() {
55
		return id;
56
	}
690 gduche 57
}