public class SelectContentSearchAction extends SearchAction
| Modifier and Type | Field and Description |
|---|---|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver.
|
_contentTypeExtensionPoint, _context, _jsonUtils, _searcherFactory, _searchModelManager, _serverCommHelper, QUERY_ERROR, SEARCH_CONTENTS, SEARCH_MODEL, SEARCH_RESULTSmanagerEMPTY_MAP| Constructor and Description |
|---|
SelectContentSearchAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doSearch(Request request,
SearchUIModel model,
int offset,
int maxResults,
Map<String,Object> jsParameters,
Map<String,Object> contextualParameters)
Do the search and set the results in request attributes.
|
void |
service(ServiceManager serviceManager) |
act, contextualize, getMaxResults, getOffset, getSearchUIModel, getSortenableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected AmetysObjectResolver _resolver
public SelectContentSearchAction()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class SearchActionServiceExceptionprotected void doSearch(Request request, SearchUIModel model, int offset, int maxResults, Map<String,Object> jsParameters, Map<String,Object> contextualParameters) throws Exception
SearchActiondoSearch in class SearchActionrequest - The request. The results or contents' id have to be set in request attributesmodel - The search UI modeloffset - The index of searchmaxResults - The max resultsjsParameters - The JS parameterscontextualParameters - The contextual parametersException - if the search failed