Interface CKanPublisherServiceAsync


  • public interface CKanPublisherServiceAsync
    CKAN publisher services RPC.
    Author:
    Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
    • Method Detail

      • getLicenses

        void getLicenses​(com.google.gwt.user.client.rpc.AsyncCallback<List<LicenseBean>> callback)
        Retrieve the list of licenses to show to the user.
      • getDatasetBean

        void getDatasetBean​(String folderIdOrFileId,
                            com.google.gwt.user.client.rpc.AsyncCallback<DatasetBean> callback)
        Retrieve a partially filled bean given a folder id/file id and its owner.
        Parameters:
        folderIdOrFileId - the id of the folder of file to publish
      • createCKanDataset

        void createCKanDataset​(DatasetBean toCreate,
                               com.google.gwt.user.client.rpc.AsyncCallback<DatasetBean> callback)
        Try to create such dataset starting from the information contained into the toCreate bean.
        Parameters:
        toCreate -
      • addResourceToDataset

        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
        Parameters:
        resource -
        datasetId -
        callback -
      • deleteResourceFromDataset

        void deleteResourceFromDataset​(ResourceElementBean resource,
                                       com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
        Delete this resource from the dataset with id datasetId
        Parameters:
        resource -
      • getProfiles

        void getProfiles​(String orgName,
                         com.google.gwt.user.client.rpc.AsyncCallback<List<MetaDataProfileBean>> callback)
        Retrieve the list of profiles for a given organization name .
      • datasetIdAlreadyExists

        void datasetIdAlreadyExists​(String title,
                                    String orgName,
                                    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
        Parameters:
        title -
      • getUserGroups

        void getUserGroups​(String orgName,
                           com.google.gwt.user.client.rpc.AsyncCallback<List<OrganizationBean>> callback)
        Retrieve the list of groups the user can choose to associate this product with.
        Parameters:
        orgName - retrieve the groups in the context linked to this name. If null, returns the one in the current context.
      • isPublisherUser

        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
      • getTagsForOrganization

        void getTagsForOrganization​(String orgName,
                                    com.google.gwt.user.client.rpc.AsyncCallback<List<String>> callback)
        Get the list of vocabulary tags for this scope
        Parameters:
        orgName -
      • isGeoJSONValid

        void isGeoJSONValid​(String json,
                            com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
        Validate a geo json field
        Parameters:
        json -