Added update resource method

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-api@134627 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-11-23 16:57:43 +00:00
parent 190e39f6f4
commit 44ec7f28bd
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,9 @@ public interface EntityManagement {
public String readResource(UUID uuid, String resourceType)
throws ResourceNotFoundException, ResourceRegistryException;
public String updateResource(String resourceType, String jsonRepresentation)
throws ResourceNotFoundException, ResourceRegistryException;
public boolean deleteResource(UUID uuid) throws ResourceNotFoundException,
ResourceRegistryException, ResourceRegistryException;
@ -66,6 +69,8 @@ public interface EntityManagement {
public boolean detachResource(UUID isRelatedToUUID)
throws ResourceRegistryException;
/* Context toggle methods */
public boolean addResourceToContext(UUID uuid)
throws ResourceNotFoundException, ContextNotFoundException,
ResourceRegistryException;