public interface FilterableQuery extends Query
QueryFilter
.Query.Type
Modifier and Type | Method and Description |
---|---|
QueryResult |
execute(QueryFilter queryFilter,
boolean countTotal)
Makes a query to the backend with filtering on the BROWSE permission for
the principal, facets, and query transformers.
|
QueryResult |
execute(QueryFilter queryFilter,
long countUpTo)
Makes a query to the backend with filtering on the BROWSE permission for
the principal, facets, and query transformers.
|
QueryResult execute(QueryFilter queryFilter, boolean countTotal) throws QueryException
The total number of documents can also be retrieved, it is then stored in
the DocumentModelList
returned by
QueryResult.getDocumentModels()
.
queryFilter
- the query filtercountTotal
- if true
, also count the total number of
documents when no limit/offset is passedQueryException
QueryResult execute(QueryFilter queryFilter, long countUpTo) throws QueryException
The total number of documents can also be retrieved, it is then stored in
the DocumentModelList
returned by
QueryResult.getDocumentModels()
.
queryFilter
- the query filtercountUpTo
- if -1
, also count the total number of documents
when no limit/offset is passed.0
, don't count the total number.n
, count the total number if there are less than n
documents otherwise set the size to -1
.QueryException
Copyright © 2013 Nuxeo SA. All Rights Reserved.