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;
|
boolean update = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
update = resourceRegistryClient.exists(rClass, uuid);
|
update = resourceRegistryClient.existInstance(rClass, uuid);
|
||||||
} catch (NotFoundException e) {
|
} catch (NotFoundException e) {
|
||||||
update = false;
|
update = false;
|
||||||
} catch (AvailableInAnotherContextException e) {
|
} catch (AvailableInAnotherContextException e) {
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class GenericResourceExporter extends GCoreResourceMapper<GenericResource
|
||||||
SimpleFacet simpleFacet = null;
|
SimpleFacet simpleFacet = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
readFromIS = resourceRegistryClient.exists(rClass, uuid);
|
readFromIS = resourceRegistryClient.existInstance(rClass, uuid);
|
||||||
} catch(NotFoundException e) {
|
} catch(NotFoundException e) {
|
||||||
readFromIS = false;
|
readFromIS = false;
|
||||||
} catch(AvailableInAnotherContextException e) {
|
} catch(AvailableInAnotherContextException e) {
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class ServiceEndpointExporter extends GCoreResourceMapper<ServiceEndpoint
|
||||||
NetworkingFacet networkingFacet = null;
|
NetworkingFacet networkingFacet = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
readFromIS = resourceRegistryClient.exists(rClass, uuid);
|
readFromIS = resourceRegistryClient.existInstance(rClass, uuid);
|
||||||
} catch(NotFoundException e) {
|
} catch(NotFoundException e) {
|
||||||
readFromIS = false;
|
readFromIS = false;
|
||||||
} catch(AvailableInAnotherContextException e) {
|
} catch(AvailableInAnotherContextException e) {
|
||||||
|
|
Loading…
Reference in New Issue