Subversion Repositories eFlore/Applications.del

Rev

Rev 683 | Rev 881 | 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;
683 gduche 6
public class InterventionForum implements PossesseurDeCommentaires {
690 gduche 7
 
8
	private Contributeur contributeur;
658 benjamin 9
	private Date date;
663 benjamin 10
	public List<Commentaire> listeCommentaires = new ArrayList<Commentaire>();
683 gduche 11
 
658 benjamin 12
	public String getAuteur() {
690 gduche 13
		return contributeur.getNomComplet();
658 benjamin 14
	}
683 gduche 15
 
690 gduche 16
	public void setContributeur(Contributeur contributeur) {
17
		this.contributeur = contributeur;
658 benjamin 18
	}
690 gduche 19
 
20
	public Contributeur getContributeur() {
21
		return contributeur;
683 gduche 22
	}
23
 
658 benjamin 24
	public Date getDate() {
25
		return date;
26
	}
683 gduche 27
 
658 benjamin 28
	public void setDate(Date date) {
29
		this.date = date;
30
	}
683 gduche 31
 
663 benjamin 32
	public List<Commentaire> getListeCommentaires() {
33
		return listeCommentaires;
34
	}
658 benjamin 35
 
663 benjamin 36
	@Override
37
	public void setListeCommentaires(List<Commentaire> listeCommentaires) {
38
		this.listeCommentaires = listeCommentaires;
39
	}
40
 
41
	@Override
42
	public void ajouterCommentaire(Commentaire commentaire) {
43
		listeCommentaires.add(commentaire);
44
	}
658 benjamin 45
}