From 2f3262629271d0164f489d1f16e7e7593c311262 Mon Sep 17 00:00:00 2001 From: lucio Date: Thu, 26 Sep 2024 11:02:52 +0200 Subject: [PATCH] added method to get vre group name from context --- pom.xml | 2 +- .../java/org/gcube/common/storagehub/client/dsl/Util.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 9ba3b14..451404f 100644 --- a/pom.xml +++ b/pom.xml @@ -35,7 +35,7 @@ org.gcube.distribution gcube-bom - 2.4.1 + 2.4.1-SNAPSHOT pom import diff --git a/src/main/java/org/gcube/common/storagehub/client/dsl/Util.java b/src/main/java/org/gcube/common/storagehub/client/dsl/Util.java index 23b5a17..3047c71 100644 --- a/src/main/java/org/gcube/common/storagehub/client/dsl/Util.java +++ b/src/main/java/org/gcube/common/storagehub/client/dsl/Util.java @@ -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); + } }