@RemoteServiceRelativePath(value="ckanservices")
public interface CKanPublisherService
extends com.google.gwt.user.client.rpc.RemoteService
| Modifier and Type | Method and Description |
|---|---|
ResourceElementBean |
addResourceToDataset(ResourceElementBean resource,
String organizationName,
String datasetId)
Add this resource to the dataset whose id is datasetId.
|
DatasetBean |
buildPartialDatasetBean(String folderIdOrFileId)
Retrieve a partially filled bean given a folder id/file id and its owner.
|
DatasetBean |
createCKanDataset(DatasetBean toCreate)
Try to create such dataset starting from the information contained into the
toCreate bean.
|
boolean |
datasetIdAlreadyExists(String title,
String orgName)
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.
|
boolean |
deleteItem(DatasetBean datasetBean)
Delete item.
|
boolean |
deleteResourceFromDataset(ResourceElementBean resource)
Delete this resource from the dataset with id datasetId.
|
void |
fetchProfilesFromCurrentScope()
Fetch profiles from current scope.
|
DatasetBean |
getBasicDatasetBean(String datasetIdOrName)
Gets the basic dataset bean.
|
DatasetBean |
getDatasetBeanForUpdate(String itemID)
Gets the dataset bean for update.
|
List<org.gcube.portlets.widgets.mpformbuilder.shared.license.LicenseBean> |
getLicenses()
Retrieve the list of licenses to show to the user.
|
MetadataProfileBeanForUpdate |
getProfileForUpdate(String orgName,
String datasetType,
String datasedIdOrName)
Gets the profile for update.
|
List<org.gcube.portlets.widgets.mpformbuilder.shared.metadata.MetaDataProfileBean> |
getProfiles(String orgName)
Retrieve the list of profiles for a given organization name .
|
String |
getPublicLinkForFileItemId(String itemId,
boolean shortenUrl)
Gets the public link for file item id.
|
List<String> |
getTagsForOrganization(String orgName)
Get the list of vocabulary tags for this scope.
|
List<OrganizationBean> |
getUserGroups(String orgName)
Retrieve the list of groups the user can choose to associate this product
with.
|
boolean |
isGeoJSONValid(String json)
Validate a geo json field.
|
Boolean |
isPublisherOwnerOrAdminUser(String datasetIdOrName)
Checks if is owner or admin user.
|
Boolean |
isPublisherUser()
The method checks if the user is a publisher or he/she doesn't have the
rights to publish.
|
DatasetBean |
updateCKANDataset(DatasetBean toUpdate)
Update CKAN dataset.
|
List<org.gcube.portlets.widgets.mpformbuilder.shared.license.LicenseBean> getLicenses()
List<org.gcube.portlets.widgets.mpformbuilder.shared.metadata.MetaDataProfileBean> getProfiles(String orgName) throws Exception
orgName - the org nameException - the exceptionDatasetBean buildPartialDatasetBean(String folderIdOrFileId) throws Exception
folderIdOrFileId - the id of the folder of file to publishException - the exceptionDatasetBean createCKanDataset(DatasetBean toCreate) throws Exception
toCreate - the to createException - the exceptionResourceElementBean addResourceToDataset(ResourceElementBean resource, String organizationName, String datasetId) throws Exception
resource - the resourceorganizationName - the organization namedatasetId - the dataset idException - the exceptionboolean deleteResourceFromDataset(ResourceElementBean resource) throws Exception
resource - the resourceException - the exceptionboolean datasetIdAlreadyExists(String title, String orgName) throws Exception
title - the titleorgName - the org nameException - the exceptionList<OrganizationBean> getUserGroups(String orgName)
orgName - retrieve the groups in the context linked to this name. If
null, returns the one in the current context.Boolean isPublisherUser() throws Exception
Exception - the exceptionList<String> getTagsForOrganization(String orgName) throws Exception
orgName - the org nameException - the exceptionboolean isGeoJSONValid(String json) throws Exception
json - the jsonException - the exceptionBoolean isPublisherOwnerOrAdminUser(String datasetIdOrName) throws Exception
datasetIdOrName - the dataset id or nameException - the exceptionDatasetBean getDatasetBeanForUpdate(String itemID) throws Exception
itemID - the item IDException - the exceptionMetadataProfileBeanForUpdate getProfileForUpdate(String orgName, String datasetType, String datasedIdOrName) throws Exception
orgName - the org namedatasetType - the dataset typedatasedIdOrName - the datased id or nameException - the exceptionDatasetBean updateCKANDataset(DatasetBean toUpdate) throws Exception
toUpdate - the to createException - the exceptionString getPublicLinkForFileItemId(String itemId, boolean shortenUrl) throws Exception
itemId - the item idshortenUrl - the shorten urlException - the exceptionDatasetBean getBasicDatasetBean(String datasetIdOrName) throws Exception
datasetIdOrName - the dataset id or nameException - the exceptionboolean deleteItem(DatasetBean datasetBean) throws Exception
datasetBean - the dataset beanException - the exceptionCopyright © 2026. All rights reserved.