entity context "dataset" has been changed in "product" for url generation

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@141269 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-12-20 10:59:46 +00:00
parent 57ce4f6caf
commit 2ea40a8949
2 changed files with 3 additions and 3 deletions

View File

@ -925,7 +925,7 @@ public class DataCatalogueImpl implements DataCatalogue{
if(dataset != null){
if(getUriResolverUrl() != null)
url = getUrlForProduct(CONTEXT, EntityContext.DATASET, name, false);
url = getUrlForProduct(CONTEXT, EntityContext.PRODUCT, name, false);
if(url == null || url.isEmpty())
url = getPortletUrl() + "?" + URLEncoder.encode("path=/dataset/" + name, "UTF-8");
@ -955,7 +955,7 @@ public class DataCatalogueImpl implements DataCatalogue{
if(dataset != null){
if(getUriResolverUrl() != null)
url = getUrlForProduct(CONTEXT, EntityContext.DATASET, name, true);
url = getUrlForProduct(CONTEXT, EntityContext.PRODUCT, name, true);
if(url == null || url.isEmpty())
url = getPortletUrl() + "?" + URLEncoder.encode("path=/dataset/" + name, "UTF-8");

View File

@ -6,7 +6,7 @@ package org.gcube.datacatalogue.ckanutillibrary.utils.url;
*/
public enum EntityContext {
DATASET("dataset"),
PRODUCT("product"),
GROUP("group"),
ORGANIZATION("organization");