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

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

Set LoginLevel to ADMIN

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

View File

@ -111,7 +111,7 @@ public class GeonetworkInstance {
try {
try {
logger.info("Authenticationg with login level: "+level);
logger.info("Authenticating 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.SCOPE), gisUUID);
return MetadataConverter.getWMSOnLineResource(gntwAccess.getGeonetworkInstance(true, GeonetworkLoginLevel.ADMIN), 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);