2016-06-13 09:48:29 +02:00
|
|
|
|
|
|
|
package org.gcube.portlets.gcubeckan.gcubeckandatacatalog.client;
|
|
|
|
|
|
|
|
import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.client.view.GCubeCkanDataCatalogPanel;
|
|
|
|
|
|
|
|
import com.google.gwt.core.client.EntryPoint;
|
2016-06-27 16:58:01 +02:00
|
|
|
import com.google.gwt.core.client.GWT;
|
2016-06-13 09:48:29 +02:00
|
|
|
import com.google.gwt.user.client.ui.RootPanel;
|
|
|
|
|
|
|
|
/**
|
2016-11-04 13:01:35 +01:00
|
|
|
* The Class GCubeCkanDataCatalog.
|
|
|
|
*
|
2022-05-04 11:07:11 +02:00
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Nov 4, 2016
|
2016-06-13 09:48:29 +02:00
|
|
|
*/
|
|
|
|
public class GCubeCkanDataCatalog implements EntryPoint {
|
|
|
|
|
|
|
|
/**
|
2022-05-04 11:07:11 +02:00
|
|
|
* Create a remote service proxy to talk to the server-side Greeting service.
|
2016-06-13 09:48:29 +02:00
|
|
|
*/
|
|
|
|
public static final GcubeCkanDataCatalogServiceAsync service = GWT.create(GcubeCkanDataCatalogService.class);
|
2022-05-04 11:07:11 +02:00
|
|
|
public static final String CKAN_LOGUT_SERVICE = GWT.getModuleBaseURL() + "gcubeckanlogout";
|
2016-06-13 09:48:29 +02:00
|
|
|
private final String DIV_PORTLET_ID = "gCubeCkanDataCatalog";
|
|
|
|
private CkanEventHandlerManager eventManager = new CkanEventHandlerManager();
|
2016-06-20 15:22:21 +02:00
|
|
|
public static final String GET_PATH_PARAMETER = "path";
|
|
|
|
public static final String GET_QUERY_PARAMETER = "query";
|
2022-05-04 11:07:11 +02:00
|
|
|
public static final String GET_QUERY_STRING_PARAMETER = "query_string";
|
2018-02-04 12:05:22 +01:00
|
|
|
public static final String REVERT_QUERY_PARAM = "manage";
|
2016-07-15 18:19:05 +02:00
|
|
|
public static final String GCUBE_CKAN_IFRAME = "gcube-ckan-iframe";
|
2016-06-13 09:48:29 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is the entry point method.
|
|
|
|
*/
|
|
|
|
public void onModuleLoad() {
|
2016-10-28 17:39:06 +02:00
|
|
|
|
2022-05-04 11:07:11 +02:00
|
|
|
GCubeCkanDataCatalogPanel panel = new GCubeCkanDataCatalogPanel(RootPanel.get(DIV_PORTLET_ID),
|
|
|
|
eventManager.getEventBus());
|
2016-06-22 18:40:38 +02:00
|
|
|
eventManager.setPanel(panel);
|
2016-06-13 09:48:29 +02:00
|
|
|
}
|
2016-10-28 17:39:06 +02:00
|
|
|
|
2016-06-13 09:48:29 +02:00
|
|
|
}
|