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;
|
2021-09-08 19:53:36 +02:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetAvailableInAnotherContextException;
|
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;
|
2021-09-08 19:53:36 +02:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAvailableInAnotherContextException;
|
2016-11-29 08:27:30 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException;
|
2021-09-08 19:53:36 +02:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.consistsOf.ConsistsOfAlreadyPresentException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.consistsOf.ConsistsOfAvailableInAnotherContextException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.consistsOf.ConsistsOfNotFoundException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.isrelatedto.IsRelatedToAlreadyPresentException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.isrelatedto.IsRelatedToAvailableInAnotherContextException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.isrelatedto.IsRelatedToNotFoundException;
|
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 {
|
2021-09-09 10:19:00 +02:00
|
|
|
|
|
|
|
public List<Context> getAllContext() throws ResourceRegistryException;
|
|
|
|
|
|
|
|
public Context getContext(UUID uuid) throws ContextNotFoundException, ResourceRegistryException;
|
2016-11-14 16:36:13 +01:00
|
|
|
|
2021-09-09 10:19:00 +02:00
|
|
|
public Context getCurrentContext() throws ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
/* ----- */
|
|
|
|
|
2021-09-08 19:53:36 +02:00
|
|
|
public <ERElem extends ERElement> List<ERElem> list(Class<ERElem> clazz, Boolean polymorphic)
|
|
|
|
throws ResourceRegistryException;
|
|
|
|
|
|
|
|
public String list(String type, Boolean polymorphic)
|
2021-07-05 17:31:42 +02:00
|
|
|
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-09-08 19:53:36 +02: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
|
|
|
|
2021-09-08 19:53:36 +02:00
|
|
|
public <ERElem extends ERElement> boolean exists(Class<ERElem> clazz, UUID uuid)
|
|
|
|
throws NotFoundException, AvailableInAnotherContextException, ResourceRegistryException;
|
|
|
|
|
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-09-09 10:19:00 +02:00
|
|
|
|
|
|
|
|
2021-07-05 17:31:42 +02:00
|
|
|
public <ERElem extends ERElement> ERElem read(ERElem er)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws NotFoundException, AvailableInAnotherContextException, 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;
|
|
|
|
|
2021-09-08 19:53:36 +02:00
|
|
|
public String read(String type, UUID uuid)
|
|
|
|
throws NotFoundException, AvailableInAnotherContextException, ResourceRegistryException;
|
|
|
|
|
|
|
|
|
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-09-08 19:53:36 +02:00
|
|
|
public String update(String json)
|
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
2021-07-05 17:31:42 +02:00
|
|
|
|
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)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, NotFoundException, ResourceRegistryException;
|
2021-07-05 17:31:42 +02:00
|
|
|
|
2021-09-08 19:53:36 +02: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
|
|
|
|
2021-09-08 19:53:36 +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;
|
|
|
|
|
2021-09-08 19:53:36 +02:00
|
|
|
public <F extends Facet> F readFacet(F facet)
|
|
|
|
throws FacetNotFoundException, FacetAvailableInAnotherContextException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2021-09-08 19:53:36 +02:00
|
|
|
public String readFacet(String facetType, UUID uuid)
|
|
|
|
throws FacetNotFoundException, FacetAvailableInAnotherContextException, 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-09-08 19:53:36 +02:00
|
|
|
public <R extends Resource> R readResource(R resource)
|
|
|
|
throws ResourceNotFoundException, ResourceAvailableInAnotherContextException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public String readResource(String resourceType, UUID uuid)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws ResourceNotFoundException, ResourceAvailableInAnotherContextException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
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-09-09 10:19:00 +02:00
|
|
|
throws 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)
|
2021-09-09 10:19:00 +02:00
|
|
|
throws 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)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, ConsistsOfAlreadyPresentException, ResourceNotFoundException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
|
|
|
public String createConsistsOf(String consistsOf)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, ConsistsOfAlreadyPresentException, ResourceNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
|
|
|
public <C extends ConsistsOf<? extends Resource, ? extends Facet>> C readConsistsOf(C consistsOf)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws ConsistsOfNotFoundException, ConsistsOfAvailableInAnotherContextException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-09-08 19:53:36 +02:00
|
|
|
public String readConsistsOf(String consistsOfType, UUID uuid)
|
|
|
|
throws ConsistsOfNotFoundException, ConsistsOfAvailableInAnotherContextException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
|
|
|
public <C extends ConsistsOf<? extends Resource, ? extends Facet>> C updateConsistsOf(C consistsOf)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, ConsistsOfNotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
|
|
|
public String updateConsistsOf(String consistsOf)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, ConsistsOfNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2017-10-03 15:49:47 +02:00
|
|
|
public <C extends ConsistsOf<? extends Resource, ? extends Facet>> boolean deleteConsistsOf(C consistsOf)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, ConsistsOfNotFoundException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public boolean deleteConsistsOf(String consistsOfType, UUID uuid)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, ConsistsOfNotFoundException, 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)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, IsRelatedToAlreadyPresentException, ResourceNotFoundException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
|
|
|
public String createIsRelatedTo(String isRelatedTo)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, IsRelatedToAlreadyPresentException, 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)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws IsRelatedToNotFoundException, IsRelatedToAvailableInAnotherContextException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public String readIsRelatedTo(String isRelatedToType, UUID uuid)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws IsRelatedToNotFoundException, IsRelatedToAvailableInAnotherContextException, 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 updateIsRelatedTo(I isRelatedTo)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, IsRelatedToNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2018-06-11 19:47:40 +02:00
|
|
|
public String updateIsRelatedTo(String isRelatedTo)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, IsRelatedToNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2017-10-03 15:49:47 +02:00
|
|
|
public <I extends IsRelatedTo<? extends Resource, ? extends Resource>> boolean deleteIsRelatedTo(I isRelatedTo)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws IsRelatedToNotFoundException, ResourceRegistryException;
|
2016-11-14 16:36:13 +01:00
|
|
|
|
2021-02-16 17:00:46 +01:00
|
|
|
public boolean deleteIsRelatedTo(String isRelatedToType, UUID uuid)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws IsRelatedToNotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
|
|
|
/* ----- */
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public List<ERElement> addToContext(String type, UUID instanceUUID, UUID contextUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, NotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public List<ERElement> addToContext(ERElement er, UUID contextUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, NotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public List<ERElement> addToCurrentContext(String type, UUID instanceUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, NotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public List<ERElement> addToCurrentContext(ERElement er, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, NotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public List<ERElement> removeFromContext(String type, UUID instanceUUID, UUID contextUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, NotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public List<ERElement> removeFromContext(ERElement er, UUID contextUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, NotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-09-08 19:53:36 +02:00
|
|
|
public List<ERElement> removeFromCurrentContext(String type, UUID instanceUUID, Boolean dryRun)
|
|
|
|
throws SchemaViolationException, NotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2016-11-14 16:36:13 +01:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public List<ERElement> removeFromCurrentContext(ERElement er, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, NotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-09-09 10:19:00 +02:00
|
|
|
|
2020-11-11 14:18:43 +01:00
|
|
|
public Set<UUID> getElementContexts(String type, UUID instanceUUID)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws NotFoundException, ResourceRegistryException;
|
2020-11-11 14:18:43 +01:00
|
|
|
|
2021-07-05 17:31:42 +02:00
|
|
|
public <ERElem extends ERElement> Set<UUID> getElementContexts(ERElem er)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws NotFoundException, 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-08-25 09:28:03 +02:00
|
|
|
public List<ERElement> addResourceToContext(String resourceType, UUID resourceUUID, UUID contextUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2016-11-14 16:36:13 +01:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public <R extends Resource> List<ERElement> addResourceToContext(R resource, UUID contextUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2016-11-14 16:36:13 +01:00
|
|
|
|
2021-09-08 19:53:36 +02:00
|
|
|
public List<ERElement> addResourceToCurrentContext(String resourceType, UUID resourceUUID, Boolean dryRun)
|
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-09-08 19:53:36 +02:00
|
|
|
public <R extends Resource> List<ERElement> addResourceToCurrentContext(R resource, Boolean dryRun)
|
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public List<ERElement> removeResourceFromContext(String resourceType, UUID resourceUUID, UUID contextUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2017-10-03 15:49:47 +02:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public <R extends Resource> List<ERElement> removeResourceFromContext(R resource, UUID contextUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public List<ERElement> removeResourceFromCurrentContext(String resourceType, UUID resourceUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-09-08 19:53:36 +02:00
|
|
|
public <R extends Resource> List<ERElement> removeResourceFromCurrentContext(R resource, Boolean dryRun)
|
|
|
|
throws SchemaViolationException, 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)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws ResourceNotFoundException, ResourceRegistryException;
|
2020-11-11 14:18:43 +01:00
|
|
|
|
|
|
|
public <R extends Resource> Set<UUID> getResourceContexts(R resource)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws ResourceNotFoundException, 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-08-25 09:28:03 +02:00
|
|
|
public List<ERElement> addFacetToContext(String facetType, UUID facetUUID, UUID contextUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public <F extends Facet> List<ERElement> addFacetToContext(F facet, UUID contextUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public List<ERElement> addFacetToCurrentContext(String facetType, UUID facetUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2016-12-21 16:29:37 +01:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public <F extends Facet> List<ERElement> addFacetToCurrentContext(F facet, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-08-25 09:28:03 +02:00
|
|
|
public List<ERElement> removeFacetFromContext(String facetType, UUID facetUUID, UUID contextUUID, Boolean dryRun)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws SchemaViolationException, FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2018-06-11 19:47:40 +02:00
|
|
|
|
2021-09-08 19:53:36 +02:00
|
|
|
public <F extends Facet> List<ERElement> removeFacetFromContext(F facet, UUID contextUUID, Boolean dryRun)
|
|
|
|
throws SchemaViolationException, FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-09-08 19:53:36 +02:00
|
|
|
public List<ERElement> removeFacetFromCurrentContext(String facetType, UUID facetUUID, Boolean dryRun)
|
|
|
|
throws SchemaViolationException, FacetNotFoundException, ContextNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2021-09-08 19:53:36 +02:00
|
|
|
public <F extends Facet> List<ERElement> removeFacetFromCurrentContext(F facet, Boolean dryRun)
|
|
|
|
throws SchemaViolationException, 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)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws FacetNotFoundException, ResourceRegistryException;
|
2020-11-11 14:18:43 +01:00
|
|
|
|
|
|
|
public <F extends Facet> Set<UUID> getFacetContexts(F facet)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws FacetNotFoundException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2016-09-14 18:08:46 +02:00
|
|
|
}
|