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 classQueryObject.LangParamsstatic classQueryObject.QueryParams
-
Field Summary
Fields Modifier and Type Field Description static StringCURRENT_PAGE_INDEXstatic StringCURRENT_REPO_PATTERNstatic StringCURRENT_USERID_PATTERNprotected EnumMap<QueryObject.LangParams,String>langPathMapstatic StringMAX_RESULTSstatic StringNXQLstatic StringORDERED_PARAMSstatic StringPAGE_SIZEprotected PageProviderServicepageProviderServicestatic StringPATHstatic StringQUERYprotected EnumMap<QueryObject.QueryParams,String>queryParametersMapstatic StringQUICK_FILTERSstatic StringSORT_BYstatic StringSORT_ORDER
-
Constructor Summary
Constructors Constructor Description QueryObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectdoQuery(javax.ws.rs.core.UriInfo uriInfo)Perform query on the repository.ObjectdoSpecificQuery(javax.ws.rs.core.UriInfo uriInfo, String langOrProviderName)Perform query on the repository in NXQL or specific pageprovider nameprotected DocumentModelListgetQuery(javax.ws.rs.core.UriInfo uriInfo, String langOrProviderName)protected DocumentModelgetSearchDocumentModel(CoreSession session, PageProviderService pps, String providerName, Properties namedParameters)Deprecated.since 11.1, usePageProviderHelper.getSearchDocumentModel(CoreSession, PageProviderService, String, Map)insteadvoidinitialize(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:
initializein 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
-
-