@Path(value="access") public class Access extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.informationsystem.resourceregistry.api.EntityManagement |
entityManager |
static String |
ID_PATH_PARAM |
protected org.gcube.informationsystem.resourceregistry.api.Query |
queryManager |
protected org.gcube.informationsystem.resourceregistry.api.SchemaManagement |
schemaManager |
static String |
TYPE_PATH_PARAM |
| Constructor and Description |
|---|
Access() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFacet(String facetId)
e.g.
|
String |
getFacetSchema(String facetType)
e.g.
|
String |
getResource(String resourceId)
e.g.
|
String |
getResourceSchema(String resourceType)
e.g.
|
String |
query(String query,
int limit,
String fetchPlan)
e.g.
|
public static final String ID_PATH_PARAM
public static final String TYPE_PATH_PARAM
protected org.gcube.informationsystem.resourceregistry.api.Query queryManager
protected org.gcube.informationsystem.resourceregistry.api.EntityManagement entityManager
protected org.gcube.informationsystem.resourceregistry.api.SchemaManagement schemaManager
@GET public String query(@QueryParam(value="query") String query, @QueryParam(value="limit") int limit, @QueryParam(value="fetchPlan") String fetchPlan) throws org.gcube.informationsystem.resourceregistry.api.exceptions.InvalidQueryException
query - fetchPlan - org.gcube.informationsystem.resourceregistry.api.exceptions.InvalidQueryException@GET
@Path(value="facet/instance/{id}")
public String getFacet(@PathParam(value="id")
String facetId)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
facetId - org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@GET
@Path(value="facet/schema/{type}")
public String getFacetSchema(@PathParam(value="type")
String facetType)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
facetType - org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException@GET
@Path(value="resource/instance/{id}")
public String getResource(@PathParam(value="id")
String resourceId)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
resourceId - org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@GET
@Path(value="resource/schema/{type}")
public String getResourceSchema(@PathParam(value="type")
String resourceType)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
resourceType - org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionCopyright © 2016. All Rights Reserved.