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, skipAggregates, SORT_BY, SORT_ORDER
Constructor and Description |
---|
SearchObject() |
Modifier and Type | Method and Description |
---|---|
Object |
doBulkActionByLang(javax.ws.rs.core.UriInfo uriInfo) |
Object |
doBulkActionByLang(javax.ws.rs.core.UriInfo uriInfo,
String queryLanguage)
Deprecated.
since 10.3, use
doBulkActionByLang(UriInfo) instead. |
Object |
doBulkActionByPageProvider(String pageProviderName,
javax.ws.rs.core.UriInfo uriInfo) |
Object |
doBulkActionBySavedSearch(String id,
javax.ws.rs.core.UriInfo uriInfo) |
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) |
Object |
doQueryByLang(javax.ws.rs.core.UriInfo uriInfo,
String queryLanguage)
Deprecated.
since 10.3, use
doQueryByLang(UriInfo) instead. |
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) |
protected String |
getQueryString(String providerName,
javax.ws.rs.core.MultivaluedMap<String,String> parameters)
Retrieves the query string from the page provider and/or the query parameters.
|
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) |
asStringList, buildResponse, getCurrentPageIndex, getCurrentPageOffset, getHighlights, getMaxResults, getNamedParameters, getNamedParameters, getPageProviderDefinition, getPageSize, getParameters, getProperties, getQuery, getQuickFilters, getSortInfo, getSortInfo, handleNamedParamVars, initExecutor, queryByLang, 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>
@Deprecated public Object doQueryByLang(@Context javax.ws.rs.core.UriInfo uriInfo, String queryLanguage)
doQueryByLang(UriInfo)
instead.public Object doQueryByLang(@Context javax.ws.rs.core.UriInfo uriInfo)
@Deprecated public Object doBulkActionByLang(@Context javax.ws.rs.core.UriInfo uriInfo, String queryLanguage)
doBulkActionByLang(UriInfo)
instead.public Object doBulkActionByLang(@Context javax.ws.rs.core.UriInfo uriInfo)
public Object doQueryByPageProvider(@Context javax.ws.rs.core.UriInfo uriInfo, String pageProviderName)
public Object doGetPageProviderDefinition(String pageProviderName) throws IOException
IOException
public Object doBulkActionByPageProvider(String pageProviderName, @Context javax.ws.rs.core.UriInfo uriInfo)
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 Object doBulkActionBySavedSearch(String id, @Context javax.ws.rs.core.UriInfo uriInfo)
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)
protected String getQueryString(String providerName, javax.ws.rs.core.MultivaluedMap<String,String> parameters)
providerName
- the page provider nameparameters
- the parametersCopyright © 2018 Nuxeo. All rights reserved.