Package org.dspace.app.rest
Class DiscoveryRestController
- java.lang.Object
-
- org.dspace.app.rest.DiscoveryRestController
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@RestController @RequestMapping("/api/discover") public class DiscoveryRestController extends Object implements org.springframework.beans.factory.InitializingBeanThe controller for the api/discover endpoint
-
-
Constructor Summary
Constructors Constructor Description DiscoveryRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()FacetsResourcegetFacets(String query, List<String> dsoTypes, String dsoScope, String configuration, List<SearchFilter> searchFilters, org.springframework.data.domain.Pageable page)FacetConfigurationResourcegetFacetsConfiguration(String dsoScope, String configuration, org.springframework.data.domain.Pageable pageable)org.springframework.hateoas.RepresentationModelgetFacetValues(String facetName, String prefix, String query, List<String> dsoTypes, String dsoScope, String configuration, List<SearchFilter> searchFilters, org.springframework.data.domain.Pageable page)SearchConfigurationResourcegetSearchConfiguration(String dsoScope, String configuration)SearchResultsResourcegetSearchObjects(String query, List<String> dsoTypes, String dsoScope, String configuration, List<SearchFilter> searchFilters, org.springframework.data.domain.Pageable page)SearchSupportResourcegetSearchSupport(String dsoScope, String configuration)
-
-
-
Field Detail
-
utils
@Autowired protected Utils utils
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getSearchSupport
@RequestMapping(method=GET) public SearchSupportResource getSearchSupport(@RequestParam(name="scope",required=false) String dsoScope, @RequestParam(name="configuration",required=false) String configuration) throws Exception
- Throws:
Exception
-
getSearchConfiguration
@RequestMapping(method=GET, value="/search") public SearchConfigurationResource getSearchConfiguration(@RequestParam(name="scope",required=false) String dsoScope, @RequestParam(name="configuration",required=false) String configuration) throws Exception- Throws:
Exception
-
getFacets
@RequestMapping(method=GET, value="/search/facets") public FacetsResource getFacets(@RequestParam(name="query",required=false) String query, @RequestParam(name="dsoType",required=false) List<String> dsoTypes, @RequestParam(name="scope",required=false) String dsoScope, @RequestParam(name="configuration",required=false) String configuration, List<SearchFilter> searchFilters, org.springframework.data.domain.Pageable page) throws Exception- Throws:
Exception
-
getSearchObjects
@RequestMapping(method=GET, value="/search/objects") public SearchResultsResource getSearchObjects(@RequestParam(name="query",required=false) String query, @RequestParam(name="dsoType",required=false) List<String> dsoTypes, @RequestParam(name="scope",required=false) String dsoScope, @RequestParam(name="configuration",required=false) String configuration, List<SearchFilter> searchFilters, org.springframework.data.domain.Pageable page) throws Exception- Throws:
Exception
-
getFacetsConfiguration
@RequestMapping(method=GET, value="/facets") public FacetConfigurationResource getFacetsConfiguration(@RequestParam(name="scope",required=false) String dsoScope, @RequestParam(name="configuration",required=false) String configuration, org.springframework.data.domain.Pageable pageable) throws Exception- Throws:
Exception
-
getFacetValues
@RequestMapping(method=GET, value="/facets/{name}") public org.springframework.hateoas.RepresentationModel getFacetValues(@PathVariable("name") String facetName, @RequestParam(name="prefix",required=false) String prefix, @RequestParam(name="query",required=false) String query, @RequestParam(name="dsoType",required=false) List<String> dsoTypes, @RequestParam(name="scope",required=false) String dsoScope, @RequestParam(name="configuration",required=false) String configuration, List<SearchFilter> searchFilters, org.springframework.data.domain.Pageable page) throws Exception- Throws:
Exception
-
-