minor fix

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@129109 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-06-14 10:36:50 +00:00
parent 053daea14a
commit e248cf0685
1 changed files with 21 additions and 21 deletions

View File

@ -412,15 +412,6 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
return null;
}
/**
* Ckan username has _ instead of . (that is, costantino.perciante -> costantino_perciante)
* @param owner
* @return
*/
private String fromOwnerToCKanOwner(String owner){
return owner.replaceAll("\\.", "_");
}
@Override
public ResourceBeanWrapper addResourceToDataset(ResourceBeanWrapper resource, String datasetId, String owner) {
@ -489,4 +480,13 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
return deleted;
}
/**
* Ckan username has _ instead of . (that is, costantino.perciante -> costantino_perciante)
* @param owner
* @return
*/
private String fromOwnerToCKanOwner(String owner){
return owner.replaceAll("\\.", "_");
}
}