-
- All Implemented Interfaces:
public interface HasAllPaginated<T extends Object>Provides offset pagination, sorting and filtering by PublishStatus using Elasticsearch repositories that implement [FindsAllByPublishStatus]. Also generates next, prev paginated link headers in response
-
-
Method Summary
Modifier and Type Method Description HttpEntity<List<T>>allPaginated(UriComponentsBuilder uriComponentsBuilder, @RequestParam(required = false, defaultValue = "50") Integer size, @RequestParam(required = false, defaultValue = "0") Integer from, @RequestParam(required = false, defaultValue = "draft,published") Array<String> status, @RequestParam(required = false) String sort, @AuthenticationPrincipal() Jwt user)abstract FindsAllByPublishStatus<T>getElasticRepository()abstract StringgetAllPaginatedPath()override in @Controllerimplementors with the path that [allPaginated] handlesabstract SortOrderCompanion<?>getSortOrderCompanion()-
-
Method Detail
-
allPaginated
HttpEntity<List<T>> allPaginated(UriComponentsBuilder uriComponentsBuilder, @RequestParam(required = false, defaultValue = "50") Integer size, @RequestParam(required = false, defaultValue = "0") Integer from, @RequestParam(required = false, defaultValue = "draft,published") Array<String> status, @RequestParam(required = false) String sort, @AuthenticationPrincipal() Jwt user)
-
getElasticRepository
abstract FindsAllByPublishStatus<T> getElasticRepository()
-
getAllPaginatedPath
abstract String getAllPaginatedPath()
override in
@Controllerimplementors with the path that [allPaginated] handles
-
getSortOrderCompanion
abstract SortOrderCompanion<?> getSortOrderCompanion()
-
-
-
-