public interface CKanPublisherServiceAsync
| Modifier and Type | Interface and Description |
|---|---|
static class |
CKanPublisherServiceAsync.Util
The Class Util.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceToDataset(ResourceElementBean resource,
String organizationName,
String datasetId,
com.google.gwt.user.client.rpc.AsyncCallback<ResourceElementBean> callback)
Add this resource to the dataset whose id is datasetId.
|
void |
buildPartialDatasetBean(String folderIdOrFileId,
com.google.gwt.user.client.rpc.AsyncCallback<DatasetBean> callback)
Retrieve a partially filled bean given a folder id/file id and its owner.
|
void |
createCKanDataset(DatasetBean toCreate,
com.google.gwt.user.client.rpc.AsyncCallback<DatasetBean> callback)
Try to create such dataset starting from the information contained into the
toCreate bean.
|
void |
datasetIdAlreadyExists(String title,
String orgName,
com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
Given the title the user wants to give to the new product to create, a check
is performed to understand if a dataset with the proposed title (and so the
id generated at server side) already exists.
|
void |
deleteItem(DatasetBean datasetBean,
com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callaback)
Delete item.
|
void |
deleteResourceFromDataset(ResourceElementBean resource,
com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
Delete this resource from the dataset with id datasetId.
|
void |
fetchProfilesFromCurrentScope(com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
Fetch profiles from current scope.
|
void |
getBasicDatasetBean(String datasetIdOrName,
com.google.gwt.user.client.rpc.AsyncCallback<DatasetBean> callaback)
Gets the basic dataset bean.
|
void |
getDatasetBeanForUpdate(String itemID,
com.google.gwt.user.client.rpc.AsyncCallback<DatasetBean> callback)
Gets the dataset bean.
|
void |
getLicenses(com.google.gwt.user.client.rpc.AsyncCallback<List<org.gcube.portlets.widgets.mpformbuilder.shared.license.LicenseBean>> callback)
Retrieve the list of licenses to show to the user.
|
void |
getProfileForUpdate(String orgName,
String datasetType,
String datasedIdOrName,
com.google.gwt.user.client.rpc.AsyncCallback<MetadataProfileBeanForUpdate> callaback)
Gets the profile for update.
|
void |
getProfiles(String orgName,
com.google.gwt.user.client.rpc.AsyncCallback<List<org.gcube.portlets.widgets.mpformbuilder.shared.metadata.MetaDataProfileBean>> callback)
Retrieve the list of profiles for a given organization name .
|
void |
getPublicLinkForFileItemId(String itemId,
boolean shortenUrl,
com.google.gwt.user.client.rpc.AsyncCallback<String> callaback)
Gets the public link for file item id.
|
void |
getTagsForOrganization(String orgName,
com.google.gwt.user.client.rpc.AsyncCallback<List<String>> callback)
Get the list of vocabulary tags for this scope.
|
void |
getUserGroups(String orgName,
com.google.gwt.user.client.rpc.AsyncCallback<List<OrganizationBean>> callback)
Retrieve the list of groups the user can choose to associate this product
with.
|
void |
isGeoJSONValid(String json,
com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
Validate a geo json field.
|
void |
isPublisherOwnerOrAdminUser(String datasetIdOrName,
com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
Checks if is owner or admin user.
|
void |
isPublisherUser(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
Checks if is publisher user.
|
void |
updateCKANDataset(DatasetBean toUpdate,
com.google.gwt.user.client.rpc.AsyncCallback<DatasetBean> callaback)
Update CKAN dataset.
|
void getLicenses(com.google.gwt.user.client.rpc.AsyncCallback<List<org.gcube.portlets.widgets.mpformbuilder.shared.license.LicenseBean>> callback)
callback - the callbackvoid buildPartialDatasetBean(String folderIdOrFileId, com.google.gwt.user.client.rpc.AsyncCallback<DatasetBean> callback)
folderIdOrFileId - the id of the folder of file to publishcallback - the callbackvoid createCKanDataset(DatasetBean toCreate, com.google.gwt.user.client.rpc.AsyncCallback<DatasetBean> callback)
toCreate - the to createcallback - the callbackvoid addResourceToDataset(ResourceElementBean resource, String organizationName, String datasetId, com.google.gwt.user.client.rpc.AsyncCallback<ResourceElementBean> callback)
resource - the resourceorganizationName - the organization namedatasetId - the dataset idcallback - the callbackvoid deleteResourceFromDataset(ResourceElementBean resource, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
resource - the resourcecallback - the callbackvoid getProfiles(String orgName, com.google.gwt.user.client.rpc.AsyncCallback<List<org.gcube.portlets.widgets.mpformbuilder.shared.metadata.MetaDataProfileBean>> callback)
orgName - the org namecallback - the callbackvoid datasetIdAlreadyExists(String title, String orgName, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
title - the titleorgName - the org namecallback - the callbackvoid getUserGroups(String orgName, com.google.gwt.user.client.rpc.AsyncCallback<List<OrganizationBean>> callback)
orgName - retrieve the groups in the context linked to this name. If
null, returns the one in the current context.callback - the callbackvoid isPublisherUser(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
callback - the callbackvoid getTagsForOrganization(String orgName, com.google.gwt.user.client.rpc.AsyncCallback<List<String>> callback)
orgName - the org namecallback - the callbackvoid isGeoJSONValid(String json, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
json - the jsoncallback - the callbackvoid isPublisherOwnerOrAdminUser(String datasetIdOrName, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
datasetIdOrName - the dataset id or namecallback - the callbackvoid getDatasetBeanForUpdate(String itemID, com.google.gwt.user.client.rpc.AsyncCallback<DatasetBean> callback)
itemID - the item IDcallback - the callbackvoid getProfileForUpdate(String orgName, String datasetType, String datasedIdOrName, com.google.gwt.user.client.rpc.AsyncCallback<MetadataProfileBeanForUpdate> callaback)
orgName - the org namedatasetType - the dataset typedatasedIdOrName - the datased id or namecallaback - the callabackvoid updateCKANDataset(DatasetBean toUpdate, com.google.gwt.user.client.rpc.AsyncCallback<DatasetBean> callaback)
toUpdate - the to updatecallaback - the callabackvoid getPublicLinkForFileItemId(String itemId, boolean shortenUrl, com.google.gwt.user.client.rpc.AsyncCallback<String> callaback)
itemId - the item idshortenUrl - the shorten urlcallaback - the callabackvoid getBasicDatasetBean(String datasetIdOrName, com.google.gwt.user.client.rpc.AsyncCallback<DatasetBean> callaback)
datasetIdOrName - the dataset id or namecallaback - the callabackvoid deleteItem(DatasetBean datasetBean, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callaback)
datasetBean - the dataset beancallaback - the callabackvoid fetchProfilesFromCurrentScope(com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
callback - the callbackCopyright © 2026. All rights reserved.