47 lines
1.4 KiB
Java
47 lines
1.4 KiB
Java
package org.gcube.portlets.user.geoportaldataentry.client;
|
|
|
|
import java.util.List;
|
|
|
|
import org.gcube.application.geoportalcommon.shared.GeoNaItemRef;
|
|
import org.gcube.portlets.user.geoportaldataentry.shared.CommitReport;
|
|
import org.gcube.portlets.user.geoportaldataentry.shared.GeoNaFormDataObject;
|
|
import org.gcube.portlets.user.geoportaldataentry.shared.GeonaISConfig;
|
|
|
|
import com.google.gwt.core.client.GWT;
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
public interface GeoportalDataEntryServiceAsync
|
|
{
|
|
|
|
/**
|
|
* Utility class to get the RPC Async interface from client-side code
|
|
*/
|
|
public static final class Util
|
|
{
|
|
private static GeoportalDataEntryServiceAsync instance;
|
|
|
|
public static final GeoportalDataEntryServiceAsync getInstance()
|
|
{
|
|
if ( instance == null )
|
|
{
|
|
instance = (GeoportalDataEntryServiceAsync) GWT.create( GeoportalDataEntryService.class );
|
|
}
|
|
return instance;
|
|
}
|
|
|
|
private Util()
|
|
{
|
|
// Utility class should not be instantiated
|
|
}
|
|
}
|
|
|
|
|
|
void saveGeonaDataForms(List<GeoNaFormDataObject> listGeonaFormObjects, AsyncCallback<CommitReport> callback);
|
|
|
|
|
|
void getGeonaInitConfig(AsyncCallback<GeonaISConfig> callback);
|
|
|
|
|
|
void getLinksFor(Long itemId, String recordType, AsyncCallback<GeoNaItemRef> callback);
|
|
}
|