2016-05-26 18:12:53 +02:00
|
|
|
package org.gcube.portlets.widgets.ckandatapublisherwidget.client;
|
|
|
|
|
|
|
|
import org.gcube.portlets.widgets.ckandatapublisherwidget.client.ui.EditMetadataForm;
|
|
|
|
|
|
|
|
import com.google.gwt.core.client.EntryPoint;
|
|
|
|
import com.google.gwt.user.client.ui.RootPanel;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Entry point classes define <code>onModuleLoad()</code>.
|
|
|
|
*/
|
|
|
|
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() {
|
|
|
|
|
2016-05-27 19:08:03 +02:00
|
|
|
String idFolderWorkspace = "06bc1ca7-bf1b-4797-b0a4-cb8a55a9c189";
|
|
|
|
String owner = "costantino.perciante";
|
|
|
|
RootPanel.get("ckan-metadata-publisher-div").add(new EditMetadataForm(idFolderWorkspace, owner));
|
2016-05-26 18:12:53 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|