public class CKANPublisherServicesImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements CKanPublisherService
| Modifier and Type | Field and Description |
|---|---|
static String |
TEST_SCOPE |
static String |
TEST_USER |
| Constructor and Description |
|---|
CKANPublisherServicesImpl() |
| Modifier and Type | Method and Description |
|---|---|
ResourceBeanWrapper |
addResourceToDataset(ResourceBeanWrapper resource,
String datasetId,
String owner)
Add this resource to the dataset whose id is datasetId
|
DatasetMetadataBean |
createCKanDataset(DatasetMetadataBean toCreate,
boolean isWorkspaceRequest)
Try to create such dataset starting from the information contained into the toCreate bean.
|
boolean |
deleteResourceFromDataset(ResourceBeanWrapper resource,
String owner)
Delete this resource from the dataset with id datasetId
|
org.gcube.datacatalogue.ckanutillibrary.CKanUtils |
getCkanUtilsObj(String scope)
Retrieve an instance of the library for the scope
|
DatasetMetadataBean |
getDatasetBean(String folderId,
String owner)
Retrieve a partially filled bean given a folder id and its owner.
|
String |
getDevelopmentUser()
when packaging test will fail if the user is not set to test.user
|
LicensesBean |
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 .
|
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 static final String TEST_SCOPE
public static final String TEST_USER
public org.gcube.datacatalogue.ckanutillibrary.CKanUtils getCkanUtilsObj(String scope)
scope - if it is null it is evaluated from the sessionpublic String getDevelopmentUser()
public LicensesBean getLicenses()
CKanPublisherServicegetLicenses in interface CKanPublisherServicepublic DatasetMetadataBean getDatasetBean(String folderId, String owner)
CKanPublisherServicegetDatasetBean in interface CKanPublisherServicepublic DatasetMetadataBean createCKanDataset(DatasetMetadataBean toCreate, boolean isWorkspaceRequest)
CKanPublisherServicecreateCKanDataset in interface CKanPublisherServiceisWorkspaceRequest - if the call comes from the workspacepublic ResourceBeanWrapper addResourceToDataset(ResourceBeanWrapper resource, String datasetId, String owner)
CKanPublisherServiceaddResourceToDataset in interface CKanPublisherServiceowner - of the datasetpublic boolean deleteResourceFromDataset(ResourceBeanWrapper resource, String owner)
CKanPublisherServicedeleteResourceFromDataset in interface CKanPublisherServiceowner - of the datasetpublic List<MetaDataProfileBean> getProfiles(String orgName)
CKanPublisherServicegetProfiles in interface CKanPublisherServiceCopyright © 2016. All Rights Reserved.