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:
parent
8b7429168c
commit
e6de5590a4
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue