added method to get vre group name from context
This commit is contained in:
parent
15940ad8ef
commit
2f32626292
2
pom.xml
2
pom.xml
|
@ -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>
|
||||||
|
|
|
@ -14,6 +14,9 @@ public class Util {
|
||||||
return new FolderContainer(itemClient, (FolderItem)item);
|
return new FolderContainer(itemClient, (FolderItem)item);
|
||||||
else return new GenericItemContainer(itemClient, item);
|
else return new GenericItemContainer(itemClient, item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String getVREGroupFromContext(String context) {
|
||||||
|
return context.replace("/", "-").substring(1);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue