Subversion Repositories eFlore/Applications.del

Rev

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

Rev 455 Rev 474
Line 1... Line 1...
1
package org.tela_botanica.del.client.modeles;
1
package org.tela_botanica.del.client.modeles;
Line -... Line 2...
-
 
2
 
-
 
3
import com.google.gwt.http.client.URL;
2
 
4
 
Line 3... Line 5...
3
public class InformationsRecherche {
5
public class InformationsRecherche {
Line 4... Line 6...
4
 
6
 
Line 120... Line 122...
120
 
122
 
121
	public void setTriParDate(ModeTri triParDate) {
123
	public void setTriParDate(ModeTri triParDate) {
122
		this.triParDate = triParDate;
124
		this.triParDate = triParDate;
Line -... Line 125...
-
 
125
	}
-
 
126
 
-
 
127
	public String versChaineRequete() {
-
 
128
		String chaine = "";
-
 
129
		chaine += estNonNull(rechercheLibre) ? "&recherche="+URL.encode(rechercheLibre) : "" ;
-
 
130
		chaine += estNonNull(departement) ? "&dpt="+URL.encode(departement) : "" ;
-
 
131
		chaine += estNonNull(taxon) ? "&taxon="+URL.encode(taxon) : "" ;
-
 
132
		chaine += estNonNull(genre) ? "&genre="+URL.encode(genre) : "" ;
-
 
133
		chaine += estNonNull(motClef) ? "&mot_cle="+URL.encode(motClef) : "" ;
-
 
134
		chaine += estNonNull(date) ? "&date_observation="+URL.encode(date) : "" ;
-
 
135
		chaine += estNonNull(commune) ? "&commune="+URL.encode(commune) : "" ;
-
 
136
		chaine += estNonNull(famille) ? "&famille="+URL.encode(famille) : "" ;
-
 
137
		chaine += estNonNull(tag) ? "&tag="+URL.encode(tag) : "" ;
-
 
138
		chaine += estNonNull(auteur) ? "&auteur="+URL.encode(auteur) : "" ;
-
 
139
		chaine += triParDate != ModeTri.PAS_DE_TRI ? "&tri=date_observation" : "" ;
-
 
140
		chaine += triParNbVotes != ModeTri.PAS_DE_TRI ? "&tri=nb_votes" : "" ;
-
 
141
		chaine += triParDate != ModeTri.PAS_DE_TRI ? "&ordre="+triParDate : "" ;
-
 
142
		chaine += triParNbVotes != ModeTri.PAS_DE_TRI ? "&ordre="+triParNbVotes : "" ;
-
 
143
 
-
 
144
		return chaine;
-
 
145
	}
-
 
146
	
-
 
147
	private boolean estNonNull(String critere) {
123
	}
148
		return critere != null && !critere.trim().isEmpty();