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
This commit is contained in:
Luca Frosini 2018-06-04 13:42:59 +00:00
parent 8b7429168c
commit e6de5590a4
2 changed files with 4 additions and 4 deletions

View File

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

View File

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