Changed API according to the new version of resource-registry-client

This commit is contained in:
Luca Frosini 2022-02-09 13:22:08 +01:00
parent 982cf32a7e
commit cdaa596ee1
3 changed files with 3 additions and 3 deletions

View File

@ -154,7 +154,7 @@ public abstract class GCoreResourceMapper<GR extends org.gcube.common.resources.
boolean update = false;
try {
update = resourceRegistryClient.exists(rClass, uuid);
update = resourceRegistryClient.existInstance(rClass, uuid);
} catch (NotFoundException e) {
update = false;
} catch (AvailableInAnotherContextException e) {

View File

@ -47,7 +47,7 @@ public class GenericResourceExporter extends GCoreResourceMapper<GenericResource
SimpleFacet simpleFacet = null;
try {
readFromIS = resourceRegistryClient.exists(rClass, uuid);
readFromIS = resourceRegistryClient.existInstance(rClass, uuid);
} catch(NotFoundException e) {
readFromIS = false;
} catch(AvailableInAnotherContextException e) {

View File

@ -79,7 +79,7 @@ public class ServiceEndpointExporter extends GCoreResourceMapper<ServiceEndpoint
NetworkingFacet networkingFacet = null;
try {
readFromIS = resourceRegistryClient.exists(rClass, uuid);
readFromIS = resourceRegistryClient.existInstance(rClass, uuid);
} catch(NotFoundException e) {
readFromIS = false;
} catch(AvailableInAnotherContextException e) {