added method to get vre group name from context

This commit is contained in:
lucio 2024-09-26 11:02:52 +02:00
parent 15940ad8ef
commit 2f32626292
2 changed files with 5 additions and 2 deletions

View File

@ -35,7 +35,7 @@
<dependency> <dependency>
<groupId>org.gcube.distribution</groupId> <groupId>org.gcube.distribution</groupId>
<artifactId>gcube-bom</artifactId> <artifactId>gcube-bom</artifactId>
<version>2.4.1</version> <version>2.4.1-SNAPSHOT</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>

View File

@ -15,5 +15,8 @@ public class Util {
else return new GenericItemContainer(itemClient, item); else return new GenericItemContainer(itemClient, item);
} }
public static String getVREGroupFromContext(String context) {
return context.replace("/", "-").substring(1);
}
} }