2017-04-03 18:44:47 +02:00
|
|
|
package org.gcube.informationsystem.resourceregistry.publisher;
|
2016-09-14 18:08:46 +02:00
|
|
|
|
2020-11-03 16:32:41 +01:00
|
|
|
import java.util.List;
|
2020-11-11 14:18:43 +01:00
|
|
|
import java.util.Set;
|
2016-11-14 16:36:13 +01:00
|
|
|
import java.util.UUID;
|
|
|
|
|
2020-11-03 16:32:41 +01:00
|
|
|
import org.gcube.informationsystem.context.reference.entities.Context;
|
2021-07-05 17:31:42 +02:00
|
|
|
import org.gcube.informationsystem.model.reference.ERElement;
|
2019-02-06 10:01:35 +01:00
|
|
|
import org.gcube.informationsystem.model.reference.entities.Facet;
|
|
|
|
import org.gcube.informationsystem.model.reference.entities.Resource;
|
|
|
|
import org.gcube.informationsystem.model.reference.relations.ConsistsOf;
|
|
|
|
import org.gcube.informationsystem.model.reference.relations.IsRelatedTo;
|
2018-06-11 19:47:40 +02:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentException;
|
2020-10-29 16:54:32 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException;
|
2018-06-11 19:47:40 +02:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException;
|
2016-11-14 16:36:13 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException;
|
2017-02-24 12:46:18 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetAlreadyPresentException;
|
2016-11-29 08:27:30 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException;
|
2017-02-24 12:46:18 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentException;
|
2016-11-29 08:27:30 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException;
|
2021-02-16 17:00:46 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaViolationException;
|
2016-09-14 18:08:46 +02:00
|
|
|
|
2016-10-12 14:36:27 +02:00
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
*/
|
2016-09-14 18:08:46 +02:00
|
|
|
public interface ResourceRegistryPublisher {
|
2016-11-14 16:36:13 +01:00
|
|
|
|
2021-07-05 17:31:42 +02:00
|
|
|
public <ERElem extends ERElement, R extends Resource> List<R> list(Class<ERElem> clazz, Boolean polymorphic)
|
|
|
|
throws ResourceRegistryException;
|
|
|
|
|
|
|
|
public String list(String type, Boolean polymorphic) throws ResourceRegistryException;
|
|
|
|
|
|
|
|
public <ERElem extends ERElement> ERElem create(ERElem er)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, AlreadyPresentException, ResourceRegistryException;
|
|
|
|
|
|
|
|
public String create(String json)
|
|
|
|
throws SchemaViolationException, AlreadyPresentException, ResourceRegistryException;
|
|
|
|
|
2021-07-05 17:31:42 +02:00
|
|
|
public <ERElem extends ERElement> boolean exists(Class<ERElem> clazz, UUID uuid)
|
2020-10-29 16:54:32 +01:00
|
|
|
throws NotFoundException, AvailableInAnotherContextException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-07-05 17:31:42 +02:00
|
|
|
public <ERElem extends ERElement> boolean exists(ERElem er)
|
2020-10-29 16:54:32 +01:00
|
|
|
throws NotFoundException, AvailableInAnotherContextException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2020-11-11 14:18:43 +01:00
|
|
|
public boolean exists(String type, UUID uuid)
|
2020-10-29 16:54:32 +01:00
|
|
|
throws NotFoundException, AvailableInAnotherContextException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-07-05 17:31:42 +02:00
|
|
|
public <ERElem extends ERElement> ERElem read(ERElem er)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws NotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-07-05 17:31:42 +02:00
|
|
|
public <ERElem extends ERElement> ERElem read(Class<ERElem> clazz, UUID uuid)
|
|
|
|
throws NotFoundException, AvailableInAnotherContextException, ResourceRegistryException;
|
|
|
|
|
2020-11-11 14:18:43 +01:00
|
|
|
public String read(String type, UUID uuid) throws NotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-07-05 17:31:42 +02:00
|
|
|
public <ERElem extends ERElement> ERElem update(ERElem er)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
|
|
|
|
2021-07-05 17:31:42 +02:00
|
|
|
public String update(String json) throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public String update(String type, String json)
|
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
2021-07-05 17:31:42 +02:00
|
|
|
|
|
|
|
public String update(String type, String json, UUID uuid)
|
|
|
|
throws SchemaViolationException, AlreadyPresentException, ResourceRegistryException;
|
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-07-05 17:31:42 +02:00
|
|
|
public <ERElem extends ERElement> boolean delete(ERElem er)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
public boolean delete(String type, UUID uuid)
|
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2018-06-11 19:47:40 +02:00
|
|
|
/* ----- */
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2017-10-03 17:44:13 +02:00
|
|
|
public <F extends Facet> F createFacet(F facet)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, FacetAlreadyPresentException, ResourceRegistryException;
|
|
|
|
|
|
|
|
public String createFacet(String facet)
|
|
|
|
throws SchemaViolationException, FacetAlreadyPresentException, ResourceRegistryException;
|
|
|
|
|
2018-06-11 19:47:40 +02:00
|
|
|
public <F extends Facet> F readFacet(F facet) throws FacetNotFoundException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2020-11-11 14:18:43 +01:00
|
|
|
public String readFacet(String facetType, UUID uuid) throws FacetNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2017-10-03 17:44:13 +02:00
|
|
|
public <F extends Facet> F updateFacet(F facet)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, FacetNotFoundException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public String updateFacet(String facet)
|
|
|
|
throws SchemaViolationException, FacetNotFoundException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public <F extends Facet> boolean deleteFacet(F facet)
|
|
|
|
throws SchemaViolationException, FacetNotFoundException, ResourceRegistryException;
|
2016-11-14 16:36:13 +01:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public boolean deleteFacet(String facetType, UUID uuid)
|
|
|
|
throws SchemaViolationException, FacetNotFoundException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2018-06-11 19:47:40 +02:00
|
|
|
/* ----- */
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2017-10-03 17:44:13 +02:00
|
|
|
public <R extends Resource> R createResource(R resource)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, ResourceAlreadyPresentException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public String createResource(String resource)
|
|
|
|
throws SchemaViolationException, ResourceAlreadyPresentException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public <R extends Resource> R readResource(R resource) throws ResourceNotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public String readResource(String resourceType, UUID uuid)
|
2017-10-03 15:49:47 +02:00
|
|
|
throws ResourceNotFoundException, ResourceRegistryException;
|
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public <R extends Resource> R updateResource(R resource)
|
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ResourceRegistryException;
|
|
|
|
|
2017-10-03 15:49:47 +02:00
|
|
|
public String updateResource(String resource)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ResourceRegistryException;
|
|
|
|
|
2017-10-03 15:49:47 +02:00
|
|
|
public <R extends Resource> boolean deleteResource(R resource)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ResourceRegistryException;
|
2016-09-14 18:08:46 +02:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public boolean deleteResource(String resourceType, UUID uuid)
|
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ResourceRegistryException;
|
2016-11-14 16:36:13 +01:00
|
|
|
|
2018-06-11 19:47:40 +02:00
|
|
|
/* ----- */
|
2021-02-16 17:00:46 +01:00
|
|
|
|
|
|
|
public <C extends ConsistsOf<? extends Resource, ? extends Facet>> C createConsistsOf(C consistsOf)
|
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
|
|
|
public String createConsistsOf(String consistsOf)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
public <C extends ConsistsOf<? extends Resource, ? extends Facet>> C readConsistsOf(C consistsOf)
|
2018-06-11 19:47:40 +02:00
|
|
|
throws NotFoundException, ResourceRegistryException;
|
|
|
|
|
2020-11-11 14:18:43 +01:00
|
|
|
public String readConsistsOf(String consistsOfType, UUID uuid) throws NotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
|
|
|
public <C extends ConsistsOf<? extends Resource, ? extends Facet>> C updateConsistsOf(C consistsOf)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
|
|
|
public String updateConsistsOf(String consistsOf)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
|
|
|
|
2017-10-03 15:49:47 +02:00
|
|
|
public <C extends ConsistsOf<? extends Resource, ? extends Facet>> boolean deleteConsistsOf(C consistsOf)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public boolean deleteConsistsOf(String consistsOfType, UUID uuid)
|
|
|
|
throws SchemaViolationException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2018-06-11 19:47:40 +02:00
|
|
|
/* ----- */
|
2021-02-16 17:00:46 +01:00
|
|
|
|
|
|
|
public <I extends IsRelatedTo<? extends Resource, ? extends Resource>> I createIsRelatedTo(I isRelatedTo)
|
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
|
|
|
public String createIsRelatedTo(String isRelatedTo)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public <I extends IsRelatedTo<? extends Resource, ? extends Resource>> I readIsRelatedTo(I isRelatedTo)
|
|
|
|
throws NotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public String readIsRelatedTo(String isRelatedToType, UUID uuid)
|
2018-06-11 19:47:40 +02:00
|
|
|
throws NotFoundException, ResourceRegistryException;
|
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public <I extends IsRelatedTo<? extends Resource, ? extends Resource>> I updateIsRelatedTo(I isRelatedTo)
|
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
|
|
|
|
2018-06-11 19:47:40 +02:00
|
|
|
public String updateIsRelatedTo(String isRelatedTo)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
|
|
|
|
2017-10-03 15:49:47 +02:00
|
|
|
public <I extends IsRelatedTo<? extends Resource, ? extends Resource>> boolean deleteIsRelatedTo(I isRelatedTo)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, ResourceRegistryException;
|
2016-11-14 16:36:13 +01:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public boolean deleteIsRelatedTo(String isRelatedToType, UUID uuid)
|
|
|
|
throws SchemaViolationException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
|
|
|
/* ----- */
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> addToContext(String type, UUID instanceUUID, UUID contextUUID)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> addToContext(ERElement er, UUID contextUUID)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> addToCurrentContext(String type, UUID instanceUUID)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> addToCurrentContext(ERElement er)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> removeFromContext(String type, UUID instanceUUID, UUID contextUUID)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> removeFromContext(ERElement er, UUID contextUUID)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException,
|
|
|
|
ResourceRegistryException;
|
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> removeFromCurrentContext(String type, UUID instanceUUID) throws SchemaViolationException,
|
2021-02-16 17:00:46 +01:00
|
|
|
ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2016-11-14 16:36:13 +01:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> removeFromCurrentContext(ERElement er)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException,
|
|
|
|
ResourceRegistryException;
|
|
|
|
|
2020-11-11 14:18:43 +01:00
|
|
|
public Set<UUID> getElementContexts(String type, UUID instanceUUID)
|
|
|
|
throws ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
2021-07-05 17:31:42 +02:00
|
|
|
public <ERElem extends ERElement> Set<UUID> getElementContexts(ERElem er)
|
2020-11-11 14:18:43 +01:00
|
|
|
throws ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2018-06-11 19:47:40 +02:00
|
|
|
/* ----- */
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> addResourceToContext(String resourceType, UUID resourceUUID, UUID contextUUID)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException,
|
|
|
|
ResourceRegistryException;
|
2016-11-14 16:36:13 +01:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public <R extends Resource> List<ERElement> addResourceToContext(R resource, UUID contextUUID)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException,
|
|
|
|
ResourceRegistryException;
|
2016-11-14 16:36:13 +01:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> addResourceToCurrentContext(String resourceType, UUID resourceUUID) throws SchemaViolationException,
|
2021-02-16 17:00:46 +01:00
|
|
|
ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public <R extends Resource> List<ERElement> addResourceToCurrentContext(R resource) throws SchemaViolationException,
|
2021-02-16 17:00:46 +01:00
|
|
|
ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> removeResourceFromContext(String resourceType, UUID resourceUUID, UUID contextUUID)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException,
|
|
|
|
ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public <R extends Resource> List<ERElement> removeResourceFromContext(R resource, UUID contextUUID)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException,
|
|
|
|
ResourceRegistryException;
|
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> removeResourceFromCurrentContext(String resourceType, UUID resourceUUID)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException,
|
|
|
|
ResourceRegistryException;
|
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public <R extends Resource> List<ERElement> removeResourceFromCurrentContext(R resource) throws SchemaViolationException,
|
2021-02-16 17:00:46 +01:00
|
|
|
ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2016-12-21 16:29:37 +01:00
|
|
|
|
2020-11-11 14:18:43 +01:00
|
|
|
public Set<UUID> getResourceContexts(String resourceType, UUID resourceUUID)
|
|
|
|
throws ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
public <R extends Resource> Set<UUID> getResourceContexts(R resource)
|
|
|
|
throws ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2018-06-11 19:47:40 +02:00
|
|
|
/* ----- */
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> addFacetToContext(String facetType, UUID facetUUID, UUID contextUUID)
|
2018-06-11 19:47:40 +02:00
|
|
|
throws FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public <F extends Facet> List<ERElement> addFacetToContext(F facet, UUID contextUUID)
|
2018-06-11 19:47:40 +02:00
|
|
|
throws FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> addFacetToCurrentContext(String facetType, UUID facetUUID)
|
2018-06-11 19:47:40 +02:00
|
|
|
throws FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2016-12-21 16:29:37 +01:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public <F extends Facet> List<ERElement> addFacetToCurrentContext(F facet)
|
2018-06-11 19:47:40 +02:00
|
|
|
throws FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> removeFacetFromContext(String facetType, UUID facetUUID, UUID contextUUID)
|
2021-02-16 17:00:46 +01:00
|
|
|
throws SchemaViolationException, FacetNotFoundException, ContextNotFoundException,
|
|
|
|
ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public <F extends Facet> List<ERElement> removeFacetFromContext(F facet, UUID contextUUID) throws SchemaViolationException,
|
2021-02-16 17:00:46 +01:00
|
|
|
FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public List<ERElement> removeFacetFromCurrentContext(String facetType, UUID facetUUID) throws SchemaViolationException,
|
2021-02-16 17:00:46 +01:00
|
|
|
FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
2021-07-07 10:18:57 +02:00
|
|
|
public <F extends Facet> List<ERElement> removeFacetFromCurrentContext(F facet) throws SchemaViolationException,
|
2021-02-16 17:00:46 +01:00
|
|
|
FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2016-12-21 16:29:37 +01:00
|
|
|
|
2020-11-11 14:18:43 +01:00
|
|
|
public Set<UUID> getFacetContexts(String facetType, UUID facetUUID)
|
|
|
|
throws FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
public <F extends Facet> Set<UUID> getFacetContexts(F facet)
|
|
|
|
throws FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2020-11-11 14:18:43 +01:00
|
|
|
/* ----- */
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2020-11-03 16:32:41 +01:00
|
|
|
public Context getContext(UUID uuid) throws ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2020-11-03 16:32:41 +01:00
|
|
|
public Context getCurrentContext() throws ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2020-11-03 16:32:41 +01:00
|
|
|
public List<Context> getAllContext() throws ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2016-09-14 18:08:46 +02:00
|
|
|
}
|