From e6de5590a4efb678c3930db8145253679a6c0859 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Mon, 4 Jun 2018 13:42:59 +0000 Subject: [PATCH] Refs #11288: Made resource-registry more RESTful Task-Url: https://support.d4science.org/issues/11288 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-context-client@167869 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../context/ResourceRegistryContextClient.java | 4 ++-- .../context/ResourceRegistryContextClientImpl.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClient.java b/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClient.java index 9d38861..09dbc63 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClient.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClient.java @@ -31,10 +31,10 @@ public interface ResourceRegistryContextClient { public Context update(Context context) - throws ContextAlreadyPresentException, ResourceRegistryException; + throws ResourceRegistryException; public String update(String context) - throws ContextAlreadyPresentException, ResourceRegistryException; + throws ResourceRegistryException; public boolean delete(Context context) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java index 298b055..79d6288 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java @@ -142,7 +142,7 @@ public class ResourceRegistryContextClientImpl implements ResourceRegistryContex } @Override - public Context update(Context context) throws ContextAlreadyPresentException, ResourceRegistryException { + public Context update(Context context) throws ResourceRegistryException { try { String contextString = ISMapper.marshal(context); String res = update(contextString); @@ -157,7 +157,7 @@ public class ResourceRegistryContextClientImpl implements ResourceRegistryContex } @Override - public String update(String context) throws ContextAlreadyPresentException, ResourceRegistryException { + public String update(String context) throws ResourceRegistryException { try { logger.trace("Going to update: {}", context);