package org.gcube.portlets.widgets.ckandatapublisherwidget.client; import org.gcube.portlets.widgets.ckandatapublisherwidget.shared.DatasetMetadataBean; 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 { /** * Retrieve the list of licenses to show to the user. * @return a LicenseBean on success, null on error. */ void getLicenses(AsyncCallback callback); /** * Retrieve a partially filled bean given a folder id and its owner. * @param folderId * @param owner * @return @return a DatasetMetadataBean on success, null on error. */ void getDatasetBean(String folderId, String owner, AsyncCallback callback); /** * Try to create such dataset starting from the information contained into the toCreate bean. * @param toCreate * @return true on success, false otherwise */ void createCKanDataset(DatasetMetadataBean toCreate, AsyncCallback callback); }