Changed API according to the new version of resource-registry-client
This commit is contained in:
parent
982cf32a7e
commit
cdaa596ee1
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue