Subversion Repositories eFlore/Applications.del

Rev

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

Rev Author Line No. Line
658 benjamin 1
package org.tela_botanica.del.client.modeles;
2
 
663 benjamin 3
import java.util.ArrayList;
658 benjamin 4
import java.util.Date;
663 benjamin 5
import java.util.List;
881 aurelien 6
public class InterventionForum {
690 gduche 7
 
8
	private Contributeur contributeur;
658 benjamin 9
	private Date date;
881 aurelien 10
	private String id;
11
	private InterventionForum parent;
12
	private Observation observation;
663 benjamin 13
	public List<Commentaire> listeCommentaires = new ArrayList<Commentaire>();
683 gduche 14
 
881 aurelien 15
	public void setId(String id) {
16
		this.id = id;
17
	}
18
 
19
	public String getId() {
20
		return id;
21
	}
22
 
23
	public void setParent(InterventionForum parent) {
24
		this.parent = parent;
25
	}
26
 
27
	public InterventionForum getParent() {
28
		return parent;
29
	}
30
 
31
	public void setObservation(Observation observation) {
32
		this.observation = observation;
33
	}
34
 
35
	public Observation getObservation() {
36
		return observation;
37
	}
38
 
658 benjamin 39
	public String getAuteur() {
690 gduche 40
		return contributeur.getNomComplet();
658 benjamin 41
	}
683 gduche 42
 
690 gduche 43
	public void setContributeur(Contributeur contributeur) {
44
		this.contributeur = contributeur;
658 benjamin 45
	}
690 gduche 46
 
47
	public Contributeur getContributeur() {
48
		return contributeur;
683 gduche 49
	}
50
 
658 benjamin 51
	public Date getDate() {
52
		return date;
53
	}
683 gduche 54
 
658 benjamin 55
	public void setDate(Date date) {
56
		this.date = date;
57
	}
683 gduche 58
 
663 benjamin 59
	public List<Commentaire> getListeCommentaires() {
60
		return listeCommentaires;
61
	}
658 benjamin 62
 
663 benjamin 63
	public void setListeCommentaires(List<Commentaire> listeCommentaires) {
64
		this.listeCommentaires = listeCommentaires;
65
	}
66
 
67
	public void ajouterCommentaire(Commentaire commentaire) {
68
		listeCommentaires.add(commentaire);
69
	}
658 benjamin 70
}