use of edu.stanford.bmir.protege.web.shared.entity.GetDeprecatedEntitiesResult in project webprotege by protegeproject.
the class GetDeprecatedEntitiesActionHandler method execute.
@Nonnull
@Override
public GetDeprecatedEntitiesResult execute(@Nonnull GetDeprecatedEntitiesAction action, @Nonnull ExecutionContext executionContext) {
PageRequest pageRequest = action.getPageRequest();
Optional<Page<OWLEntityData>> page = entityStream(action.getEntityTypes(), rootOntology, Imports.INCLUDED).filter(deprecatedEntityChecker::isDeprecated).map(renderingManager::getRendering).sorted().collect(toPageNumber(pageRequest.getPageNumber()).forPageSize(pageRequest.getPageSize()));
return new GetDeprecatedEntitiesResult(page.orElse(Page.emptyPage()));
}
Aggregations