Class QueryObject
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.restapi.server.jaxrs.QueryObject
-
public class QueryObject extends AbstractResource<ResourceTypeImpl>
- Since:
- 6.0 Search endpoint to perform queries on the repository through rest api.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QueryObject.LangParams
static class
QueryObject.QueryParams
-
Field Summary
Fields Modifier and Type Field Description static String
CURRENT_PAGE_INDEX
static String
CURRENT_REPO_PATTERN
static String
CURRENT_USERID_PATTERN
protected EnumMap<QueryObject.LangParams,String>
langPathMap
static String
MAX_RESULTS
static String
NXQL
static String
ORDERED_PARAMS
static String
PAGE_SIZE
protected PageProviderService
pageProviderService
static String
PATH
static String
QUERY
protected EnumMap<QueryObject.QueryParams,String>
queryParametersMap
static String
QUICK_FILTERS
static String
SORT_BY
static String
SORT_ORDER
-
Constructor Summary
Constructors Constructor Description QueryObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
doQuery(javax.ws.rs.core.UriInfo uriInfo)
Perform query on the repository.Object
doSpecificQuery(javax.ws.rs.core.UriInfo uriInfo, String langOrProviderName)
Perform query on the repository in NXQL or specific pageprovider nameprotected DocumentModelList
getQuery(javax.ws.rs.core.UriInfo uriInfo, String langOrProviderName)
protected DocumentModel
getSearchDocumentModel(CoreSession session, PageProviderService pps, String providerName, Properties namedParameters)
Deprecated.since 11.1, usePageProviderHelper.getSearchDocumentModel(CoreSession, PageProviderService, String, Map)
insteadvoid
initialize(Object... args)
-
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, isAdapter, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
-
-
-
Field Detail
-
PATH
public static final String PATH
- See Also:
- Constant Field Values
-
NXQL
public static final String NXQL
- See Also:
- Constant Field Values
-
QUERY
public static final String QUERY
- See Also:
- Constant Field Values
-
PAGE_SIZE
public static final String PAGE_SIZE
- See Also:
- Constant Field Values
-
CURRENT_PAGE_INDEX
public static final String CURRENT_PAGE_INDEX
- See Also:
- Constant Field Values
-
MAX_RESULTS
public static final String MAX_RESULTS
- See Also:
- Constant Field Values
-
SORT_BY
public static final String SORT_BY
- See Also:
- Constant Field Values
-
SORT_ORDER
public static final String SORT_ORDER
- See Also:
- Constant Field Values
-
ORDERED_PARAMS
public static final String ORDERED_PARAMS
- See Also:
- Constant Field Values
-
CURRENT_USERID_PATTERN
public static final String CURRENT_USERID_PATTERN
- See Also:
- Constant Field Values
-
CURRENT_REPO_PATTERN
public static final String CURRENT_REPO_PATTERN
- See Also:
- Constant Field Values
-
QUICK_FILTERS
public static final String QUICK_FILTERS
- Since:
- 8.4
- See Also:
- Constant Field Values
-
queryParametersMap
protected EnumMap<QueryObject.QueryParams,String> queryParametersMap
-
langPathMap
protected EnumMap<QueryObject.LangParams,String> langPathMap
-
pageProviderService
protected PageProviderService pageProviderService
-
-
Method Detail
-
initialize
public void initialize(Object... args)
- Overrides:
initialize
in classAbstractResource<ResourceTypeImpl>
-
getQuery
protected DocumentModelList getQuery(javax.ws.rs.core.UriInfo uriInfo, String langOrProviderName)
-
getSearchDocumentModel
@Deprecated(since="11.1") protected DocumentModel getSearchDocumentModel(CoreSession session, PageProviderService pps, String providerName, Properties namedParameters)
Deprecated.since 11.1, usePageProviderHelper.getSearchDocumentModel(CoreSession, PageProviderService, String, Map)
instead
-
doQuery
public Object doQuery(@Context javax.ws.rs.core.UriInfo uriInfo)
Perform query on the repository. By default in NXQL.- Parameters:
uriInfo
- Query parameters- Returns:
- Document Listing
-
doSpecificQuery
public Object doSpecificQuery(@Context javax.ws.rs.core.UriInfo uriInfo, String langOrProviderName)
Perform query on the repository in NXQL or specific pageprovider name- Parameters:
uriInfo
- Query parameterslangOrProviderName
- NXQL or specific provider name- Returns:
- Document Listing
-
-