updated for changes on AuthorizationContext interface

This commit is contained in:
lucio 2024-03-22 16:40:51 +01:00
parent 502100d73e
commit 7b4858b3ea
3 changed files with 27 additions and 11 deletions

View File

@ -30,5 +30,11 @@
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
@ -7,16 +9,15 @@
<wb-module deploy-name="common-smartgears-app">
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
<wb-resource deploy-path="/" source-path="/src/main/java"/>
<wb-resource deploy-path="/" source-path="/src/test/resources"/>
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
@ -24,7 +25,9 @@
</wb-module>

View File

@ -1,6 +1,6 @@
package org.gcube.smartgears;
import jakarta.servlet.ServletContext;
import java.nio.file.Path;
import org.gcube.common.events.Hub;
import org.gcube.smartgears.configuration.application.ApplicationConfiguration;
@ -11,6 +11,8 @@ import org.gcube.smartgears.lifecycle.application.ApplicationLifecycle;
import org.gcube.smartgears.persistence.PersistenceWriter;
import org.gcube.smartgears.security.AuthorizationProvider;
import jakarta.servlet.ServletContext;
/**
* Embedded in an application, makes available its context as a gCube resource.
*
@ -97,6 +99,11 @@ public class ContextProvider {
public AuthorizationProvider authorizationProvider() {
return delegate.authorizationProvider();
}
@Override
public Path appSpecificConfigurationFolder() {
return delegate.appSpecificConfigurationFolder();
}
}
}