Class DatasetCatalogsController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.DatasetCatalogsController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class DatasetCatalogsController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<Response<DatasetDescription>>
describeDatasetPublished
(PluginSpecification connectorSpec, com.fasterxml.jackson.databind.node.ObjectNode connectorConfig, String datasetId) org.springframework.http.HttpEntity<Response<SearchResultsPage<DatasetSearchResult>>>
searchDatasetPublished
(PluginSpecification connectorSpec, com.fasterxml.jackson.databind.node.ObjectNode connectorConfig, String query, Map<String, List<String>> facets, int page) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0)
-
Constructor Details
-
DatasetCatalogsController
public DatasetCatalogsController()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getServiceSpecies
- Specified by:
getServiceSpecies
in interfaceIntrospectableController
-
getService
- Specified by:
getService
in interfaceIntrospectableController
-
searchDatasetPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/DatasetCatalogs/searchDataset", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<SearchResultsPage<DatasetSearchResult>>> searchDatasetPublished(@RequestParam("connectorSpec") PluginSpecification connectorSpec, @RequestParam(value="connectorConfig",required=false) @JsonSerialized com.fasterxml.jackson.databind.node.ObjectNode connectorConfig, @RequestParam("query") String query, @RequestParam(value="facets",required=false,defaultValue="{}") @JsonSerialized Map<String, List<String>> facets, @RequestParam(value="page",required=false,defaultValue="1") int page) throws WrongPropertiesException, STPropertyAccessException, InvalidConfigurationException, IOException -
describeDatasetPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/DatasetCatalogs/describeDataset", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<DatasetDescription>> describeDatasetPublished(@RequestParam("connectorSpec") PluginSpecification connectorSpec, @RequestParam(value="connectorConfig",required=false) @JsonSerialized com.fasterxml.jackson.databind.node.ObjectNode connectorConfig, @RequestParam("datasetId") String datasetId) throws IllegalArgumentException, NoSuchExtensionException, WrongPropertiesException, STPropertyAccessException, InvalidConfigurationException, IOException
-