public class SearchTermAction extends SearchAction
Modifier and Type | Field and Description |
---|---|
private AmetysObjectResolver |
_resolver |
private ThesaurusDAO |
_thesaurusDAO |
_contentTypeExtensionPoint, _context, _getQueryFromJSONHelper, _queryBuilder, _searcherFactory, _searchModelManager, _serverCommHelper, QUERY_ERROR, SEARCH_CONTENTS, SEARCH_LOCALE, SEARCH_MODEL, SEARCH_RESULTS
manager
EMPTY_MAP
Constructor and Description |
---|
SearchTermAction() |
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.
|
protected MicroThesaurus |
getMicrothesaurus(Map<String,Object> jsParameters)
Get the parent microthesaurus
|
protected String |
getXPathQuery(Map<String,Object> jsParameters,
boolean excludeSubContents)
Get the query to execute
|
void |
service(ServiceManager smanager) |
act, contextualize, getMaxResults, getOffset, getSearchUIModel, getSort
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private ThesaurusDAO _thesaurusDAO
private AmetysObjectResolver _resolver
public SearchTermAction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class SearchAction
ServiceException
protected void doSearch(Request request, SearchUIModel model, int offset, int maxResults, Map<String,Object> jsParameters, Map<String,Object> contextualParameters) throws Exception
SearchAction
doSearch
in class SearchAction
request
- 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 failedprotected String getXPathQuery(Map<String,Object> jsParameters, boolean excludeSubContents)
jsParameters
- The JS parametersexcludeSubContents
- true to exclude sub-contentsprotected MicroThesaurus getMicrothesaurus(Map<String,Object> jsParameters)
jsParameters
- The JS parameters