Added addtoContext API in entity management

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-api@134080 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-11-11 09:30:36 +00:00
parent 7a6ae41cae
commit dd430509d8
2 changed files with 11 additions and 3 deletions

View File

@ -25,4 +25,5 @@ public interface ContextManagement {
public boolean delete(UUID context) throws ContextNotFoundException, ContextException;
}

View File

@ -6,6 +6,7 @@ package org.gcube.informationsystem.resourceregistry.api;
import java.util.UUID;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException;
@ -44,9 +45,8 @@ public interface EntityManagement {
public String readResource(UUID uuid, String resourceType)
throws ResourceNotFoundException, ResourceRegistryException;
public boolean deleteResource(UUID uuid)
throws ResourceNotFoundException, ResourceRegistryException,
ResourceRegistryException;
public boolean deleteResource(UUID uuid) throws ResourceNotFoundException,
ResourceRegistryException, ResourceRegistryException;
/* Relations Methods */
@ -66,4 +66,11 @@ public interface EntityManagement {
public boolean detachResource(UUID relatedToUUID)
throws ResourceRegistryException;
public boolean addResourceToContext(UUID uuid)
throws ResourceNotFoundException, ContextNotFoundException,
ResourceRegistryException;
public boolean addFacetToContext(UUID uuid) throws FacetNotFoundException,
ContextNotFoundException, ResourceRegistryException;
}