use of com.odysseusinc.arachne.portal.api.v1.dto.SearchExpertListDTO in project ArachneCentralAPI by OHDSI.
the class BaseExpertFinderController method list.
@ApiOperation("Get expert list")
@RequestMapping(value = "/api/v1/user-management/users", method = GET)
public JsonResult<ExpertListSearchResultDTO> list(@ModelAttribute SearchExpertListDTO searchDTO) throws IOException, SolrServerException, NoSuchFieldException {
JsonResult result = new JsonResult<ExpertListSearchResultDTO>(NO_ERROR);
SolrQuery solrQuery = conversionService.convert(searchDTO, SolrQuery.class);
SearchResult searchResult = userService.search(solrQuery);
result.setResult(this.conversionService.convert(searchResult, ExpertListSearchResultDTO.class));
return result;
}
use of com.odysseusinc.arachne.portal.api.v1.dto.SearchExpertListDTO in project ArachneCentralAPI by OHDSI.
the class BaseUserServiceImpl method getExcludedOptions.
private Map<String, List<String>> getExcludedOptions() throws IOException, SolrServerException, NoSuchFieldException {
SolrQuery solrQuery = conversionService.convert(new SearchExpertListDTO(true), SolrQuery.class);
QueryResponse solrResponse = solrSearch(solrQuery);
SearchResult<Long> searchResult = new SearchResult<>(solrQuery, solrResponse, Collections.<Long>emptyList());
return searchResult.excludedOptions();
}
Aggregations