Integrated constants for PATCH method

This commit is contained in:
Francesco Mangiacrapa 2023-04-26 12:30:43 +02:00
parent 194b083f4e
commit e871d0135e
3 changed files with 10 additions and 3 deletions

View File

@ -41,10 +41,13 @@ public class InterfaceConstants {
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";
}

View File

@ -26,6 +26,8 @@ public interface Projects<P extends Project> {
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;
// CONFIG
@ -55,4 +57,6 @@ public interface Projects<P extends Project> {
public Iterator<RelationshipNavigationObject> getRelationshipChain(String id, String relationId, Boolean deep) throws RemoteException;
public Iterator<RelationshipNavigationObject> getRelationshipChain(String id, String relationId) throws RemoteException;
}

View File

@ -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;