diff --git a/.classpath b/.classpath
index 7a5d917..7e690ab 100644
--- a/.classpath
+++ b/.classpath
@@ -13,18 +13,14 @@
-
-
-
-
-
-
-
+
+
+
@@ -35,15 +31,19 @@
-
+
-
+
-
-
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
index 7ab2487..26aef1a 100644
--- a/.settings/org.eclipse.jdt.core.prefs
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -1,7 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
-org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
@@ -9,4 +9,4 @@ org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.processAnnotations=enabled
org.eclipse.jdt.core.compiler.release=disabled
-org.eclipse.jdt.core.compiler.source=1.7
+org.eclipse.jdt.core.compiler.source=1.8
diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
index c547775..4782285 100644
--- a/.settings/org.eclipse.wst.common.component
+++ b/.settings/org.eclipse.wst.common.component
@@ -1,5 +1,6 @@
-
+
+
@@ -12,7 +13,8 @@
-
+
+
@@ -25,7 +27,8 @@
-
+
+
@@ -38,19 +41,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -63,7 +56,8 @@
-
+
+
diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml
index 4f92af5..f4bf050 100644
--- a/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ b/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -1,5 +1,5 @@
-
+
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 15b9977..f18ac5a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,14 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [v6.35.3-SNAPSHOT] - 2024-02-20
+
+- Moved to maven parent 1.2.0
+- Added lombok 1.18.4 (provided) to avoid `java.lang.ClassNotFoundException: com.sun.tools.javac.code.TypeTags`
+- Equipped with the new Catalogue Publishing Widget [#26825]
+- Moved to GWT 2.8.2
+- image-previewer-widget range at [1.0.0, 1.3.0-SNAPSHOT)
+
## [v6.35.2] - 2022-09-14
#### Bug fixed
diff --git a/pom.xml b/pom.xml
index 4ddaf6a..bf6b076 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,13 +5,13 @@
maven-parent
org.gcube.tools
- 1.1.0
+ 1.2.0
org.gcube.portlets.user
workspace-tree-widget
- 6.35.2
+ 6.35.3-SNAPSHOT
gCube Workspace Tree Widget
gCube Workspace Tree Widget is a widget to navigate and interact with gCube Workspace
@@ -33,12 +33,14 @@
- 2.7.0
+ 2.8.2
- 1.7
+ 1.8
1.8
UTF-8
UTF-8
+ 3.8.0-SNAPSHOT
+ 2.7.0
@@ -46,7 +48,7 @@
org.gcube.distribution
maven-portal-bom
- 3.6.4
+ ${gcube-portal-bom-version}
pom
import
@@ -70,7 +72,7 @@
com.sencha.gxt
gxt2.2.5-gwt2.X
- ${gwtVersion}
+ ${gxt2.2.5-gwt2.X-version}
compile
@@ -138,7 +140,7 @@
org.gcube.portlets.widgets
image-previewer-widget
- [1.0.0,)
+ [1.0.0, 1.3.0-SNAPSHOT)
com.google.gwt
@@ -160,6 +162,26 @@
compile
+
+ javax.activation
+ activation
+ 1.1.1
+
+
+
+ org.projectlombok
+ lombok
+ 1.18.4
+ provided
+
+
+
+
+ org.gcube.data.analysis
+ data-miner-manager-cl
+ [1.0.0, 1.11.0-SNAPSHOT)
+
+
org.gcube.portlets.widgets
ws-task-executor-widget
@@ -249,6 +271,12 @@
ckan-metadata-publisher-widget
[2.0.0-SNAPSHOT, 3.0.0)
compile
+
+
+ com.allen-sauer.gwt.log
+ gwt-log
+
+
diff --git a/src/test/java/org/gcube/portlets/user/workspace/HttpCallerUtil.java b/src/test/java/org/gcube/portlets/user/workspace/HttpCallerUtil.java
index ab67d52..3382819 100644
--- a/src/test/java/org/gcube/portlets/user/workspace/HttpCallerUtil.java
+++ b/src/test/java/org/gcube/portlets/user/workspace/HttpCallerUtil.java
@@ -175,5 +175,5 @@ public class HttpCallerUtil {
public void setPassword(String password) {
this.password = password;
}
-
+
}
diff --git a/src/test/java/org/gcube/portlets/user/workspace/MappingGroupNameToScopeName.java b/src/test/java/org/gcube/portlets/user/workspace/MappingGroupNameToScopeName.java
new file mode 100644
index 0000000..51cf7f7
--- /dev/null
+++ b/src/test/java/org/gcube/portlets/user/workspace/MappingGroupNameToScopeName.java
@@ -0,0 +1,71 @@
+package org.gcube.portlets.user.workspace;
+
+import org.gcube.common.storagehubwrapper.server.StorageHubClientService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class MappingGroupNameToScopeName {
+
+ private static Logger logger = LoggerFactory.getLogger(MappingGroupNameToScopeName.class);
+
+ public static void main(String[] args) {
+
+ // VRE
+ String context = "d4science.research-infrastructures.eu-D4OS-FAO-Tuna_Atlas";
+ String rootName = "/d4science.research-infrastructures.eu";
+ String vreName = "FAO-Tuna_Atlas";
+//
+// //VO
+// String context = "d4science.research-infrastructures.eu-D4OS";
+// String rootName = "/d4science.research-infrastructures.eu";
+// String vreName = null;
+
+ // ROOT
+// String context = "d4science.research-infrastructures.eu";
+// String rootName = "/d4science.research-infrastructures.eu";
+// String vreName = null;
+
+ System.out.println(getScopeFromVREGroupName(context, rootName, vreName));
+ }
+
+ /**
+ * Gets the scope from VRE group name.
+ *
+ * @param context the context
+ * @return the scope from VRE group name. Eg. with the input
+ * 'gcube-devNext-NextNext' returns '/gcube/devNext/NextNext'
+ */
+ public static String getScopeFromVREGroupName(String context, String infrastructurName, String vreName) {
+// String entireScopeName = context.replaceAll("^/(.*)/?$", "$1").replaceAll("-", "/");
+// return entireScopeName;
+
+ if (vreName == null)
+ vreName = "";
+
+ logger.debug("vreName: " + vreName);
+
+ if (infrastructurName.startsWith("/"))
+ infrastructurName = infrastructurName.substring(1, infrastructurName.length());
+
+ logger.debug("infrastructurName: " + infrastructurName);
+
+ String voGroup = context.replaceAll(infrastructurName, "");
+ if (vreName != null) {
+ voGroup = voGroup.replaceAll(vreName, "").replaceAll("-", "");
+ }
+ String voName = voGroup.replaceAll("-", "");
+ logger.debug("voName: " + voName);
+
+ StringBuilder theScopeBuilder = new StringBuilder();
+ theScopeBuilder.append("/" + infrastructurName);
+ if (voName != null && !voName.isEmpty()) {
+ theScopeBuilder.append("/" + voName);
+ }
+ if (vreName != null && !vreName.isEmpty()) {
+ theScopeBuilder.append("/" + vreName);
+ }
+ String theScope = theScopeBuilder.toString();
+ logger.info("Built scope: " + theScope);
+ return theScope;
+ }
+}