public class SearchObject extends QueryExecutor
QueryExecutor.LangParams, QueryExecutor.QueryParams| Modifier and Type | Field and Description |
|---|---|
static String |
PAGE_PROVIDER_NAME_PARAM |
static String |
SAVED_SEARCHES_PAGE_PROVIDER |
static String |
SAVED_SEARCHES_PAGE_PROVIDER_PARAMS |
protected SavedSearchService |
savedSearchService |
CURRENT_PAGE_INDEX, CURRENT_REPO_PATTERN, CURRENT_USERID_PATTERN, MAX_RESULTS, NXQL, ORDERED_PARAMS, PAGE_SIZE, pageProviderService, QUERY, QUICK_FILTERS, SORT_BY, SORT_ORDER| Constructor and Description |
|---|
SearchObject() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
doDeleteSavedSearch(String id) |
Object |
doExecuteSavedSearch(String id,
javax.ws.rs.core.UriInfo uriInfo) |
Object |
doGetPageProviderDefinition(String pageProviderName) |
javax.ws.rs.core.Response |
doGetSavedSearch(String id) |
List<SavedSearch> |
doGetSavedSearches(javax.ws.rs.core.UriInfo uriInfo) |
Object |
doQueryByLang(javax.ws.rs.core.UriInfo uriInfo,
String queryLanguage) |
Object |
doQueryByPageProvider(javax.ws.rs.core.UriInfo uriInfo,
String pageProviderName) |
javax.ws.rs.core.Response |
doSaveSearch(SavedSearchRequest request) |
javax.ws.rs.core.Response |
doUpdateSavedSearch(SavedSearchRequest request,
String id) |
protected DocumentModelList |
executeSavedSearch(SavedSearch search,
javax.ws.rs.core.MultivaluedMap<String,String> params) |
void |
initialize(Object... args) |
protected DocumentModelList |
querySavedSearchByLang(String queryLanguage,
String query,
Long pageSize,
Long currentPageIndex,
Long maxResults,
String orderedParams,
Map<String,String> namedParameters,
List<SortInfo> sortInfo) |
protected DocumentModelList |
querySavedSearchByPageProvider(String pageProviderName,
Long pageSize,
Long currentPageIndex,
String orderedParams,
Map<String,String> namedParameters,
List<SortInfo> sortInfo,
List<QuickFilter> quickFilters,
DocumentModel searchDocumentModel) |
protected void |
setSaveSearchParams(Map<String,String> params,
SavedSearch search) |
buildResponse, getCurrentPageIndex, getMaxResults, getNamedParameters, getNamedParameters, getPageProviderDefinition, getPageSize, getParameters, getProperties, getQuery, getQuickFilters, getSearchDocumentModel, getSortInfo, getSortInfo, handleNamedParamVars, initExecutor, queryByLang, queryByLang, queryByPageProvider, queryByPageProvider, replaceParameterPatterncheckGuard, 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, toStringpublic static final String SAVED_SEARCHES_PAGE_PROVIDER
public static final String SAVED_SEARCHES_PAGE_PROVIDER_PARAMS
public static final String PAGE_PROVIDER_NAME_PARAM
protected SavedSearchService savedSearchService
public SearchObject()
public void initialize(Object... args)
initialize in class AbstractResource<ResourceTypeImpl>public Object doQueryByLang(@Context javax.ws.rs.core.UriInfo uriInfo, String queryLanguage) throws RestOperationException
RestOperationExceptionpublic Object doQueryByPageProvider(@Context javax.ws.rs.core.UriInfo uriInfo, String pageProviderName) throws RestOperationException
RestOperationExceptionpublic Object doGetPageProviderDefinition(String pageProviderName) throws RestOperationException, IOException
RestOperationExceptionIOExceptionpublic List<SavedSearch> doGetSavedSearches(@Context javax.ws.rs.core.UriInfo uriInfo) throws RestOperationException
RestOperationExceptionpublic javax.ws.rs.core.Response doSaveSearch(SavedSearchRequest request) throws RestOperationException
RestOperationExceptionpublic javax.ws.rs.core.Response doGetSavedSearch(String id) throws RestOperationException
RestOperationExceptionpublic javax.ws.rs.core.Response doUpdateSavedSearch(SavedSearchRequest request, String id) throws RestOperationException
RestOperationExceptionpublic javax.ws.rs.core.Response doDeleteSavedSearch(String id) throws RestOperationException
RestOperationExceptionpublic Object doExecuteSavedSearch(String id, @Context javax.ws.rs.core.UriInfo uriInfo) throws RestOperationException
RestOperationExceptionprotected void setSaveSearchParams(Map<String,String> params, SavedSearch search) throws IOException
IOExceptionprotected DocumentModelList executeSavedSearch(SavedSearch search, javax.ws.rs.core.MultivaluedMap<String,String> params) throws RestOperationException
RestOperationExceptionprotected DocumentModelList querySavedSearchByLang(String queryLanguage, String query, Long pageSize, Long currentPageIndex, Long maxResults, String orderedParams, Map<String,String> namedParameters, List<SortInfo> sortInfo) throws RestOperationException
RestOperationExceptionprotected DocumentModelList querySavedSearchByPageProvider(String pageProviderName, Long pageSize, Long currentPageIndex, String orderedParams, Map<String,String> namedParameters, List<SortInfo> sortInfo, List<QuickFilter> quickFilters, DocumentModel searchDocumentModel) throws RestOperationException
RestOperationExceptionCopyright © 2016 Nuxeo SA. All rights reserved.