Package org.nuxeo.ecm.platform.query.api
Class PageProviderSpec.Builder
java.lang.Object
org.nuxeo.ecm.platform.query.api.PageProviderSpec.Builder
- Enclosing class:
- PageProviderSpec
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longprotected Longprotected final PageProviderDefinitionprotected Collection<String>protected final Stringprotected Longprotected final Map<String,Serializable> protected Collection<QuickFilter>protected DocumentModelprotected Collection<SortInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()currentPage(Long currentPage) currentPageOffset(Long currentPageOffset) Appends the givenhighlightto this builder's highlights.highlights(Collection<String> highlights) Sets the givenhighlightsto this builder's highlights.Appends the givenparameterto this builder's parameters.parameters(Object... parameters) Appends the givenparametersto this builder's parameters.parameters(Collection<?> parameters) Appends the givenparametersto this builder's parameters.properties(Map<String, Serializable> properties) Puts all the givenpropertiesinto this builder's properties.property(String key, Serializable value) Puts the givenkey/valuepair into this builder's properties.quickFilter(QuickFilter quickFilter) Appends the givenquickFilterto this builder's quick filters.quickFilters(Collection<QuickFilter> quickFilters) Sets the givenquickFiltersto this builder's quick filters.quickFiltersByNames(List<String> quickFilterNames) Resolves and appends the givenquickFilterNamesto this builder's quick filters by looking them up on the page provider definition.searchDocument(DocumentModel searchDocument) Appends the givensortInfoto this builder's sort information.sortInfos(Collection<SortInfo> sortInfos) Sets the givensortInfosto this builder's sort information.sortInfosByFieldsAndOrders(List<String> sortBy, List<String> sortOrder) Appends sort information built from parallelsortByandsortOrderlists.
-
Field Details
-
name
-
definition
-
properties
-
parameters
-
searchDocument
-
sortInfos
-
pageSize
-
currentPage
-
currentPageOffset
-
highlights
-
quickFilters
-
-
Constructor Details
-
Builder
-
-
Method Details
-
searchDocument
-
sortInfos
Sets the givensortInfosto this builder's sort information. -
sortInfo
Appends the givensortInfoto this builder's sort information. -
sortInfosByFieldsAndOrders
public PageProviderSpec.Builder sortInfosByFieldsAndOrders(List<String> sortBy, List<String> sortOrder) Appends sort information built from parallelsortByandsortOrderlists. Entries insortByare field paths; the matching entry insortOrderis matched case-insensitively against"asc"(any other value, includingnullor a missing entry, is treated as descending). BlanksortByentries are skipped. -
pageSize
-
currentPage
-
currentPageOffset
-
properties
Puts all the givenpropertiesinto this builder's properties. -
property
Puts the givenkey/valuepair into this builder's properties. -
highlights
Sets the givenhighlightsto this builder's highlights. -
highlight
Appends the givenhighlightto this builder's highlights. -
quickFilters
Sets the givenquickFiltersto this builder's quick filters. -
quickFilter
Appends the givenquickFilterto this builder's quick filters. -
quickFiltersByNames
Resolves and appends the givenquickFilterNamesto this builder's quick filters by looking them up on the page provider definition. Names that don't match any declared quick filter are silently skipped.The argument may be
null, in which case this is a no-op.- Since:
- 2025.20
-
parameters
Appends the givenparametersto this builder's parameters. -
parameters
Appends the givenparametersto this builder's parameters. -
parameter
Appends the givenparameterto this builder's parameters. -
build
-