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) |
<ERType extends org.gcube.informationsystem.model.ER> |
getInstance(Class<ERType> clazz,
UUID uuid) |
List<? extends org.gcube.informationsystem.model.entity.Entity> |
getInstances(String type,
Boolean polymorphic) |
List<org.gcube.informationsystem.model.entity.Resource> |
getInstancesFromEntity(String relationType,
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> void 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 <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 List<? extends org.gcube.informationsystem.model.entity.Entity> getInstances(String type, Boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getInstances in interface ResourceRegistryClientorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic List<org.gcube.informationsystem.model.entity.Resource> getInstancesFromEntity(String relationType, Boolean polymorphic, UUID reference, Direction direction) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getInstancesFromEntity in interface ResourceRegistryClientorg.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.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.ResourceRegistryExceptionCopyright © 2017. All Rights Reserved.