Subversion Repositories eFlore/Applications.del

Rev

Rev 227 | Rev 305 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9 benjamin 1
package org.tela_botanica.del.client.modeles;
2
 
3
import java.io.Serializable;
141 aurelien 4
import java.util.ArrayList;
60 benjamin 5
import java.util.Date;
227 aurelien 6
import java.util.HashMap;
7
import java.util.Map;
9 benjamin 8
 
141 aurelien 9
public class PropositionDetermination implements Serializable {
9 benjamin 10
 
11
	private static final long serialVersionUID = 840032625524143547L;
232 gduche 12
	private String id, espece, contributeur;
141 aurelien 13
	private ArrayList<Commentaire> commentaires = new ArrayList<Commentaire>();
232 gduche 14
	private Map<String, VoteDetermination> votesDeterminations = new HashMap<String, VoteDetermination>();
60 benjamin 15
	private Date date;
9 benjamin 16
 
141 aurelien 17
	public void ajouterVoteDetermination(VoteDetermination vd) {
227 aurelien 18
		votesDeterminations.put(vd.getContributeur(), vd);
9 benjamin 19
	}
20
 
90 aurelien 21
	public String getContributeur() {
22
		return contributeur;
9 benjamin 23
	}
24
 
90 aurelien 25
	public void setContributeur(String contributeur) {
26
		this.contributeur = contributeur;
9 benjamin 27
	}
28
 
29
	public String getId() {
30
		return id;
31
	}
32
 
33
	public void setId(String id) {
34
		this.id = id;
35
	}
36
 
60 benjamin 37
	public Date getDate() {
38
		return date;
39
	}
40
 
41
	public void setDate(Date date) {
42
		this.date = date;
43
	}
44
 
141 aurelien 45
	public ArrayList<Commentaire> getCommentaires() {
46
		return commentaires;
90 aurelien 47
	}
48
 
141 aurelien 49
	public void setCommentaires(ArrayList<Commentaire> commentaires) {
50
		this.commentaires = commentaires;
90 aurelien 51
	}
232 gduche 52
 
141 aurelien 53
	public void ajouterCommentaire(Commentaire commentaire) {
54
		this.commentaires.add(commentaire);
55
	}
90 aurelien 56
 
57
	public String getEspece() {
58
		return espece;
59
	}
60
 
61
	public void setEspece(String espece) {
62
		this.espece = espece;
63
	}
147 benjamin 64
 
227 aurelien 65
	public Map<String, VoteDetermination> getVotesDeterminations() {
147 benjamin 66
		return votesDeterminations;
67
	}
68
 
227 aurelien 69
	public void setVotesDeterminations(Map<String, VoteDetermination> votesDeterminations) {
147 benjamin 70
		this.votesDeterminations = votesDeterminations;
71
	}
9 benjamin 72
}