@Override
 public DirectoryResult<EntityDirectoryEntry> getResourceSummaries(
     EntityDescriptionQuery query, SortCriteria sortCriteria, Page page) {
   return new BasicEntityDirectoryBuilder<EntityDirectoryEntry>(
           this.entityNameQueryBuilder,
           this.entityUriResolver,
           new SearchExtensionSummariesCallback(query.getRestrictions().getCodeSystemVersions()),
           this.getSupportedMatchAlgorithms(),
           this.getSupportedSearchReferences())
       .restrict(query)
       .addMaxToReturn(page.getMaxToReturn())
       .addStart(page.getStart())
       .resolve();
 }
Ejemplo n.º 2
0
 /**
  * Instantiates a new limit offset, while incrementing the LIMIT by one in order to quickly tell
  * if there are more results left to page.
  *
  * @param page the page
  */
 protected LimitOffset(Page page) {
   this(page.getMaxToReturn(), page.getStart());
 }