|
|
|
@ -5,7 +5,6 @@ import java.util.Map;
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
|
|
import org.gcube.informationsystem.base.reference.Element;
|
|
|
|
|
import org.gcube.informationsystem.context.reference.entities.Context;
|
|
|
|
|
import org.gcube.informationsystem.model.reference.ERElement;
|
|
|
|
|
import org.gcube.informationsystem.model.reference.entities.Facet;
|
|
|
|
@ -82,34 +81,13 @@ public interface ResourceRegistryClient {
|
|
|
|
|
public String getRelatedResources(String resourceType, String isRelatedToType, String referenceResourceType,
|
|
|
|
|
Direction direction, boolean polymorphic) throws ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
public <E extends Entity, R extends Relation<?,?>, RE extends Entity> List<E> getRelated(Class<E> entityClass,
|
|
|
|
|
Class<R> relationClass, Class<RE> referenceEntityClass, Direction direction, boolean polymorphic,
|
|
|
|
|
Map<String,Object> map) throws ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
public String getRelated(String entityType, String relationType, String referenceEntityType, Direction direction,
|
|
|
|
|
boolean polymorphic, Map<String,Object> map) throws ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
public <E extends Entity, R extends Relation<?,?>, RE extends Entity> List<E> getRelated(Class<E> entityClass,
|
|
|
|
|
Class<R> relationClass, Class<RE> referenceEntityClass, RE referenceEntity, Direction direction,
|
|
|
|
|
boolean polymorphic) throws ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
public <E extends Entity, R extends Relation<?,?>, RE extends Entity> List<E> getRelated(Class<E> entityClass,
|
|
|
|
|
Class<R> relationClass, Class<RE> referenceEntityClass, UUID referenceEntityUUID, Direction direction,
|
|
|
|
|
boolean polymorphic) throws ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
public String getRelated(String entityType, String relationType, String referenceEntityType, UUID referenceEntity,
|
|
|
|
|
Direction direction, boolean polymorphic) throws ResourceRegistryException;
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String query(final String query, final int limit, final String fetchPlan)
|
|
|
|
|
throws InvalidQueryException, ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
public String query(final String query, final int limit, final String fetchPlan, boolean raw)
|
|
|
|
|
throws InvalidQueryException, ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
public <E extends Element> List<Type> getSchema(Class<E> clazz, Boolean polymorphic)
|
|
|
|
|
public <ERElem extends ERElement> List<Type> getSchema(Class<ERElem> clazz, Boolean polymorphic)
|
|
|
|
|
throws SchemaNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
public Context getContext(UUID uuid) throws ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|