diff --git a/pom.xml b/pom.xml index 6ceef1f..cc13717 100644 --- a/pom.xml +++ b/pom.xml @@ -14,6 +14,8 @@ ${project.basedir}/src/main/webapp/WEB-INF ${project.basedir}/distro + 1.8 + 1.8 diff --git a/src/main/java/org/gcube/vremanagement/whnmanager/jaxws/ws/WhnManagerImpl.java b/src/main/java/org/gcube/vremanagement/whnmanager/jaxws/ws/WhnManagerImpl.java index 14fe0e9..f3cad93 100644 --- a/src/main/java/org/gcube/vremanagement/whnmanager/jaxws/ws/WhnManagerImpl.java +++ b/src/main/java/org/gcube/vremanagement/whnmanager/jaxws/ws/WhnManagerImpl.java @@ -51,7 +51,7 @@ public class WhnManagerImpl implements WhnManager{ request = request.header(entry.getKey(), entry.getValue()); - SimpleCredentials credentials = ((DefaultAuthorizationProvider) appContext.container().configuration().authorizationProvider()).getCredentials(); + SimpleCredentials credentials = ((DefaultAuthorizationProvider) appContext.container().authorizationProvider()).getCredentials(); HttpURLConnection response = request.post(String.format(" \"name\": \"ghn_client_add_to_contexts\",\n" + " \"input\" : {\n" + @@ -86,7 +86,7 @@ public class WhnManagerImpl implements WhnManager{ ValidationUtils.valid("context", context); ApplicationContext appContext = ContextProvider.get(); if(context!=null){ - logger.trace("allowed container in context are {} ",appContext.container().configuration().authorizationProvider().getContexts()); + logger.trace("allowed container in context are {} ",appContext.container().authorizationProvider().getContexts()); GXHTTPStringRequest request = GXHTTPStringRequest.newRequest("https://conductor.dev.d4science.org/api"); try { @@ -96,7 +96,7 @@ public class WhnManagerImpl implements WhnManager{ request = request.header(entry.getKey(), entry.getValue()); - SimpleCredentials credentials = ((DefaultAuthorizationProvider) appContext.container().configuration().authorizationProvider()).getCredentials(); + SimpleCredentials credentials = ((DefaultAuthorizationProvider) appContext.container().authorizationProvider()).getCredentials(); HttpURLConnection response = request.post(String.format(" \"name\": \"ghn_client_remove_from_contexts\",\n" + " \"input\" : {\n" +