Line 3... |
Line 3... |
3 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
3 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
4 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
4 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
5 |
import org.tela_botanica.client.observation.ObservationModele;
|
5 |
import org.tela_botanica.client.observation.ObservationModele;
|
Line 6... |
Line 6... |
6 |
|
6 |
|
7 |
import com.google.gwt.http.client.Request;
|
7 |
import com.google.gwt.http.client.Request;
|
8 |
import com.google.gwt.http.client.RequestBuilder;
|
8 |
import org.tela_botanica.client.util.RequestBuilderWithCredentials;
|
9 |
import com.google.gwt.http.client.RequestCallback;
|
9 |
import com.google.gwt.http.client.RequestCallback;
|
10 |
import com.google.gwt.http.client.RequestException;
|
10 |
import com.google.gwt.http.client.RequestException;
|
11 |
import com.google.gwt.http.client.Response;
|
11 |
import com.google.gwt.http.client.Response;
|
12 |
import com.google.gwt.json.client.JSONArray;
|
12 |
import com.google.gwt.json.client.JSONArray;
|
Line 44... |
Line 44... |
44 |
|
44 |
|
45 |
String referentielDefaut = Configuration.getReferentielsDispos().get(0).getCode();
|
45 |
String referentielDefaut = Configuration.getReferentielsDispos().get(0).getCode();
|
Line 46... |
Line 46... |
46 |
referentielTaxo = (referentielTaxo != null && !referentielTaxo.isEmpty()) ? referentielTaxo : referentielDefaut;
|
46 |
referentielTaxo = (referentielTaxo != null && !referentielTaxo.isEmpty()) ? referentielTaxo : referentielDefaut;
|
47 |
|
47 |
|
48 |
// on envoie le get asynchrone
|
48 |
// on envoie le get asynchrone
|
Line 49... |
Line 49... |
49 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.GET,Configuration.getServiceBaseUrl()
|
49 |
RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.GET,Configuration.getServiceBaseUrl()
|
50 |
+"/NameMap/"+referentielTaxo+"/"+numeroNomenclaturalSaisiObservation) ;
|
50 |
+"/NameMap/"+referentielTaxo+"/"+numeroNomenclaturalSaisiObservation) ;
|