Changed some logs
This commit is contained in:
parent
c147b38cf2
commit
2d00592184
|
@ -74,17 +74,17 @@ public class CatalogueResolver {
|
||||||
String itemCatalogueURL;
|
String itemCatalogueURL;
|
||||||
|
|
||||||
if(itemCatalogueURLs.isPublicItem()){
|
if(itemCatalogueURLs.isPublicItem()){
|
||||||
logger.info("The dataset "+itemCatalogueURLs.getItemName()+" is a public");
|
logger.info("The dataset "+itemCatalogueURLs.getItemName()+" should be a public item (not private to VRE).");
|
||||||
if(itemCatalogueURLs.getPublicVRECataloguePortletURL()!=null && !itemCatalogueURLs.getPublicVRECataloguePortletURL().isEmpty()) {
|
if(itemCatalogueURLs.getPublicVRECataloguePortletURL()!=null && !itemCatalogueURLs.getPublicVRECataloguePortletURL().isEmpty()) {
|
||||||
itemCatalogueURL = itemCatalogueURLs.getPublicVRECataloguePortletURL();
|
itemCatalogueURL = itemCatalogueURLs.getPublicVRECataloguePortletURL();
|
||||||
logger.info("I found the public VRE catalogue URL "+itemCatalogueURL+" so using public access to it");
|
logger.info("I found the public VRE catalogue URL, so using public access to it: "+itemCatalogueURL);
|
||||||
}else {
|
}else {
|
||||||
itemCatalogueURL = itemCatalogueURLs.getPublicGatewayCataloguePortletURL();
|
itemCatalogueURL = itemCatalogueURLs.getPublicGatewayCataloguePortletURL();
|
||||||
logger.info("No public VRE catalogue URL found, so using public access to gateway CKAN portlet: "+itemCatalogueURL);
|
logger.info("No public VRE catalogue URL found, so using public access to gateway CKAN portlet: "+itemCatalogueURL);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
itemCatalogueURL = itemCatalogueURLs.getPrivateVRECataloguePortletURL();
|
itemCatalogueURL = itemCatalogueURLs.getPrivateVRECataloguePortletURL();
|
||||||
logger.info("The dataset "+itemCatalogueURLs.getItemName()+" is a private item so using protected access to CKAN portlet: "+itemCatalogueURL);
|
logger.info("The dataset "+itemCatalogueURLs.getItemName()+" is a private item (to VRE) so using protected access to CKAN portlet: "+itemCatalogueURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Response.seeOther(new URL(itemCatalogueURL).toURI()).build();
|
return Response.seeOther(new URL(itemCatalogueURL).toURI()).build();
|
||||||
|
|
Loading…
Reference in New Issue