aligned with the new method 'addResourceToDataset(ResourceBean

resourceBean, String organizationName, String username)'
This commit is contained in:
Francesco Mangiacrapa 2021-03-02 14:42:10 +01:00
parent 27e356be52
commit 277aedb975
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
// get the scope in which we should discover the ckan instance given the organization name in which the dataset was created
String scope = getScopeFromOrgName(resource.getOrganizationNameDatasetParent());
DataCatalogue catalogue = getCatalogue(scope);
String resourceId = catalogue.addResourceToDataset(resourceBean);
String resourceId = catalogue.addResourceToDataset(resourceBean, resource.getOrganizationNameDatasetParent(), username);
if(resourceId != null){
logger.info("Resource " + resource.getName() + " is now available");