public class ResourceRegistryClientImpl extends Object implements ResourceRegistryClient
| Constructor and Description |
|---|
ResourceRegistryClientImpl(String address) |
| Modifier and Type | Method and Description |
|---|---|
<ERType extends org.gcube.informationsystem.model.reference.ER> |
exists(Class<ERType> clazz,
UUID uuid) |
boolean |
exists(String type,
UUID uuid) |
List<org.gcube.informationsystem.model.reference.entities.Context> |
getAllContext() |
org.gcube.informationsystem.model.reference.entities.Context |
getContext(UUID uuid) |
org.gcube.informationsystem.model.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> map) |
String |
getFilteredResources(String resourceType,
String consistsOfType,
String facetType,
boolean polymorphic,
Map<String,String> map) |
<ERType extends org.gcube.informationsystem.model.reference.ER> |
getInstance(Class<ERType> clazz,
UUID uuid) |
String |
getInstance(String type,
UUID uuid) |
<ERType extends org.gcube.informationsystem.model.reference.ER,R extends org.gcube.informationsystem.model.reference.entities.Resource> |
getInstances(Class<ERType> 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,
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,
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,
Direction direction,
boolean polymorphic) |
protected String |
getRelated(String entityType,
String relationType,
String referenceEntityType,
Direction direction,
boolean polymorphic,
Map<String,String> map) |
protected String |
getRelated(String entityType,
String relationType,
String referenceEntityType,
UUID referenceEntity,
Direction direction,
boolean polymorphic) |
protected String |
getRelated(String entityType,
String relationType,
String referenceEntityType,
UUID referenceEntity,
Direction direction,
Boolean polymorphic,
Map<String,String> map) |
<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,
Direction direction,
boolean polymorphic) |
String |
getRelatedResources(String resourceType,
String isRelatedToType,
String referenceResourceType,
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,
RR referenceResource,
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,
Direction direction,
boolean polymorphic) |
String |
getRelatedResourcesFromReferenceResource(String resourceType,
String isRelatedToType,
String referenceResourceType,
UUID referenceResourceUUID,
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,
F referenceFacet,
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) |
String |
getResourcesFromReferenceFacet(String resourceType,
String consistsOfType,
String facetType,
UUID facetUUID,
boolean polymorphic) |
<ISM extends org.gcube.informationsystem.model.reference.ISManageable> |
getSchema(Class<ISM> clazz,
Boolean polymorphic) |
String |
query(String query,
int limit,
String fetchPlan) |
String |
query(String query,
int limit,
String fetchPlan,
boolean raw) |
protected final String address
public ResourceRegistryClientImpl(String address)
public org.gcube.informationsystem.model.reference.entities.Context getCurrentContext()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getCurrentContext in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic org.gcube.informationsystem.model.reference.entities.Context getContext(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getContext in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic List<org.gcube.informationsystem.model.reference.entities.Context> getAllContext() throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getAllContext in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <ISM extends org.gcube.informationsystem.model.reference.ISManageable> List<org.gcube.informationsystem.types.TypeBinder.TypeDefinition> getSchema(Class<ISM> clazz, Boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getSchema in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <ERType extends org.gcube.informationsystem.model.reference.ER> boolean exists(Class<ERType> 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
exists in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean exists(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
exists in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <ERType extends org.gcube.informationsystem.model.reference.ER> ERType getInstance(Class<ERType> 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 <ERType extends org.gcube.informationsystem.model.reference.ER,R extends org.gcube.informationsystem.model.reference.entities.Resource> List<R> getInstances(Class<ERType> 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 String query(String query, int limit, String fetchPlan) throws org.gcube.informationsystem.resourceregistry.api.exceptions.query.InvalidQueryException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
query in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.query.InvalidQueryExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String query(String query, int limit, String fetchPlan, boolean raw) throws org.gcube.informationsystem.resourceregistry.api.exceptions.query.InvalidQueryException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
query in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.query.InvalidQueryExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected String getRelated(String entityType, String relationType, String referenceEntityType, UUID referenceEntity, Direction direction, Boolean polymorphic, Map<String,String> map) 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, Class<F> facetClass, 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> map) 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> map) 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, Class<RR> referenceResourceClass, RR referenceResource, 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, 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, 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, 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, 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, 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, Direction direction, boolean polymorphic, Map<String,String> map) 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, 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, 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, Direction direction, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2019. All Rights Reserved.