use of org.obiba.mica.spi.search.support.JoinQuery in project mica2 by obiba.
the class SpecificStudyReportGenerator method report.
public void report(String rqlQuery, OutputStream outputStream) throws IOException {
JoinQuery joinQuery = searcher.makeJoinQuery(rqlQuery);
List<String> studyIds = joinQueryExecutor.query(QueryType.STUDY, joinQuery).getStudyResultDto().getExtension(MicaSearch.StudyResultDto.result).getSummariesList().stream().map(Mica.StudySummaryDto::getId).collect(toList());
Translator translator = JsonTranslator.buildSafeTranslator(() -> micaConfigService.getTranslations(joinQuery.getLocale(), false));
report(translator, studyIds, joinQuery.getLocale(), outputStream);
}
Aggregations