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_PAGE_OFFSET, 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 currentPageOffset,
Long maxResults,
String orderedParams,
Map<String,String> namedParameters,
List<SortInfo> sortInfo) |
protected DocumentModelList |
querySavedSearchByPageProvider(String pageProviderName,
Long pageSize,
Long currentPageIndex,
Long currentPageOffset,
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, getCurrentPageOffset, 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)
public Object doQueryByPageProvider(@Context javax.ws.rs.core.UriInfo uriInfo, String pageProviderName)
public Object doGetPageProviderDefinition(String pageProviderName) throws IOException
IOException
public List<SavedSearch> doGetSavedSearches(@Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response doSaveSearch(SavedSearchRequest request)
public javax.ws.rs.core.Response doGetSavedSearch(String id)
public javax.ws.rs.core.Response doUpdateSavedSearch(SavedSearchRequest request, String id)
public javax.ws.rs.core.Response doDeleteSavedSearch(String id)
public Object doExecuteSavedSearch(String id, @Context javax.ws.rs.core.UriInfo uriInfo)
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)
protected DocumentModelList querySavedSearchByLang(String queryLanguage, String query, Long pageSize, Long currentPageIndex, Long currentPageOffset, Long maxResults, String orderedParams, Map<String,String> namedParameters, List<SortInfo> sortInfo)
protected DocumentModelList querySavedSearchByPageProvider(String pageProviderName, Long pageSize, Long currentPageIndex, Long currentPageOffset, String orderedParams, Map<String,String> namedParameters, List<SortInfo> sortInfo, List<QuickFilter> quickFilters, DocumentModel searchDocumentModel)
Copyright © 2018 Nuxeo. All rights reserved.