Class SearchComponentArguments
java.lang.Object
org.ametys.web.frontoffice.search.requesttime.SearchComponentArguments
Wrapper of arguments passed to 
SearchComponent#execute- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedSearchComponentArguments(ContentHandler contentHandler, Parameters generatorParameters, SearchServiceInstance serviceInstance, SearchService service, SearchUserInputs userInputs, Request request, Response response, Pagination pagination, Site currentSite, Page currentPage, String currentLang, boolean launchSearch, SearcherFactory.Searcher searcher, Logger logger, SearchServiceDebugModeHelper.DebugMode debugMode) Constructor
- 
Method SummaryModifier and TypeMethodDescriptionGets the content handlerGets the current langGets the current pageGets the current siteGets the debug modeGets the enumerated results of the search.Gets the parameters of the generator, allowing to change some behaviors depending on the URL the request comes frombooleanisDebug()Returnstrueif debug is activatedbooleanReturnstrueif the search has to be launchlogger()Gets the loggerGets the paginationrequest()Gets the current requestresponse()Gets the responseresults()Gets the results of the search.searcher()Gets the searcherservice()Gets the search serviceGets the search service instancevoidsetEnumeratedResults(SearchResults<AmetysObject> enumeratedResults) Sets the enumerated resultsvoidsetResults(SearchResults<AmetysObject> results) Sets the resultsvoidupdateUserInputs(SearchUserInputs userInputs) Update the user inputsGets the user inputs
- 
Constructor Details- 
SearchComponentArgumentsprotected SearchComponentArguments(ContentHandler contentHandler, Parameters generatorParameters, SearchServiceInstance serviceInstance, SearchService service, SearchUserInputs userInputs, Request request, Response response, Pagination pagination, Site currentSite, Page currentPage, String currentLang, boolean launchSearch, SearcherFactory.Searcher searcher, Logger logger, SearchServiceDebugModeHelper.DebugMode debugMode) Constructor- Parameters:
- contentHandler- the content handler
- generatorParameters- the parameters of the generator
- serviceInstance- the search service instance
- service- the search service
- userInputs- the user inputs
- request- the current request
- response- the response
- pagination- the pagination
- currentSite- the current site
- currentPage- the current page
- currentLang- the current lang
- launchSearch-- trueif the search has to be launch
- searcher- the searcher
- logger- the logger
- debugMode- the debug mode. Can be null
 
 
- 
- 
Method Details- 
contentHandlerGets the content handler- Returns:
- the content handler
 
- 
generatorParametersGets the parameters of the generator, allowing to change some behaviors depending on the URL the request comes from- Returns:
- the parameters of the generator
 
- 
serviceInstanceGets the search service instance- Returns:
- the search service instance
 
- 
serviceGets the search service- Returns:
- the search service
 
- 
userInputsGets the user inputs- Returns:
- the user inputs
 
- 
updateUserInputsUpdate the user inputs- Parameters:
- userInputs- the user inputs
 
- 
requestGets the current request- Returns:
- the current request
 
- 
responseGets the response- Returns:
- the response
 
- 
paginationGets the pagination- Returns:
- the pagination
 
- 
currentSiteGets the current site- Returns:
- the current site
 
- 
currentPageGets the current page- Returns:
- the current page
 
- 
currentLangGets the current lang- Returns:
- the current lang
 
- 
launchSearchReturnstrueif the search has to be launch- Returns:
- trueif the search has to be launch
 
- 
setResultsSets the results- Parameters:
- results- the results
 
- 
resultsGets the results of the search. Can be empty if search has not been executed yet- Returns:
- the results of the search, or an empty optional if search has not been executed yet
 
- 
setEnumeratedResultsSets the enumerated results- Parameters:
- enumeratedResults- the enumerated results
 
- 
enumeratedResultsGets the enumerated results of the search. Can be empty if enumerated search has not been executed yet or computeCriteriaCounts parameter isfalse- Returns:
- the enumerated results of the search, or an empty optional if enumerated search has not been executed yet or computeCriteriaCounts parameter is false
 
- 
searcherGets the searcher- Returns:
- the searcher
 
- 
loggerGets the logger- Returns:
- the logger
 
- 
isDebugReturnstrueif debug is activated- Returns:
- trueif debug is activated
 
- 
debugModeGets the debug mode- Returns:
- the debug mode
 
 
-