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, HIGHLIGHT, 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, getHighlights, getMaxResults, getNamedParameters, getNamedParameters, getPageProviderDefinition, getPageSize, getParameters, getProperties, getQuery, getQuickFilters, getSearchDocumentModel, getSortInfo, getSortInfo, handleNamedParamVars, initExecutor, queryByLang, queryByLang, queryByPageProvider, queryByPageProvider, queryByPageProvider, replaceParameterPattern
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
public 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
RestOperationException
public Object doQueryByPageProvider(@Context javax.ws.rs.core.UriInfo uriInfo, String pageProviderName) throws RestOperationException
RestOperationException
public Object doGetPageProviderDefinition(String pageProviderName) throws RestOperationException, IOException
RestOperationException
IOException
public List<SavedSearch> doGetSavedSearches(@Context javax.ws.rs.core.UriInfo uriInfo) throws RestOperationException
RestOperationException
public javax.ws.rs.core.Response doSaveSearch(SavedSearchRequest request) throws RestOperationException
RestOperationException
public javax.ws.rs.core.Response doGetSavedSearch(String id) throws RestOperationException
RestOperationException
public javax.ws.rs.core.Response doUpdateSavedSearch(SavedSearchRequest request, String id) throws RestOperationException
RestOperationException
public javax.ws.rs.core.Response doDeleteSavedSearch(String id) throws RestOperationException
RestOperationException
public Object doExecuteSavedSearch(String id, @Context javax.ws.rs.core.UriInfo uriInfo) throws RestOperationException
RestOperationException
protected void setSaveSearchParams(Map<String,String> params, SavedSearch search) throws IOException
IOException
protected DocumentModelList executeSavedSearch(SavedSearch search, javax.ws.rs.core.MultivaluedMap<String,String> params) throws RestOperationException
RestOperationException
protected DocumentModelList querySavedSearchByLang(String queryLanguage, String query, Long pageSize, Long currentPageIndex, Long maxResults, String orderedParams, Map<String,String> namedParameters, List<SortInfo> sortInfo) throws RestOperationException
RestOperationException
protected DocumentModelList querySavedSearchByPageProvider(String pageProviderName, Long pageSize, Long currentPageIndex, String orderedParams, Map<String,String> namedParameters, List<SortInfo> sortInfo, List<QuickFilter> quickFilters, DocumentModel searchDocumentModel) throws RestOperationException
RestOperationException
Copyright © 2017 Nuxeo. All rights reserved.