4207: Uri Resolver upgrade: it must support new Geonetwork Manager

Task-Url: https://support.d4science.org/issues/4207

Changed logil level to SCOPE

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@129030 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-06-09 09:52:57 +00:00
parent 12dfd53d86
commit 467d510a7f
2 changed files with 2 additions and 1 deletions

View File

@ -111,6 +111,7 @@ public class GeonetworkInstance {
try {
try {
logger.info("Authenticationg with login level: "+level);
this.geonetworkPublisher.login(level);
}
catch (MissingConfigurationException | MissingServiceEndpointException e) {

View File

@ -282,7 +282,7 @@ public class GisResolver extends HttpServlet{
try {
GeonetworkServiceInterface gntwAccess = new GeonetworkAccessParameter(scope, geonetworkParams);
return MetadataConverter.getWMSOnLineResource(gntwAccess.getGeonetworkInstance(true, GeonetworkLoginLevel.DEFAULT), gisUUID);
return MetadataConverter.getWMSOnLineResource(gntwAccess.getGeonetworkInstance(true, GeonetworkLoginLevel.SCOPE), gisUUID);
}catch (GeonetworkInstanceException e){
logger.error("An error occurred when instancing geonetowrk gis layer with UUID "+gisUUID, e);
throw new IllegalArgumentException("Sorry, An error occurred when instancing geonetwork with UUID: "+gisUUID);