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:
parent
7a6ae41cae
commit
dd430509d8
|
@ -25,4 +25,5 @@ public interface ContextManagement {
|
||||||
|
|
||||||
public boolean delete(UUID context) throws ContextNotFoundException, ContextException;
|
public boolean delete(UUID context) throws ContextNotFoundException, ContextException;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -6,6 +6,7 @@ package org.gcube.informationsystem.resourceregistry.api;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
|
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.EntityException;
|
||||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException;
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException;
|
||||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException;
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException;
|
||||||
|
@ -44,9 +45,8 @@ public interface EntityManagement {
|
||||||
public String readResource(UUID uuid, String resourceType)
|
public String readResource(UUID uuid, String resourceType)
|
||||||
throws ResourceNotFoundException, ResourceRegistryException;
|
throws ResourceNotFoundException, ResourceRegistryException;
|
||||||
|
|
||||||
public boolean deleteResource(UUID uuid)
|
public boolean deleteResource(UUID uuid) throws ResourceNotFoundException,
|
||||||
throws ResourceNotFoundException, ResourceRegistryException,
|
ResourceRegistryException, ResourceRegistryException;
|
||||||
ResourceRegistryException;
|
|
||||||
|
|
||||||
/* Relations Methods */
|
/* Relations Methods */
|
||||||
|
|
||||||
|
@ -66,4 +66,11 @@ public interface EntityManagement {
|
||||||
public boolean detachResource(UUID relatedToUUID)
|
public boolean detachResource(UUID relatedToUUID)
|
||||||
throws ResourceRegistryException;
|
throws ResourceRegistryException;
|
||||||
|
|
||||||
|
public boolean addResourceToContext(UUID uuid)
|
||||||
|
throws ResourceNotFoundException, ContextNotFoundException,
|
||||||
|
ResourceRegistryException;
|
||||||
|
|
||||||
|
public boolean addFacetToContext(UUID uuid) throws FacetNotFoundException,
|
||||||
|
ContextNotFoundException, ResourceRegistryException;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue