Added comment
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@129032 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f99f30528e
commit
b62f51dca5
|
@ -66,7 +66,7 @@ public class GeonetworkInstance {
|
|||
* @throws GeonetworkInstanceException the geonetwork instance exception
|
||||
*/
|
||||
public GeonetworkInstance(String scope, boolean authenticate, LoginLevel level) throws GeonetworkInstanceException {
|
||||
logger.trace("Instancing GeonetworkInstance with specific parameters");
|
||||
logger.debug("Instancing GeonetworkInstance with scope: "+scope + ", authenticate: "+authenticate +", login level: "+level);
|
||||
this.scope = scope;
|
||||
try {
|
||||
ScopeProvider.instance.set(scope);
|
||||
|
@ -90,6 +90,7 @@ public class GeonetworkInstance {
|
|||
* @throws Exception the exception
|
||||
*/
|
||||
private void createInstanceGeonetworkPublisher(boolean authenticate, LoginLevel level) throws Exception {
|
||||
logger.debug("creating new geonetworkPublisher..");
|
||||
this.geonetworkPublisher = GeoNetwork.get();
|
||||
if(authenticate && level!=null)
|
||||
authenticateOnGeoenetwork(level);
|
||||
|
@ -102,7 +103,6 @@ public class GeonetworkInstance {
|
|||
* @throws GeonetworkInstanceException the geonetwork instance exception
|
||||
*/
|
||||
private void authenticateOnGeoenetwork(LoginLevel level) throws GeonetworkInstanceException {
|
||||
|
||||
logger.trace("authenticating.. geonetworkPublisher is null? "+(this.geonetworkPublisher==null));
|
||||
if(geonetworkPublisher==null){
|
||||
logger.trace("skipping authentication.. please createInstace");
|
||||
|
|
Loading…
Reference in New Issue