Subversion Repositories eFlore/Applications.coel

Rev

Rev 1860 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1860 Rev 1863
Line 11... Line 11...
11
import org.tela_botanica.client.synchronisation.Reponse;
11
import org.tela_botanica.client.synchronisation.Reponse;
12
import org.tela_botanica.client.util.Log;
12
import org.tela_botanica.client.util.Log;
13
import org.tela_botanica.client.util.UtilDAO;
13
import org.tela_botanica.client.util.UtilDAO;
Line 14... Line 14...
14
 
14
 
15
import com.extjs.gxt.ui.client.Registry;
15
import com.extjs.gxt.ui.client.Registry;
16
import com.google.gwt.core.client.GWT;
16
import com.google.gwt.core.client.Callback;
17
import com.google.gwt.json.client.JSONArray;
17
import com.google.gwt.json.client.JSONArray;
18
import com.google.gwt.json.client.JSONObject;
-
 
19
import com.google.gwt.json.client.JSONParser;
18
import com.google.gwt.json.client.JSONObject;
20
import com.google.gwt.json.client.JSONValue;
-
 
Line 21... Line 19...
21
import com.google.gwt.user.client.Window;
19
import com.google.gwt.json.client.JSONValue;
22
 
20
 
23
public class PublicationAsyncDao {
21
public class PublicationAsyncDao {
24
	private static final String SERVICE_NOM = "CoelPublication";
22
	private static final String SERVICE_NOM = "CoelPublication";
Line 195... Line 193...
195
		} else {
193
		} else {
196
			vueARafraichir.rafraichir(info);
194
			vueARafraichir.rafraichir(info);
197
		}
195
		}
198
	}
196
	}
Line -... Line 197...
-
 
197
	
-
 
198
	public static void demanderStatistiquesDernierImport(final Callback<JSONValue, String> callBack) {
-
 
199
		final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_IMPORT);
-
 
200
		rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
-
 
201
			@Override
-
 
202
			public void surReponse(JSONValue reponseValeur) {
-
 
203
				callBack.onSuccess(reponseValeur);
-
 
204
			}
-
 
205
		});
-
 
206
	}
199
	
207
	
200
	public static boolean importEstUnSucces(JSONValue responseValue) {
208
	public static boolean importEstUnSucces(JSONValue responseValue) {
201
		boolean succesImportBool = false;
209
		boolean succesImportBool = false;
202
		if(responseValue != null) {
210
		if(responseValue != null) {
203
			JSONObject objetReponse = responseValue.isObject();
211
			JSONObject objetReponse = responseValue.isObject();