public class ResourceRegistryClientImpl extends Object implements ResourceRegistryClient
| Modifier and Type | Field and Description |
|---|---|
protected String |
address |
protected org.gcube.informationsystem.resourceregistry.api.contexts.ContextCacheRenewal |
contextCacheRenewal |
protected boolean |
hierarchicalMode |
protected boolean |
includeContextsInHeader |
| Constructor and Description |
|---|
ResourceRegistryClientImpl(String address) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
existContext(String uuid) |
boolean |
existContext(UUID uuid) |
<ERElem extends org.gcube.informationsystem.model.reference.ERElement> |
existInstance(Class<ERElem> clazz,
UUID uuid) |
boolean |
existInstance(String type,
UUID uuid) |
boolean |
existQueryTemplate(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate) |
boolean |
existQueryTemplate(String queryTemplateName) |
<ERElem extends org.gcube.informationsystem.model.reference.ERElement> |
existType(Class<ERElem> clazz) |
boolean |
existType(String typeName) |
List<org.gcube.informationsystem.contexts.reference.entities.Context> |
getAllContext() |
List<org.gcube.informationsystem.contexts.reference.entities.Context> |
getAllContextFromServer() |
List<org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate> |
getAllQueryTemplates() |
org.gcube.informationsystem.contexts.reference.entities.Context |
getContext(String uuid) |
org.gcube.informationsystem.contexts.reference.entities.Context |
getContext(UUID uuid) |
protected org.gcube.informationsystem.contexts.reference.entities.Context |
getContextFromServer(String uuid) |
org.gcube.informationsystem.contexts.reference.entities.Context |
getCurrentContext() |
<R extends org.gcube.informationsystem.model.reference.entities.Resource,C extends org.gcube.informationsystem.model.reference.relations.ConsistsOf<?,?>,F extends org.gcube.informationsystem.model.reference.entities.Facet> |
getFilteredResources(Class<R> resourceClass,
Class<C> consistsOfClass,
Class<F> facetClass,
boolean polymorphic,
Map<String,String> facetConstraints) |
String |
getFilteredResources(String resourceType,
String consistsOfType,
String facetType,
boolean polymorphic,
Map<String,String> facetConstraints) |
<ERElem extends org.gcube.informationsystem.model.reference.ERElement> |
getInstance(Class<ERElem> clazz,
UUID uuid) |
String |
getInstance(String type,
UUID uuid) |
<ERElem extends org.gcube.informationsystem.model.reference.ERElement> |
getInstanceContexts(Class<ERElem> clazz,
UUID uuid) |
Map<UUID,String> |
getInstanceContexts(String type,
UUID uuid) |
<ERElem extends org.gcube.informationsystem.model.reference.ERElement> |
getInstances(Class<ERElem> clazz,
Boolean polymorphic) |
String |
getInstances(String type,
Boolean polymorphic) |
protected <E extends org.gcube.informationsystem.model.reference.entities.Entity,R extends org.gcube.informationsystem.model.reference.relations.Relation<?,?>,RE extends org.gcube.informationsystem.model.reference.entities.Entity> |
getRelated(Class<E> entityClass,
Class<R> relationClass,
Class<RE> referenceEntityClass,
org.gcube.informationsystem.base.reference.Direction direction,
boolean polymorphic,
Map<String,String> map) |
protected <E extends org.gcube.informationsystem.model.reference.entities.Entity,R extends org.gcube.informationsystem.model.reference.relations.Relation<?,?>,RE extends org.gcube.informationsystem.model.reference.entities.Entity> |
getRelated(Class<E> entityClass,
Class<R> relationClass,
Class<RE> referenceEntityClass,
RE referenceEntity,
org.gcube.informationsystem.base.reference.Direction direction,
boolean polymorphic) |
protected <E extends org.gcube.informationsystem.model.reference.entities.Entity,R extends org.gcube.informationsystem.model.reference.relations.Relation<?,?>,RE extends org.gcube.informationsystem.model.reference.entities.Entity> |
getRelated(Class<E> entityClass,
Class<R> relationClass,
Class<RE> referenceEntityClass,
UUID referenceEntityUUID,
org.gcube.informationsystem.base.reference.Direction direction,
boolean polymorphic) |
protected String |
getRelated(String entityType,
String relationType,
String referenceEntityType,
org.gcube.informationsystem.base.reference.Direction direction,
boolean polymorphic,
Map<String,String> facetConstraints) |
protected String |
getRelated(String entityType,
String relationType,
String referenceEntityType,
UUID referenceEntity,
org.gcube.informationsystem.base.reference.Direction direction,
boolean polymorphic) |
protected String |
getRelated(String entityType,
String relationType,
String referenceEntityType,
UUID referenceEntity,
org.gcube.informationsystem.base.reference.Direction direction,
Boolean polymorphic,
Map<String,String> facetConstraints) |
<R extends org.gcube.informationsystem.model.reference.entities.Resource,I extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<?,?>,RR extends org.gcube.informationsystem.model.reference.entities.Resource> |
getRelatedResources(Class<R> resourceClass,
Class<I> isRelatedToClass,
Class<RR> referenceResourceClass,
org.gcube.informationsystem.base.reference.Direction direction,
boolean polymorphic) |
String |
getRelatedResources(String resourceType,
String isRelatedToType,
String referenceResourceType,
org.gcube.informationsystem.base.reference.Direction direction,
boolean polymorphic) |
<R extends org.gcube.informationsystem.model.reference.entities.Resource,I extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<?,?>,RR extends org.gcube.informationsystem.model.reference.entities.Resource> |
getRelatedResourcesFromReferenceResource(Class<R> resourceClass,
Class<I> isRelatedToClass,
Class<RR> referenceResourceClass,
UUID referenceResourceUUID,
org.gcube.informationsystem.base.reference.Direction direction,
boolean polymorphic) |
<R extends org.gcube.informationsystem.model.reference.entities.Resource,I extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<?,?>,RR extends org.gcube.informationsystem.model.reference.entities.Resource> |
getRelatedResourcesFromReferenceResource(Class<R> resourceClass,
Class<I> isRelatedToClass,
RR referenceResource,
org.gcube.informationsystem.base.reference.Direction direction,
boolean polymorphic) |
String |
getRelatedResourcesFromReferenceResource(String resourceType,
String isRelatedToType,
String referenceResourceType,
UUID referenceResourceUUID,
org.gcube.informationsystem.base.reference.Direction direction,
boolean polymorphic) |
<R extends org.gcube.informationsystem.model.reference.entities.Resource,C extends org.gcube.informationsystem.model.reference.relations.ConsistsOf<?,?>,F extends org.gcube.informationsystem.model.reference.entities.Facet> |
getResourcesFromReferenceFacet(Class<R> resourceClass,
Class<C> consistsOfClass,
Class<F> facetClass,
UUID referenceFacetUUID,
boolean polymorphic) |
<R extends org.gcube.informationsystem.model.reference.entities.Resource,C extends org.gcube.informationsystem.model.reference.relations.ConsistsOf<?,?>,F extends org.gcube.informationsystem.model.reference.entities.Facet> |
getResourcesFromReferenceFacet(Class<R> resourceClass,
Class<C> consistsOfClass,
F referenceFacet,
boolean polymorphic) |
String |
getResourcesFromReferenceFacet(String resourceType,
String consistsOfType,
String facetType,
UUID facetUUID,
boolean polymorphic) |
<ERElem extends org.gcube.informationsystem.model.reference.ERElement> |
getType(Class<ERElem> clazz,
Boolean polymorphic) |
String |
getType(String typeName,
Boolean polymorphic) |
boolean |
isHierarchicalMode() |
boolean |
isIncludeContextsInHeader() |
<E extends org.gcube.informationsystem.model.reference.entities.Entity> |
jsonQuery(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode) |
String |
jsonQuery(String query) |
String |
rawQuery(String query) |
String |
rawQuery(String query,
boolean raw) |
org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate |
readQueryTemplate(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate) |
org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate |
readQueryTemplate(String queryTemplateName) |
String |
readQueryTemplateAsString(String queryTemplateName) |
<E extends org.gcube.informationsystem.model.reference.entities.Entity> |
runQueryTemplate(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate) |
<E extends org.gcube.informationsystem.model.reference.entities.Entity> |
runQueryTemplate(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate,
org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode) |
<E extends org.gcube.informationsystem.model.reference.entities.Entity> |
runQueryTemplate(String name) |
<E extends org.gcube.informationsystem.model.reference.entities.Entity> |
runQueryTemplate(String name,
org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode) |
String |
runQueryTemplate(String name,
String params) |
String |
runQueryTemplateGetString(String name) |
void |
setHierarchicalMode(boolean hierarchicalMode) |
void |
setIncludeContextsInHeader(boolean includeContextsInHeader) |
protected final String address
protected boolean hierarchicalMode
protected boolean includeContextsInHeader
protected org.gcube.informationsystem.resourceregistry.api.contexts.ContextCacheRenewal contextCacheRenewal
public ResourceRegistryClientImpl(String address)
public boolean isHierarchicalMode()
isHierarchicalMode in interface ResourceRegistryClientpublic void setHierarchicalMode(boolean hierarchicalMode)
setHierarchicalMode in interface ResourceRegistryClientpublic boolean isIncludeContextsInHeader()
isIncludeContextsInHeader in interface ResourceRegistryClientpublic void setIncludeContextsInHeader(boolean includeContextsInHeader)
setIncludeContextsInHeader in interface ResourceRegistryClientpublic List<org.gcube.informationsystem.contexts.reference.entities.Context> getAllContextFromServer() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic List<org.gcube.informationsystem.contexts.reference.entities.Context> getAllContext() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getAllContext in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected org.gcube.informationsystem.contexts.reference.entities.Context getContextFromServer(String uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean existContext(String uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
existContext in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean existContext(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
existContext in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic org.gcube.informationsystem.contexts.reference.entities.Context getContext(String uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getContext in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic org.gcube.informationsystem.contexts.reference.entities.Context getContext(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getContext in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic org.gcube.informationsystem.contexts.reference.entities.Context getCurrentContext()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getCurrentContext in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <ERElem extends org.gcube.informationsystem.model.reference.ERElement> boolean existType(Class<ERElem> clazz) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
existType in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean existType(String typeName) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
existType in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <ERElem extends org.gcube.informationsystem.model.reference.ERElement> List<org.gcube.informationsystem.types.reference.Type> getType(Class<ERElem> clazz, Boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getType in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String getType(String typeName, Boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getType in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <ERElem extends org.gcube.informationsystem.model.reference.ERElement> List<ERElem> getInstances(Class<ERElem> clazz, Boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getInstances in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String getInstances(String type, Boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getInstances in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <ERElem extends org.gcube.informationsystem.model.reference.ERElement> boolean existInstance(Class<ERElem> clazz, UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
existInstance in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean existInstance(String type, UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
existInstance in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <ERElem extends org.gcube.informationsystem.model.reference.ERElement> ERElem getInstance(Class<ERElem> clazz, UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getInstance in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String getInstance(String type, UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getInstance in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String rawQuery(String query) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
rawQuery in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String rawQuery(String query, boolean raw) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
rawQuery in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected String getRelated(String entityType, String relationType, String referenceEntityType, UUID referenceEntity, org.gcube.informationsystem.base.reference.Direction direction, Boolean polymorphic, Map<String,String> facetConstraints) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <R extends org.gcube.informationsystem.model.reference.entities.Resource,C extends org.gcube.informationsystem.model.reference.relations.ConsistsOf<?,?>,F extends org.gcube.informationsystem.model.reference.entities.Facet> List<R> getResourcesFromReferenceFacet(Class<R> resourceClass, Class<C> consistsOfClass, F referenceFacet, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getResourcesFromReferenceFacet in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <R extends org.gcube.informationsystem.model.reference.entities.Resource,C extends org.gcube.informationsystem.model.reference.relations.ConsistsOf<?,?>,F extends org.gcube.informationsystem.model.reference.entities.Facet> List<R> getResourcesFromReferenceFacet(Class<R> resourceClass, Class<C> consistsOfClass, Class<F> facetClass, UUID referenceFacetUUID, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getResourcesFromReferenceFacet in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String getResourcesFromReferenceFacet(String resourceType, String consistsOfType, String facetType, UUID facetUUID, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getResourcesFromReferenceFacet in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <R extends org.gcube.informationsystem.model.reference.entities.Resource,C extends org.gcube.informationsystem.model.reference.relations.ConsistsOf<?,?>,F extends org.gcube.informationsystem.model.reference.entities.Facet> List<R> getFilteredResources(Class<R> resourceClass, Class<C> consistsOfClass, Class<F> facetClass, boolean polymorphic, Map<String,String> facetConstraints) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getFilteredResources in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String getFilteredResources(String resourceType, String consistsOfType, String facetType, boolean polymorphic, Map<String,String> facetConstraints) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getFilteredResources in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <R extends org.gcube.informationsystem.model.reference.entities.Resource,I extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<?,?>,RR extends org.gcube.informationsystem.model.reference.entities.Resource> List<R> getRelatedResourcesFromReferenceResource(Class<R> resourceClass, Class<I> isRelatedToClass, RR referenceResource, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getRelatedResourcesFromReferenceResource in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <R extends org.gcube.informationsystem.model.reference.entities.Resource,I extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<?,?>,RR extends org.gcube.informationsystem.model.reference.entities.Resource> List<R> getRelatedResourcesFromReferenceResource(Class<R> resourceClass, Class<I> isRelatedToClass, Class<RR> referenceResourceClass, UUID referenceResourceUUID, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getRelatedResourcesFromReferenceResource in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String getRelatedResourcesFromReferenceResource(String resourceType, String isRelatedToType, String referenceResourceType, UUID referenceResourceUUID, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getRelatedResourcesFromReferenceResource in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <R extends org.gcube.informationsystem.model.reference.entities.Resource,I extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<?,?>,RR extends org.gcube.informationsystem.model.reference.entities.Resource> List<R> getRelatedResources(Class<R> resourceClass, Class<I> isRelatedToClass, Class<RR> referenceResourceClass, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getRelatedResources in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String getRelatedResources(String resourceType, String isRelatedToType, String referenceResourceType, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getRelatedResources in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected <E extends org.gcube.informationsystem.model.reference.entities.Entity,R extends org.gcube.informationsystem.model.reference.relations.Relation<?,?>,RE extends org.gcube.informationsystem.model.reference.entities.Entity> List<E> getRelated(Class<E> entityClass, Class<R> relationClass, Class<RE> referenceEntityClass, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic, Map<String,String> map) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected String getRelated(String entityType, String relationType, String referenceEntityType, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic, Map<String,String> facetConstraints) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected <E extends org.gcube.informationsystem.model.reference.entities.Entity,R extends org.gcube.informationsystem.model.reference.relations.Relation<?,?>,RE extends org.gcube.informationsystem.model.reference.entities.Entity> List<E> getRelated(Class<E> entityClass, Class<R> relationClass, Class<RE> referenceEntityClass, RE referenceEntity, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected <E extends org.gcube.informationsystem.model.reference.entities.Entity,R extends org.gcube.informationsystem.model.reference.relations.Relation<?,?>,RE extends org.gcube.informationsystem.model.reference.entities.Entity> List<E> getRelated(Class<E> entityClass, Class<R> relationClass, Class<RE> referenceEntityClass, UUID referenceEntityUUID, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected String getRelated(String entityType, String relationType, String referenceEntityType, UUID referenceEntity, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <ERElem extends org.gcube.informationsystem.model.reference.ERElement> Map<UUID,String> getInstanceContexts(Class<ERElem> clazz, UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getInstanceContexts in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic Map<UUID,String> getInstanceContexts(String type, UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getInstanceContexts in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic List<org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate> getAllQueryTemplates() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getAllQueryTemplates in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean existQueryTemplate(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
existQueryTemplate in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean existQueryTemplate(String queryTemplateName) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
existQueryTemplate in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate readQueryTemplate(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
readQueryTemplate in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate readQueryTemplate(String queryTemplateName) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
readQueryTemplate in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String readQueryTemplateAsString(String queryTemplateName) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
readQueryTemplateAsString in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String runQueryTemplateGetString(String name) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
runQueryTemplateGetString in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <E extends org.gcube.informationsystem.model.reference.entities.Entity> List<E> runQueryTemplate(String name) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
runQueryTemplate in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <E extends org.gcube.informationsystem.model.reference.entities.Entity> List<E> runQueryTemplate(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
runQueryTemplate in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String runQueryTemplate(String name, String params) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
runQueryTemplate in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <E extends org.gcube.informationsystem.model.reference.entities.Entity> List<E> runQueryTemplate(String name, org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
runQueryTemplate in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <E extends org.gcube.informationsystem.model.reference.entities.Entity> List<E> runQueryTemplate(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate, org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
runQueryTemplate in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String jsonQuery(String query) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
jsonQuery in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <E extends org.gcube.informationsystem.model.reference.entities.Entity> List<E> jsonQuery(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
jsonQuery in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2022. All Rights Reserved.