package org.gcube.portlets.user.performfishanalytics.client; import java.util.List; import java.util.Map; import org.gcube.portlets.user.performfishanalytics.shared.OutputFile; import org.gcube.portlets.user.performfishanalytics.shared.PopulationType; import org.gcube.portlets.user.performfishanalytics.shared.csv.CSVFile; import org.gcube.portlets.user.performfishanalytics.shared.dataminer.DataMinerResponse; import org.gcube.portlets.user.performfishanalytics.shared.performfishservice.PerformFishInitParameter; import org.gcube.portlets.user.performfishanalytics.shared.performfishservice.PerformFishResponse; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.AsyncCallback; public interface PerformFishAnalyticsServiceAsync { /** * Utility class to get the RPC Async interface from client-side code */ public static final class Util { private static PerformFishAnalyticsServiceAsync instance; public static final PerformFishAnalyticsServiceAsync getInstance() { if ( instance == null ) { instance = (PerformFishAnalyticsServiceAsync) GWT.create( PerformFishAnalyticsService.class ); } return instance; } private Util() { // Utility class should not be instantiated } } void getListPopulationType( String populationName, AsyncCallback> callback); void getPopulationTypeWithListKPI( String populationTypeId, AsyncCallback callback); void decryptAndValidParameters( PerformFishInitParameter initParams, AsyncCallback callback); void submitRequestToPerformFishService( Map> mapParameters, AsyncCallback callback); void callingDataMinerPerformFishCorrelationAnalysis( PerformFishResponse result, Map> mapParameters, AsyncCallback callback); void getImageFile(OutputFile file, AsyncCallback callback); void readCSVFile(String URL, AsyncCallback callback); void getCSVFile( OutputFile file, boolean deleteAfter, AsyncCallback callback); void callingDataMinerPerformFishAnalysis( Map> mapParameters, AsyncCallback callback); void checkGrantToAccessFarmID(String farmID, AsyncCallback callback); }