public class CKANPublisherServicesImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements CKanPublisherService
| Constructor and Description |
|---|
CKANPublisherServicesImpl() |
| Modifier and Type | Method and Description |
|---|---|
ResourceElementBean |
addResourceToDataset(ResourceElementBean resource,
String datasetId)
Add this resource to the dataset whose id is datasetId
|
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 |
deleteResourceFromDataset(ResourceElementBean resource)
Delete this resource from the dataset with id datasetId
|
org.gcube.datacatalogue.ckanutillibrary.server.DataCatalogue |
getCatalogue(String scope)
Retrieve an instance of the library for the scope
|
DatasetBean |
getDatasetBean(String folderId)
Retrieve a partially filled bean given a folder id/file id and its owner.
|
List<LicenseBean> |
getLicenses()
Retrieve the list of licenses to show to the user.
|
List<MetaDataProfileBean> |
getProfiles(String orgName)
Retrieve the list of profiles for a given organization name .
|
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 geoJson)
Validate a geo json field
|
boolean |
isPublisherUser(boolean isWorkspaceRequest)
The method checks if the user is a publisher or he/she doesn't have the rights to publish
|
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic org.gcube.datacatalogue.ckanutillibrary.server.DataCatalogue getCatalogue(String scope)
scope - if it is null it is evaluated from the sessionpublic List<LicenseBean> getLicenses()
CKanPublisherServicegetLicenses in interface CKanPublisherServicepublic DatasetBean getDatasetBean(String folderId) throws Exception
CKanPublisherServicegetDatasetBean in interface CKanPublisherServicefolderId - the id of the folder of file to publishExceptionpublic List<String> getTagsForOrganization(String orgName) throws Exception
CKanPublisherServicegetTagsForOrganization in interface CKanPublisherServiceExceptionpublic DatasetBean createCKanDataset(DatasetBean toCreate) throws Exception
CKanPublisherServicecreateCKanDataset in interface CKanPublisherServiceExceptionpublic ResourceElementBean addResourceToDataset(ResourceElementBean resource, String datasetId) throws Exception
CKanPublisherServiceaddResourceToDataset in interface CKanPublisherServiceExceptionpublic boolean deleteResourceFromDataset(ResourceElementBean resource) throws Exception
CKanPublisherServicedeleteResourceFromDataset in interface CKanPublisherServiceExceptionpublic List<MetaDataProfileBean> getProfiles(String orgName) throws Exception
CKanPublisherServicegetProfiles in interface CKanPublisherServiceExceptionpublic boolean datasetIdAlreadyExists(String title, String orgName) throws Exception
CKanPublisherServicedatasetIdAlreadyExists in interface CKanPublisherServiceExceptionpublic List<OrganizationBean> getUserGroups(String orgName)
CKanPublisherServicegetUserGroups in interface CKanPublisherServiceorgName - retrieve the groups in the context linked to this name. If null, returns
the one in the current context.public boolean isPublisherUser(boolean isWorkspaceRequest)
throws Exception
CKanPublisherServiceisPublisherUser in interface CKanPublisherServiceExceptionpublic boolean isGeoJSONValid(String geoJson) throws Exception
CKanPublisherServiceisGeoJSONValid in interface CKanPublisherServiceExceptionCopyright © 2019. All Rights Reserved.