fixed returned url (now use the portletUrl as base url)

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@133193 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-10-13 16:51:34 +00:00
parent 40bcc5d462
commit ab5371f97d
2 changed files with 4 additions and 4 deletions

View File

@ -202,7 +202,7 @@ public class GrsfPublisherFisheryService {
List<ResourceBean> resources = HelperMethods.getResourcesFromBean(record, username);
// if confirmed, set to visible TODO anyway if it is confirmed we should another method
boolean setPublic = false;
boolean setPublic = true;
// check the license id
String license = null;
@ -238,7 +238,7 @@ public class GrsfPublisherFisheryService {
responseBean.setId(id);
status = Status.CREATED;
responseBean.setError(null);
responseBean.setDatasetUrl(catalogue.getCatalogueUrl() + "/dataset/" + futureName);
responseBean.setDatasetUrl(catalogue.getPortletUrl() + "?path=/dataset/" + futureName);
if(!groups.isEmpty()){
logger.info("Launching thread for association to the list of groups " + groups);

View File

@ -193,7 +193,7 @@ public class GrsfPublisherStockService {
// evaluate the resources
List<ResourceBean> resources = HelperMethods.getResourcesFromBean(record, username);
boolean setPublic = false;
boolean setPublic = true;
// check the license id
String license = null;
@ -229,7 +229,7 @@ public class GrsfPublisherStockService {
responseBean.setId(id);
status = Status.CREATED;
responseBean.setError(null);
responseBean.setDatasetUrl(catalogue.getCatalogueUrl() + "/dataset/" + futureName);
responseBean.setDatasetUrl(catalogue.getPortletUrl() + "?path=/dataset/" + futureName);
if(!groups.isEmpty()){
logger.info("Launching thread for association to the list of groups " + groups);