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>
<groupId>org.gcube.distribution</groupId>
<artifactId>gcube-bom</artifactId>
<version>2.4.1</version>
<version>2.4.1-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>

View File

@ -14,6 +14,9 @@ public class Util {
return new FolderContainer(itemClient, (FolderItem)item);
else return new GenericItemContainer(itemClient, item);
}
public static String getVREGroupFromContext(String context) {
return context.replace("/", "-").substring(1);
}
}