Class QueryExecutor
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.restapi.server.jaxrs.search.QueryExecutor
- Direct Known Subclasses:
SearchObject
- Since:
- 8.3
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
In case offset is specified, currentPageIndex is ignored.static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected PageProviderService
static final String
static final String
static final String
static final String
protected boolean
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasStringList
(String value) protected javax.ws.rs.core.Response
buildResponse
(javax.ws.rs.core.Response.StatusType status, String type, Object object) protected Long
getCurrentPageIndex
(javax.ws.rs.core.MultivaluedMap<String, String> queryParams) protected Long
getCurrentPageOffset
(javax.ws.rs.core.MultivaluedMap<String, String> queryParams) getHighlights
(javax.ws.rs.core.MultivaluedMap<String, String> queryParams) protected Long
getMaxResults
(javax.ws.rs.core.MultivaluedMap<String, String> queryParams) getNamedParameters
(Map<String, String> queryParams) getNamedParameters
(javax.ws.rs.core.MultivaluedMap<String, String> queryParams) protected PageProviderDefinition
getPageProviderDefinition
(String pageProviderName) protected Long
getPageSize
(javax.ws.rs.core.MultivaluedMap<String, String> queryParams) protected Object[]
getParameters
(javax.ws.rs.core.MultivaluedMap<String, String> queryParams) protected Map<String,
Serializable> protected String
protected List<QuickFilter>
getQuickFilters
(String providerName, javax.ws.rs.core.MultivaluedMap<String, String> queryParams) getSortInfo
(String sortBy, String sortOrder) getSortInfo
(javax.ws.rs.core.MultivaluedMap<String, String> queryParams) protected String
handleNamedParamVars
(String value) void
protected DocumentModelList
queryByLang
(String query, Long pageSize, Long currentPageIndex, Long currentPageOffset, Long maxResults, List<SortInfo> sortInfo, Map<String, Serializable> props, DocumentModel searchDocumentModel, Object... parameters) protected DocumentModelList
queryByLang
(String queryLanguage, javax.ws.rs.core.MultivaluedMap<String, String> queryParams) protected DocumentModelList
queryByLang
(javax.ws.rs.core.MultivaluedMap<String, String> queryParams) protected DocumentModelList
queryByPageProvider
(String pageProviderName, Long pageSize, Long currentPageIndex, Long currentPageOffset, List<SortInfo> sortInfo, List<String> highlights, List<QuickFilter> quickFilters, Map<String, Serializable> props, DocumentModel searchDocumentModel, Object... parameters) protected DocumentModelList
queryByPageProvider
(String pageProviderName, Long pageSize, Long currentPageIndex, Long currentPageOffset, List<SortInfo> sortInfo, List<QuickFilter> quickFilters, Object[] parameters, Map<String, Serializable> props, DocumentModel searchDocumentModel) protected DocumentModelList
queryByPageProvider
(String pageProviderName, javax.ws.rs.core.MultivaluedMap<String, String> queryParams) protected Object[]
replaceParameterPattern
(Object[] parameters) Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isAdapter, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
Field Details
-
NXQL
- See Also:
-
QUERY
- See Also:
-
PAGE_SIZE
- See Also:
-
CURRENT_PAGE_INDEX
- See Also:
-
CURRENT_PAGE_OFFSET
In case offset is specified, currentPageIndex is ignored.- Since:
- 9.3
- See Also:
-
MAX_RESULTS
- See Also:
-
SORT_BY
- See Also:
-
SORT_ORDER
- See Also:
-
ORDERED_PARAMS
- See Also:
-
QUICK_FILTERS
- Since:
- 8.4
- See Also:
-
HIGHLIGHT
- Since:
- 9.1
- See Also:
-
CURRENT_USERID_PATTERN
- See Also:
-
CURRENT_REPO_PATTERN
- See Also:
-
SCROLL_PARAM
- See Also:
-
QUERY_LIMIT_PARAM
- See Also:
-
pageProviderService
-
skipAggregates
protected boolean skipAggregates
-
-
Constructor Details
-
QueryExecutor
public QueryExecutor()
-
-
Method Details
-
initExecutor
public void initExecutor() -
getQuery
-
getCurrentPageIndex
-
getCurrentPageOffset
-
getPageSize
-
getMaxResults
-
getSortInfo
-
getSortInfo
-
getQuickFilters
protected List<QuickFilter> getQuickFilters(String providerName, javax.ws.rs.core.MultivaluedMap<String, String> queryParams) - Since:
- 8.4
-
getHighlights
-
getNamedParameters
-
getNamedParameters
-
handleNamedParamVars
-
getParameters
-
replaceParameterPattern
-
getProperties
-
queryByLang
protected DocumentModelList queryByLang(String queryLanguage, javax.ws.rs.core.MultivaluedMap<String, String> queryParams) -
queryByLang
-
queryByPageProvider
protected DocumentModelList queryByPageProvider(String pageProviderName, javax.ws.rs.core.MultivaluedMap<String, String> queryParams) -
queryByLang
protected DocumentModelList queryByLang(String query, Long pageSize, Long currentPageIndex, Long currentPageOffset, Long maxResults, List<SortInfo> sortInfo, Map<String, Serializable> props, DocumentModel searchDocumentModel, Object... parameters) -
queryByPageProvider
protected DocumentModelList queryByPageProvider(String pageProviderName, Long pageSize, Long currentPageIndex, Long currentPageOffset, List<SortInfo> sortInfo, List<QuickFilter> quickFilters, Object[] parameters, Map<String, Serializable> props, DocumentModel searchDocumentModel) - Since:
- 8.4
-
queryByPageProvider
protected DocumentModelList queryByPageProvider(String pageProviderName, Long pageSize, Long currentPageIndex, Long currentPageOffset, List<SortInfo> sortInfo, List<String> highlights, List<QuickFilter> quickFilters, Map<String, Serializable> props, DocumentModel searchDocumentModel, Object... parameters) -
getPageProviderDefinition
-
buildResponse
protected javax.ws.rs.core.Response buildResponse(javax.ws.rs.core.Response.StatusType status, String type, Object object) throws IOException - Throws:
IOException
-
asStringList
-