28 lines
716 B
Java
28 lines
716 B
Java
package org.gcube.portlets.widgets.ckan2zenodopublisher.server;
|
|
|
|
import org.gcube.portlets.widgets.ckan2zenodopublisher.client.CkanToZenodoPublisherService;
|
|
import org.gcube.portlets.widgets.ckan2zenodopublisher.shared.CatalogueItem;
|
|
|
|
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
|
|
|
|
/**
|
|
* The server side implementation of the RPC service.
|
|
*/
|
|
@SuppressWarnings("serial")
|
|
public class CkanToZenodoPublisherServiceImpl extends RemoteServiceServlet implements
|
|
CkanToZenodoPublisherService {
|
|
|
|
public String greetServer(String input) throws IllegalArgumentException {
|
|
|
|
|
|
return "Hello";
|
|
}
|
|
|
|
@Override
|
|
public String publishOnZenodo(CatalogueItem item) {
|
|
|
|
return "RPC works";
|
|
|
|
}
|
|
}
|