Subversion Repositories eFlore/Applications.del

Rev

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

Rev 445 Rev 466
Line 1... Line 1...
1
package org.tela_botanica.del.client.services.rest;
1
package org.tela_botanica.del.client.services.rest;
Line 2... Line -...
2
 
-
 
3
import org.tela_botanica.del.client.cache.CacheClient;
2
 
4
import org.tela_botanica.del.client.modeles.InformationsRecherche;
-
 
5
import org.tela_botanica.del.client.modeles.Observation;
3
import org.tela_botanica.del.client.modeles.InformationsRecherche;
6
import org.tela_botanica.del.client.modeles.ObservationServiceResultat;
4
import org.tela_botanica.del.client.modeles.ObservationServiceResultat;
Line 7... Line 5...
7
import org.tela_botanica.del.client.services.rest.async.ObservationsCallback;
5
import org.tela_botanica.del.client.services.rest.async.ObservationsCallback;
Line 27... Line 25...
27
 
25
 
28
		String chaineRequete = "?debut=" + debut + "&limite=" + (fin - debut);
26
		String chaineRequete = "?debut=" + debut + "&limite=" + (fin - debut);
29
		if (infos != null && infos.getTaxon() != null && !infos.getTaxon().trim().isEmpty()) {
27
		if (infos != null && infos.getTaxon() != null && !infos.getTaxon().trim().isEmpty()) {
30
			chaineRequete += "nom_taxon=" + infos.getTaxon() + chaineRequete;
28
			chaineRequete += "nom_taxon=" + infos.getTaxon() + chaineRequete;
-
 
29
		}
-
 
30
		
-
 
31
		if(infos != null && infos.getTriParDate() != null) {
-
 
32
			chaineRequete += "&tri=date_observation&ordre="+infos.getTriParDate().toString();
Line 31... Line 33...
31
		}
33
		}
32
 
34
 
Line 33... Line 35...
33
		return chaineRequete;
35
		return chaineRequete;