Subversion Repositories eFlore/Applications.del

Rev

Rev 882 | Rev 908 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 882 Rev 887
Line 45... Line 45...
45
		}
45
		}
46
		if(commentaire.getContributeur().getId() != null) {
46
		if(commentaire.getContributeur().getId() != null) {
47
			chaineRequete += "&auteur.id="+commentaire.getContributeur().getId();
47
			chaineRequete += "&auteur.id="+commentaire.getContributeur().getId();
48
		}
48
		}
Line 49... Line -...
49
 
-
 
50
		// TODO voir à quoi on rattache les commentaires		
49
 
51
		if(commentaire.getParent() != null && commentaire.getParent().getId() != null) {
50
		if(commentaire.getParent() != null && commentaire.getParent().getId() != null) {
52
			if(commentaire.getParent() instanceof PropositionDetermination) {
51
			chaineRequete += "&id_parent="+commentaire.getParent().getId();
53
				chaineRequete += "&ce_proposition="+commentaire.getParent().getId();
52
			PropositionDetermination propositionParente = commentaire.getPropositionParenteOuNulle();
54
			} else if(commentaire.getParent() instanceof Commentaire) {
53
			if(propositionParente != null) {
55
				chaineRequete += "&ce_commentaire_parent="+commentaire.getParent().getId();
54
				chaineRequete += "&proposition="+commentaire.getPropositionParenteOuNulle();
56
			}
55
			}
57
		}
56
		}
58
		chaineRequete += "&texte="+commentaire.getCommentaire()+
57
		chaineRequete += "&texte="+commentaire.getCommentaire()+
59
		"&auteur.prenom="+commentaire.getContributeur().getPrenom()+
58
		"&auteur.prenom="+commentaire.getContributeur().getPrenom()+