diff --git a/geoportal-common/src/main/java/org/gcube/application/geoportal/common/rest/InterfaceConstants.java b/geoportal-common/src/main/java/org/gcube/application/geoportal/common/rest/InterfaceConstants.java index 0ffa144..111ec9a 100644 --- a/geoportal-common/src/main/java/org/gcube/application/geoportal/common/rest/InterfaceConstants.java +++ b/geoportal-common/src/main/java/org/gcube/application/geoportal/common/rest/InterfaceConstants.java @@ -40,11 +40,14 @@ public class InterfaceConstants { public static final String UCID ="usecase_id"; public static final String FORCE="force"; + + public static final String IGNORE_ERRORS="ignore_errors"; public static final String RELATIONSHIP_ID="relationship_id"; public static final String DEEP="deep"; public static final String TARGET_UCD="target_ucd"; public static final String TARGET_ID="target_id"; + public static final String PATH="path"; } diff --git a/geoportal-common/src/main/java/org/gcube/application/geoportal/common/rest/Projects.java b/geoportal-common/src/main/java/org/gcube/application/geoportal/common/rest/Projects.java index 892e968..76ccb03 100644 --- a/geoportal-common/src/main/java/org/gcube/application/geoportal/common/rest/Projects.java +++ b/geoportal-common/src/main/java/org/gcube/application/geoportal/common/rest/Projects.java @@ -25,6 +25,8 @@ public interface Projects

{ public P updateDocument(String id,Document updatedDocument) throws RemoteException; public void deleteById(String id) throws RemoteException; public void deleteById(String id,Boolean force) throws RemoteException; + + public P patchDocument(String id, String path, Document updatedDocument) throws RemoteException; @@ -55,4 +57,6 @@ public interface Projects

{ public Iterator getRelationshipChain(String id, String relationId, Boolean deep) throws RemoteException; public Iterator getRelationshipChain(String id, String relationId) throws RemoteException; + + } diff --git a/geoportal-common/src/main/java/org/gcube/application/geoportal/common/utils/tests/GCubeTest.java b/geoportal-common/src/main/java/org/gcube/application/geoportal/common/utils/tests/GCubeTest.java index e6b51bf..5851ced 100644 --- a/geoportal-common/src/main/java/org/gcube/application/geoportal/common/utils/tests/GCubeTest.java +++ b/geoportal-common/src/main/java/org/gcube/application/geoportal/common/utils/tests/GCubeTest.java @@ -13,10 +13,10 @@ public class GCubeTest { // InterfaceConstants.SERVICE_CLASS="Application"; // InterfaceConstants.SERVICE_NAME="GeoPortal"; - testContext = "/pred4s/preprod/preVRE"; - testContext = "/pred4s/preprod/preVRE_ext"; + //testContext = "/pred4s/preprod/preVRE"; + //testContext = "/pred4s/preprod/preVRE_ext"; // testContext = "/d4science.research-infrastructures.eu/D4OS/GNA"; - // testContext= "/gcube/devsec/devVRE"; + testContext= "/gcube/devsec/devVRE"; System.out.println("TEST CONTEXT = " + testContext); return testContext;