public interface CKanPublisherServiceAsync
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceToDataset(ResourceElementBean resource,
String datasetId,
com.google.gwt.user.client.rpc.AsyncCallback<ResourceElementBean> callback)
Add this resource to the dataset whose id is datasetId
|
void |
createCKanDataset(DatasetMetadataBean toCreate,
com.google.gwt.user.client.rpc.AsyncCallback<DatasetMetadataBean> callback)
Try to create such dataset starting from the information contained into the toCreate bean.
|
void |
datasetIdAlreadyExists(String title,
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 |
deleteResourceFromDataset(ResourceElementBean resource,
com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
Delete this resource from the dataset with id datasetId
|
void |
getDatasetBean(String folderIdOrFileId,
com.google.gwt.user.client.rpc.AsyncCallback<DatasetMetadataBean> callback)
Retrieve a partially filled bean given a folder id/file id and its owner.
|
void |
getLicenses(com.google.gwt.user.client.rpc.AsyncCallback<LicensesBean> callback)
Retrieve the list of licenses to show to the user.
|
void |
getProfiles(String orgName,
com.google.gwt.user.client.rpc.AsyncCallback<List<MetaDataProfileBean>> callback)
Retrieve the list of profiles for a given organization name .
|
void |
getUserGroups(String orgName,
com.google.gwt.user.client.rpc.AsyncCallback<List<GroupBean>> callback)
Retrieve the list of groups the user can choose to associate this product with.
|
void |
isPublisherUser(boolean isWorkspaceRequest,
com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
The method checks if the user is a publisher or he/she doesn't have the rights to publish
|
void getLicenses(com.google.gwt.user.client.rpc.AsyncCallback<LicensesBean> callback)
void getDatasetBean(String folderIdOrFileId, com.google.gwt.user.client.rpc.AsyncCallback<DatasetMetadataBean> callback)
folderIdOrFileId - the id of the folder of file to publishvoid createCKanDataset(DatasetMetadataBean toCreate, com.google.gwt.user.client.rpc.AsyncCallback<DatasetMetadataBean> callback)
toCreate - void addResourceToDataset(ResourceElementBean resource, String datasetId, com.google.gwt.user.client.rpc.AsyncCallback<ResourceElementBean> callback)
resource - datasetId - callback - void deleteResourceFromDataset(ResourceElementBean resource, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
resource - void getProfiles(String orgName, com.google.gwt.user.client.rpc.AsyncCallback<List<MetaDataProfileBean>> callback)
void datasetIdAlreadyExists(String title, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
title - void getUserGroups(String orgName, com.google.gwt.user.client.rpc.AsyncCallback<List<GroupBean>> callback)
orgName - retrieve the groups in the context linked to this name. If null, returns
the one in the current context.void isPublisherUser(boolean isWorkspaceRequest,
com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
Copyright © 2017. All Rights Reserved.