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)
Adds the resource to dataset.
|
DatasetBean |
createCKanDataset(DatasetBean toCreate)
Creates the C kan dataset.
|
boolean |
datasetIdAlreadyExists(String title,
String orgName)
Dataset id already exists.
|
boolean |
deleteResourceFromDataset(ResourceElementBean resource)
Delete resource from dataset.
|
org.gcube.datacatalogue.utillibrary.server.DataCatalogue |
getCatalogue(String scope)
Retrieve an instance of the library for the scope.
|
DatasetBean |
getDatasetBean(String folderId)
Gets the dataset bean.
|
List<LicenseBean> |
getLicenses()
Gets the licenses.
|
List<MetaDataProfileBean> |
getProfiles(String orgName)
Gets the profiles.
|
List<String> |
getTagsForOrganization(String orgName)
Gets the tags for organization.
|
List<OrganizationBean> |
getUserGroups(String orgName)
Gets the user groups.
|
protected org.gcube.common.storagehubwrapper.server.tohl.Workspace |
getWorkspaceFromStorageHub()
Gets the workspace from storage hub.
|
boolean |
isGeoJSONValid(String geoJson)
Checks if is geo JSON valid.
|
boolean |
isPublisherUser(boolean isWorkspaceRequest)
Checks if is publisher user.
|
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.utillibrary.server.DataCatalogue getCatalogue(String scope)
scope - if it is null it is evaluated from the sessionprotected org.gcube.common.storagehubwrapper.server.tohl.Workspace getWorkspaceFromStorageHub()
throws Exception
Exception - the exceptionpublic List<LicenseBean> getLicenses()
getLicenses in interface CKanPublisherServicepublic DatasetBean getDatasetBean(String folderId) throws Exception
getDatasetBean in interface CKanPublisherServicefolderId - the folder idException - the exceptionpublic List<String> getTagsForOrganization(String orgName) throws Exception
getTagsForOrganization in interface CKanPublisherServiceorgName - the org nameException - the exceptionpublic DatasetBean createCKanDataset(DatasetBean toCreate) throws Exception
createCKanDataset in interface CKanPublisherServicetoCreate - the to createException - the exceptionpublic ResourceElementBean addResourceToDataset(ResourceElementBean resource, String datasetId) throws Exception
addResourceToDataset in interface CKanPublisherServiceresource - the resourcedatasetId - the dataset idException - the exceptionpublic boolean deleteResourceFromDataset(ResourceElementBean resource) throws Exception
deleteResourceFromDataset in interface CKanPublisherServiceresource - the resourceException - the exceptionpublic List<MetaDataProfileBean> getProfiles(String orgName) throws Exception
getProfiles in interface CKanPublisherServiceorgName - the org nameException - the exceptionpublic boolean datasetIdAlreadyExists(String title, String orgName) throws Exception
datasetIdAlreadyExists in interface CKanPublisherServicetitle - the titleorgName - the org nameException - the exceptionpublic List<OrganizationBean> getUserGroups(String orgName)
getUserGroups in interface CKanPublisherServiceorgName - the org namepublic boolean isPublisherUser(boolean isWorkspaceRequest)
throws Exception
isPublisherUser in interface CKanPublisherServiceisWorkspaceRequest - the is workspace requestException - the exceptionpublic boolean isGeoJSONValid(String geoJson) throws Exception
isGeoJSONValid in interface CKanPublisherServicegeoJson - the geo jsonException - the exceptionCopyright © 2021. All Rights Reserved.