Added usage of common-utility
This commit is contained in:
parent
bb14a1d871
commit
d3667cd4d3
|
@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||
## [v4.3.0-SNAPSHOT]
|
||||
|
||||
- Enhanced gcube-bom version
|
||||
- Added usage of common-utility to overcome issues with different Smartgears version (i.e. 3 and 4)
|
||||
|
||||
|
||||
## [v4.2.0]
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -42,6 +42,10 @@
|
|||
<groupId>org.gcube.information-system</groupId>
|
||||
<artifactId>information-system-model</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>common-utility</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package org.gcube.informationsystem.resourceregistry.api.rest;
|
||||
|
||||
import org.gcube.common.scope.api.ScopeProvider;
|
||||
import org.gcube.common.context.ContextUtility;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
|
@ -11,13 +11,8 @@ public abstract class ServiceInstance {
|
|||
|
||||
public static final String BASE_URL = "https://url.d4science.org";
|
||||
|
||||
public static String getCurrentContextFullName() {
|
||||
String context = ScopeProvider.instance.get();
|
||||
return context;
|
||||
}
|
||||
|
||||
public static String getServiceURL() {
|
||||
String context = getCurrentContextFullName();
|
||||
String context = ContextUtility.getCurrentContextFullName();
|
||||
return getServiceURL(context);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue