public class SearchComponentArguments extends Object
SearchComponent#execute
Modifier and Type | Field and Description |
---|---|
private ContentHandler |
_contentHandler |
private String |
_currentLang |
private Page |
_currentPage |
private Site |
_currentSite |
private SearchServiceDebugModeHelper.DebugMode |
_debugMode |
private Parameters |
_generatorParameters |
private boolean |
_launchSearch |
private Logger |
_logger |
private Request |
_request |
private Response |
_response |
private int |
_resultPageIndex |
private SearchResults<AmetysObject> |
_results |
private int |
_resultsPerPage |
private SearcherFactory.Searcher |
_searcher |
private SearchService |
_service |
private SearchServiceInstance |
_serviceInstance |
private int |
_start |
private SearchUserInputs |
_userInputs |
Constructor and Description |
---|
SearchComponentArguments(ContentHandler contentHandler,
Parameters generatorParameters,
SearchServiceInstance serviceInstance,
SearchService service,
SearchUserInputs userInputs,
Request request,
Response response,
int resultPageIndex,
int start,
int resultsPerPage,
Site currentSite,
Page currentPage,
String currentLang,
boolean launchSearch,
SearcherFactory.Searcher searcher,
Logger logger,
SearchServiceDebugModeHelper.DebugMode debugMode) |
Modifier and Type | Method and Description |
---|---|
ContentHandler |
contentHandler()
Gets the content handler
|
String |
currentLang()
Gets the current lang
|
Page |
currentPage()
Gets the current page
|
Site |
currentSite()
Gets the current site
|
Optional<SearchServiceDebugModeHelper.DebugMode> |
debugMode()
Gets the debug mode
|
Parameters |
generatorParameters()
Gets the parameters of the generator, allowing to change some behaviors depending on the URL the request comes from
|
boolean |
isDebug()
Returns
true if debug is activated |
boolean |
launchSearch()
Returns
true if the search has to be launch |
Logger |
logger()
Gets the logger
|
Request |
request()
Gets the current request
|
Response |
response()
Gets the response
|
int |
resultPageIndex()
Gets the result page index
|
Optional<SearchResults<AmetysObject>> |
results()
Gets the results of the search.
|
int |
resultsPerPage()
Gets the number of results per page
|
SearcherFactory.Searcher |
searcher()
Gets the searcher
|
SearchService |
service()
Gets the search service
|
SearchServiceInstance |
serviceInstance()
Gets the search service instance
|
void |
setResults(SearchResults<AmetysObject> results)
Sets the results
|
int |
start()
Gets the start index (i.e.
|
SearchUserInputs |
userInputs()
Gets the user inputs
|
private ContentHandler _contentHandler
private Parameters _generatorParameters
private SearchServiceInstance _serviceInstance
private SearchService _service
private SearchUserInputs _userInputs
private int _resultPageIndex
private int _start
private int _resultsPerPage
private Site _currentSite
private Page _currentPage
private String _currentLang
private boolean _launchSearch
private SearchResults<AmetysObject> _results
private SearcherFactory.Searcher _searcher
private SearchServiceDebugModeHelper.DebugMode _debugMode
SearchComponentArguments(ContentHandler contentHandler, Parameters generatorParameters, SearchServiceInstance serviceInstance, SearchService service, SearchUserInputs userInputs, Request request, Response response, int resultPageIndex, int start, int resultsPerPage, Site currentSite, Page currentPage, String currentLang, boolean launchSearch, SearcherFactory.Searcher searcher, Logger logger, SearchServiceDebugModeHelper.DebugMode debugMode)
public ContentHandler contentHandler()
public Parameters generatorParameters()
public SearchServiceInstance serviceInstance()
public SearchService service()
public SearchUserInputs userInputs()
public int resultPageIndex()
public int start()
public int resultsPerPage()
public Site currentSite()
public Page currentPage()
public String currentLang()
public boolean launchSearch()
true
if the search has to be launchtrue
if the search has to be launchpublic void setResults(SearchResults<AmetysObject> results)
results
- the resultspublic Optional<SearchResults<AmetysObject>> results()
public SearcherFactory.Searcher searcher()
public boolean isDebug()
true
if debug is activatedtrue
if debug is activatedpublic Optional<SearchServiceDebugModeHelper.DebugMode> debugMode()