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;
|
2021-10-28 13:26:14 +02:00
|
|
|
import java.util.Map;
|
2016-11-14 16:36:13 +01:00
|
|
|
import java.util.UUID;
|
|
|
|
|
2021-10-25 11:40:21 +02:00
|
|
|
import org.gcube.informationsystem.contexts.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;
|
2023-11-09 18:29:16 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache;
|
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;
|
2022-02-01 16:47:27 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException;
|
2021-10-25 10:59:52 +02:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetAlreadyPresentException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetAvailableInAnotherContextException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetNotFoundException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceAlreadyPresentException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceAvailableInAnotherContextException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.relations.consistsof.ConsistsOfAlreadyPresentException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.relations.consistsof.ConsistsOfAvailableInAnotherContextException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.relations.consistsof.ConsistsOfNotFoundException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.relations.isrelatedto.IsRelatedToAlreadyPresentException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.relations.isrelatedto.IsRelatedToAvailableInAnotherContextException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.relations.isrelatedto.IsRelatedToNotFoundException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationException;
|
2023-05-02 17:24:11 +02:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.request.RequestInfo;
|
2016-09-14 18:08:46 +02:00
|
|
|
|
2016-10-12 14:36:27 +02:00
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
*/
|
2023-05-02 17:24:11 +02:00
|
|
|
public interface ResourceRegistryPublisher extends RequestInfo {
|
2021-09-09 10:19:00 +02:00
|
|
|
|
2023-04-26 10:46:08 +02:00
|
|
|
/**
|
|
|
|
* Use {@link #includeContexts()} instead
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@Deprecated
|
|
|
|
public boolean isIncludeContextsInHeader();
|
2022-07-21 17:08:24 +02:00
|
|
|
|
2023-04-26 10:46:08 +02:00
|
|
|
/**
|
|
|
|
* Use {@link #includeContexts(boolean)} instead
|
|
|
|
* @param includeContextsInHeader
|
|
|
|
*/
|
|
|
|
@Deprecated
|
|
|
|
public void setIncludeContextsInHeader(boolean includeContexts);
|
|
|
|
|
2023-03-01 14:24:47 +01:00
|
|
|
public void addHeader(String name, String value);
|
2022-07-21 17:08:24 +02:00
|
|
|
|
2023-11-09 18:29:16 +01:00
|
|
|
public ContextCache getContextCache();
|
|
|
|
|
2023-09-13 18:43:48 +02:00
|
|
|
/**
|
|
|
|
* Use {@link #getContexts()} instead
|
|
|
|
* @return an array containing all contexts definition
|
|
|
|
* @throws ResourceRegistryException if fails
|
|
|
|
*/
|
|
|
|
@Deprecated
|
2021-09-09 10:19:00 +02:00
|
|
|
public List<Context> getAllContext() throws ResourceRegistryException;
|
|
|
|
|
2023-09-13 18:43:48 +02:00
|
|
|
/**
|
|
|
|
* @return an array containing all contexts definition
|
|
|
|
* @throws ResourceRegistryException if fails
|
|
|
|
*/
|
|
|
|
public List<Context> getContexts() throws ResourceRegistryException;
|
|
|
|
|
2021-09-09 10:19:00 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
2022-02-09 12:16:01 +01:00
|
|
|
public <ERElem extends ERElement> boolean exist(ERElem er)
|
2022-02-09 12:10:08 +01:00
|
|
|
throws AvailableInAnotherContextException, ResourceRegistryException;
|
2021-02-16 17:00:46 +01:00
|
|
|
|
2022-02-09 12:16:01 +01:00
|
|
|
public <ERElem extends ERElement> boolean exist(Class<ERElem> clazz, UUID uuid)
|
2022-02-09 12:10:08 +01:00
|
|
|
throws AvailableInAnotherContextException, ResourceRegistryException;
|
2021-09-08 19:53:36 +02:00
|
|
|
|
2022-02-09 12:16:01 +01:00
|
|
|
public boolean exist(String type, UUID uuid)
|
2022-02-09 12:10:08 +01:00
|
|
|
throws 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
|
|
|
|
2021-10-28 13:26:14 +02:00
|
|
|
public Map<UUID, String> 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-10-28 13:26:14 +02:00
|
|
|
public <ERElem extends ERElement> Map<UUID, String> 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
|
|
|
|
2021-10-28 13:26:14 +02:00
|
|
|
public Map<UUID, String> getResourceContexts(String resourceType, UUID resourceUUID)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws ResourceNotFoundException, ResourceRegistryException;
|
2020-11-11 14:18:43 +01:00
|
|
|
|
2021-10-28 13:26:14 +02:00
|
|
|
public <R extends Resource> Map<UUID, String> 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
|
|
|
|
2021-10-28 13:26:14 +02:00
|
|
|
public Map<UUID, String> getFacetContexts(String facetType, UUID facetUUID)
|
2021-09-08 19:53:36 +02:00
|
|
|
throws FacetNotFoundException, ResourceRegistryException;
|
2020-11-11 14:18:43 +01:00
|
|
|
|
2021-10-28 13:26:14 +02:00
|
|
|
public <F extends Facet> Map<UUID, String> 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
|
|
|
}
|