public class SimpleSearchForm extends ArticleSearchForm
Constructor and Description |
---|
SimpleSearchForm() |
Modifier and Type | Method and Description |
---|---|
protected Date |
getFromDate()
The start date for the search.
|
String |
getSearch12months() |
protected String |
getSearchExpression()
The expression we are searching for.
|
String |
getSearchString()
Gets the string used in the search.
|
void |
resetSearchString(org.apache.struts.action.ActionMapping pMapping,
javax.servlet.http.HttpServletRequest pRequest)
Resets the searchString property.
|
void |
setSearch12months(String pSearch12months) |
void |
setSearchString(String pSearchString)
Sets the string used in the search.
|
void |
validateSearchString(org.apache.struts.action.ActionErrors pActionErrors)
Validates the searchString property.
|
getArticleType, getDescending, getDescendingSort, getExcludeNodes, getExcludeSectionId, getIncludeNodes, getIncludeSectionId, getIncludeSubSections, getMaxRows, getMaxSearchRows, getOptimized, getSearchSubNodes, getSearchType, getSearchTypes, getSortExpression, getSortString, getSortStrings, getStates, getStemType, getStemTypes, getTypes, initParameters, isLive, resetArticleType, resetDescending, resetExcludeSectionId, resetIncludeSectionId, resetIncludeSubSections, resetSortString, setArticleType, setDescending, setExcludeSectionId, setIncludeSectionId, setIncludeSubSections, setMaxRows, setOptimized, setSearchType, setSortString, setStemType, validateExcludeSectionId, validateIncludeSectionId, validateIncludeSubSections, validateMaxRows, validateOptimized
allowReset, containsParameter, getErrorUrl, getPageLength, getPageLengthAsInt, getPageNumber, getPageNumberhAsInt, getParameter, getParameters, getPublicationId, getPublicationIdAsInt, getSearchEngineName, getSearchKey, getSearchKeyAsInt, getSuccessUrl, getToDate, reset, resetErrorUrl, resetParameters, resetSearchEngineName, resetSearchKey, resetTargetUrl, setErrorUrl, setPageLength, setPageNumber, setParameter, setPublicationId, setSearchEngineName, setSearchKey, setSuccessUrl, validatePageLength, validatePageNumber, validatePublicationId
addError, addError, addError, integer, minValue, range, required, validate
protected String getSearchExpression()
SearchForm
The expression we are searching for.
The search expression to use further. The expression is on the format:
(+Hubba +Bubba) AND ("Stein Erik Berget") AND (Hepp Hopp) AND (-Jule -Nissen)
.
getSearchExpression
in class SearchForm
public String getSearchString()
public void setSearchString(String pSearchString)
pSearchString
- The searchString to set.public void resetSearchString(org.apache.struts.action.ActionMapping pMapping, javax.servlet.http.HttpServletRequest pRequest)
pMapping
- The mapping used to select this instance.pRequest
- The request we are processingpublic void validateSearchString(org.apache.struts.action.ActionErrors pActionErrors)
pActionErrors
- the ActionErrors
to add ActionError
to when we
discover validation errorsprotected Date getFromDate()
SearchForm
The start date for the search.
Defaults to the beginning of the current year.
getFromDate
in class SearchForm
public void setSearch12months(String pSearch12months)
public String getSearch12months()
© 1998- 2018 Stibo DX