2016-07-18 11:57:37 +02:00
|
|
|
package org.gcube.informationsystem.resourceregistry.client.proxy;
|
|
|
|
|
2016-10-18 10:52:05 +02:00
|
|
|
import java.util.UUID;
|
2016-09-12 14:45:05 +02:00
|
|
|
|
2016-10-18 10:52:05 +02:00
|
|
|
import org.gcube.informationsystem.model.entity.Facet;
|
|
|
|
import org.gcube.informationsystem.model.entity.Resource;
|
2016-07-18 11:57:37 +02:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.InvalidQueryException;
|
2016-10-18 10:52:05 +02:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
|
2016-11-29 08:27:18 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException;
|
2016-10-18 10:52:05 +02:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException;
|
2016-07-18 11:57:37 +02:00
|
|
|
|
|
|
|
/**
|
2016-10-12 14:35:20 +02:00
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
2016-07-18 11:57:37 +02:00
|
|
|
*/
|
2016-10-18 10:52:05 +02:00
|
|
|
public interface ResourceRegistryClient {
|
2016-07-18 11:57:37 +02:00
|
|
|
|
2016-10-18 10:52:05 +02:00
|
|
|
public Facet getFacet(UUID uuid)
|
|
|
|
throws FacetNotFoundException, ResourceRegistryException;
|
2016-07-18 11:57:37 +02:00
|
|
|
|
2016-10-18 10:52:05 +02:00
|
|
|
public <F extends Facet> F getFacet(Class<F> clazz, UUID uuid)
|
|
|
|
throws FacetNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
public String getFacetSchema(String facetType)
|
|
|
|
throws SchemaNotFoundException;
|
2016-07-18 11:57:37 +02:00
|
|
|
|
2016-10-14 15:35:46 +02:00
|
|
|
|
2016-10-18 10:52:05 +02:00
|
|
|
public Resource getResource(UUID uuid)
|
|
|
|
throws ResourceNotFoundException, ResourceRegistryException;
|
2016-10-14 15:35:46 +02:00
|
|
|
|
2016-10-18 10:52:05 +02:00
|
|
|
public <R extends Resource> R getResource(Class<R> clazz, UUID uuid)
|
|
|
|
throws ResourceNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
public String getResourceSchema(String resourceType)
|
|
|
|
throws SchemaNotFoundException;
|
2016-07-18 11:57:37 +02:00
|
|
|
|
2016-10-18 10:52:05 +02:00
|
|
|
|
|
|
|
public String query(final String query, final int limit,
|
|
|
|
final String fetchPlan) throws InvalidQueryException;
|
2016-07-18 11:57:37 +02:00
|
|
|
|
|
|
|
}
|