Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 907 → Rev 908

/trunk/src/org/tela_botanica/del/client/services/rest/CommentaireServiceConcret.java
7,7 → 7,7
import org.tela_botanica.del.client.services.rest.async.CommentaireCallback.ModeRequete;
 
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.user.client.Window;
import com.google.gwt.http.client.URL;
 
public class CommentaireServiceConcret implements CommentaireService {
 
41,23 → 41,23
 
String chaineRequete = "";
if(commentaire.getObservation() != null && commentaire.getObservation().getId() != null) {
chaineRequete += "observation="+commentaire.getObservation().getId();
chaineRequete += "observation="+URL.encodeQueryString(commentaire.getObservation().getId());
}
if(commentaire.getContributeur().getId() != null) {
chaineRequete += "&auteur.id="+commentaire.getContributeur().getId();
chaineRequete += "&auteur.id="+URL.encodeQueryString(commentaire.getContributeur().getId());
}
 
if(commentaire.getParent() != null && commentaire.getParent().getId() != null) {
chaineRequete += "&id_parent="+commentaire.getParent().getId();
chaineRequete += "&id_parent="+URL.encodeQueryString(commentaire.getParent().getId());
PropositionDetermination propositionParente = commentaire.getPropositionParenteOuNulle();
if(propositionParente != null) {
chaineRequete += "&proposition="+commentaire.getPropositionParenteOuNulle();
chaineRequete += "&proposition="+URL.encodeQueryString(propositionParente.getId());
}
}
chaineRequete += "&texte="+commentaire.getCommentaire()+
"&auteur.prenom="+commentaire.getContributeur().getPrenom()+
"&auteur.nom="+commentaire.getContributeur().getNom()+
"&auteur.courriel="+commentaire.getContributeur().getAdresseEmail();
chaineRequete += "&texte="+URL.encodeQueryString(commentaire.getCommentaire())+
"&auteur.prenom="+URL.encodeQueryString(commentaire.getContributeur().getPrenom())+
"&auteur.nom="+URL.encodeQueryString(commentaire.getContributeur().getNom())+
"&auteur.courriel="+URL.encodeQueryString(commentaire.getContributeur().getAdresseEmail());
return chaineRequete;
}
}