onModuleLoad()
.
+ */
+public class CKanMetadataPublisher implements EntryPoint {
+
+ /**
+ * This is the entry point method.
+ */
+ public void onModuleLoad() {
+
+ // remove comment to the below line for testing the widget
+ startExample();
+
+ }
+
+ private void startExample() {
+
+ RootPanel.get("ckan-metadata-publisher-div").add(new EditMetadataForm());
+
+ }
+}
diff --git a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/CKanPublisherService.java b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/CKanPublisherService.java
new file mode 100644
index 0000000..41f8a5d
--- /dev/null
+++ b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/CKanPublisherService.java
@@ -0,0 +1,18 @@
+package org.gcube.portlets.widgets.ckandatapublisherwidget.client;
+
+import org.gcube.portlets.widgets.ckandatapublisherwidget.shared.LicensesBean;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
+
+/**
+ * CKAN publisher services.
+ * @author Costantino Perciante at ISTI-CNR
+ * (costantino.perciante@isti.cnr.it)
+ */
+@RemoteServiceRelativePath("ckanservices")
+public interface CKanPublisherService extends RemoteService {
+
+ LicensesBean getLicenses();
+
+}
diff --git a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/CKanPublisherServiceAsync.java b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/CKanPublisherServiceAsync.java
new file mode 100644
index 0000000..fa6c08c
--- /dev/null
+++ b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/CKanPublisherServiceAsync.java
@@ -0,0 +1,16 @@
+package org.gcube.portlets.widgets.ckandatapublisherwidget.client;
+
+import org.gcube.portlets.widgets.ckandatapublisherwidget.shared.LicensesBean;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+/**
+ * CKAN publisher services RPC.
+ * @author Costantino Perciante at ISTI-CNR
+ * (costantino.perciante@isti.cnr.it)
+ */
+public interface CKanPublisherServiceAsync {
+
+ void getLicenses(AsyncCallback