public class ResourceRegistryClientImpl extends Object implements ResourceRegistryClient
| Modifier and Type | Field and Description |
|---|---|
protected String |
address |
protected org.gcube.informationsystem.resourceregistry.api.rest.httputils.HTTPCall |
httpCall |
static String |
PATH_SEPARATOR |
| Constructor and Description |
|---|
ResourceRegistryClientImpl(String address) |
| Modifier and Type | Method and Description |
|---|---|
<ERType extends org.gcube.informationsystem.model.ER> |
exists(Class<ERType> clazz,
UUID uuid) |
boolean |
exists(String type,
UUID uuid) |
org.gcube.informationsystem.model.entity.Context |
getContext(UUID uuid) |
<R extends org.gcube.informationsystem.model.entity.Resource,F extends org.gcube.informationsystem.model.entity.Facet,C extends org.gcube.informationsystem.model.relation.ConsistsOf<?,?>> |
getFilteredResources(Class<R> resourceClass,
Class<C> consistsOfClass,
Class<F> facetClass,
boolean polymorphic,
Map<String,Object> map) |
String |
getFilteredResources(String resourceType,
String consistsOfType,
String facetType,
boolean polymorphic,
Map<String,Object> map) |
<ERType extends org.gcube.informationsystem.model.ER> |
getInstance(Class<ERType> clazz,
UUID uuid) |
String |
getInstance(String type,
UUID uuid) |
<ERType extends org.gcube.informationsystem.model.ER,R extends org.gcube.informationsystem.model.entity.Resource> |
getInstances(Class<ERType> clazz,
Boolean polymorphic) |
String |
getInstances(String type,
Boolean polymorphic) |
<ERType extends org.gcube.informationsystem.model.ER,E extends org.gcube.informationsystem.model.entity.Entity,R extends org.gcube.informationsystem.model.entity.Resource> |
getInstancesFromEntity(Class<ERType> clazz,
Boolean polymorphic,
E reference,
Direction direction) |
<ERType extends org.gcube.informationsystem.model.ER,R extends org.gcube.informationsystem.model.entity.Resource> |
getInstancesFromEntity(Class<ERType> clazz,
Boolean polymorphic,
UUID reference,
Direction direction) |
String |
getInstancesFromEntity(String type,
Boolean polymorphic,
UUID reference,
Direction direction) |
<ISM extends org.gcube.informationsystem.model.ISManageable> |
getSchema(Class<ISM> clazz,
Boolean polymorphic) |
String |
query(String query,
int limit,
String fetchPlan) |
public static final String PATH_SEPARATOR
protected final String address
protected org.gcube.informationsystem.resourceregistry.api.rest.httputils.HTTPCall httpCall
public ResourceRegistryClientImpl(String address)
public <ERType extends org.gcube.informationsystem.model.ER> boolean exists(Class<ERType> clazz, UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
exists in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean exists(String type, UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
exists in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <ERType extends org.gcube.informationsystem.model.ER> ERType getInstance(Class<ERType> clazz, UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getInstance in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String getInstance(String type, UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getInstance in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <ERType extends org.gcube.informationsystem.model.ER,R extends org.gcube.informationsystem.model.entity.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 <ERType extends org.gcube.informationsystem.model.ER,E extends org.gcube.informationsystem.model.entity.Entity,R extends org.gcube.informationsystem.model.entity.Resource> List<R> getInstancesFromEntity(Class<ERType> clazz, Boolean polymorphic, E reference, Direction direction) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getInstancesFromEntity in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <ERType extends org.gcube.informationsystem.model.ER,R extends org.gcube.informationsystem.model.entity.Resource> List<R> getInstancesFromEntity(Class<ERType> clazz, Boolean polymorphic, UUID reference, Direction direction) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getInstancesFromEntity in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String getInstancesFromEntity(String type, Boolean polymorphic, UUID reference, Direction direction) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getInstancesFromEntity in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <R extends org.gcube.informationsystem.model.entity.Resource,F extends org.gcube.informationsystem.model.entity.Facet,C extends org.gcube.informationsystem.model.relation.ConsistsOf<?,?>> List<R> getFilteredResources(Class<R> resourceClass, Class<C> consistsOfClass, Class<F> facetClass, boolean polymorphic, Map<String,Object> 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,Object> map) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getFilteredResources 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 org.gcube.informationsystem.model.entity.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 <ISM extends org.gcube.informationsystem.model.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.ResourceRegistryExceptionCopyright © 2017. All Rights Reserved.