use of com.odysseusinc.arachne.portal.model.search.StudySpecification in project ArachneCentralAPI by OHDSI.
the class BaseStudyServiceImpl method findStudies.
@Override
@Transactional(readOnly = true)
public Page<AbstractUserStudyListItem> findStudies(final SS studySearch) {
Sort sort = getSort(studySearch.getSortBy(), studySearch.getSortAsc());
StudySpecification<SU> studyFilteredListSpecification = new StudySpecification<>(studySearch);
Page<SU> resultPage = baseUserStudyLinkRepository.findAll(studyFilteredListSpecification, PageRequest.of(studySearch.getPage() - 1, studySearch.getPagesize(), sort));
return resultPage.map(s -> (AbstractUserStudyListItem) s);
}
Aggregations