in data-catalog-api/server/custos-sharing/src/main/java/org/apache/airavata/datacatalog/api/sharing/SharingManagerImpl.java [257:269]
public void grantPublicAccess(DataProduct dataProduct, Permission permission) throws SharingException {
// TODO: create PUBLIC GROUP If not exists
List<String> userIds = new ArrayList<>();
userIds.add(PUBLIC_ACCESS_GROUP);
try {
custosSharingImpl.shareEntity(dataProduct.getOwner().getTenantId(),
dataProduct.getDataProductId(), permission.name(), userIds, true, Constants.GROUP, null);
} catch (CustosSharingException e) {
throw new SharingException(e);
}
}