public class AdvancedSearchForm extends ArticleSearchForm
SearchForm
.Constructor and Description |
---|
AdvancedSearchForm() |
Modifier and Type | Method and Description |
---|---|
String |
getAll()
Gets the all string used in the search.
|
String |
getAtLeastOne()
Gets the one word String used in the search.
|
List |
getDays()
|
String |
getDefaultStartDay()
The day of the month to use as the default value.
|
String |
getDefaultStartMonth()
The month of the year to use as the default value.
|
String |
getDefaultStartYear()
The year to use as the default value.
|
String |
getDefaultToDay()
The day of the month to use as the default value.
|
String |
getDefaultToMonth()
The month of the year to use as the default value.
|
String |
getDefaultToYear()
The year to use as the default value.
|
String |
getExactPhrase()
Gets the phrase string used in the search.
|
protected Date |
getFromDate()
The start date for the search.
|
List |
getMonths()
|
protected String |
getSearchExpression()
The expression we are searching for.
|
String |
getStartDay()
Gets the start day for this search.
|
String |
getStartMonth()
Gets the start month for this search.
|
String |
getStartYear()
Gets the start year for this search.
|
protected Date |
getToDate()
The end date for the search.
|
String |
getToDay()
Gets the to day for this search.
|
String |
getToMonth()
Gets the to month for this search.
|
String |
getToYear()
Gets the to year for this search.
|
String |
getWithout()
Gets the without String used in the search.
|
List |
getYears()
|
int |
getYearsEnd()
The year to end generating a list for
|
int |
getYearsStart()
The year to start generating a list for
|
void |
resetAll(org.apache.struts.action.ActionMapping pMapping,
javax.servlet.http.HttpServletRequest pRequest)
Resets the all property.
|
void |
resetAtLeastOne(org.apache.struts.action.ActionMapping pMapping,
javax.servlet.http.HttpServletRequest pRequest)
Resets the exactPhrase property.
|
void |
resetExactPhrase(org.apache.struts.action.ActionMapping pMapping,
javax.servlet.http.HttpServletRequest pRequest)
Resets the exactPhrase property.
|
void |
resetStartDay(org.apache.struts.action.ActionMapping pMapping,
javax.servlet.http.HttpServletRequest pRequest)
Resets the startDay property.
|
void |
resetStartMonth(org.apache.struts.action.ActionMapping pMapping,
javax.servlet.http.HttpServletRequest pRequest)
Resets the startMonth property.
|
void |
resetStartYear(org.apache.struts.action.ActionMapping pMapping,
javax.servlet.http.HttpServletRequest pRequest)
Resets the startYear property.
|
void |
resetToDay(org.apache.struts.action.ActionMapping pMapping,
javax.servlet.http.HttpServletRequest pRequest)
Resets the toDay property.
|
void |
resetToMonth(org.apache.struts.action.ActionMapping pMapping,
javax.servlet.http.HttpServletRequest pRequest)
Resets the toDay property.
|
void |
resetToYear(org.apache.struts.action.ActionMapping pMapping,
javax.servlet.http.HttpServletRequest pRequest)
Resets the toYear property.
|
void |
resetWithout(org.apache.struts.action.ActionMapping pMapping,
javax.servlet.http.HttpServletRequest pRequest)
Resets the without property.
|
void |
setAll(String pAllWords)
Sets the all string used in the search.
|
void |
setAtLeastOne(String pOneWord)
Sets the one word String used in the search.
|
void |
setExactPhrase(String pPhrase)
Sets the phrase string used in the search.
|
void |
setStartDay(String pStartDay)
Sets the start day for this search.
|
void |
setStartMonth(String pStartMonth)
Sets the start month for this search.
|
void |
setStartYear(String pStartYear) |
void |
setToDay(String pToDay)
Sets the to day for this search.
|
void |
setToMonth(String pToMonth)
Sets the to month for this search.
|
void |
setToYear(String pToYear)
Sets the to year for this search.
|
void |
setWithout(String pNotWord)
Sets the without String used in the search.
|
void |
validateFromDate(org.apache.struts.action.ActionErrors pActionErrors)
Validates the fromDate property.
|
void |
validateSearchExpression(org.apache.struts.action.ActionErrors pActionErrors)
Validates the searchExpression property.
|
void |
validateToDate(org.apache.struts.action.ActionErrors pActionErrors)
Validates the toDate 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, 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 void validateSearchExpression(org.apache.struts.action.ActionErrors pActionErrors)
pActionErrors
- the ActionErrors
to add ActionError
to when we
discover validation errorspublic String getAll()
public void setAll(String pAllWords)
pAllWords
- the all String.public void resetAll(org.apache.struts.action.ActionMapping pMapping, javax.servlet.http.HttpServletRequest pRequest)
pMapping
- The mapping used to select this instance.pRequest
- The request we are processingSearchForm.reset(ActionMapping, HttpServletRequest)
public String getExactPhrase()
public void setExactPhrase(String pPhrase)
pPhrase
- the all String.public void resetExactPhrase(org.apache.struts.action.ActionMapping pMapping, javax.servlet.http.HttpServletRequest pRequest)
pMapping
- The mapping used to select this instance.pRequest
- The request we are processingSearchForm.reset(ActionMapping, HttpServletRequest)
public String getAtLeastOne()
public void setAtLeastOne(String pOneWord)
pOneWord
- The String containg the words.public void resetAtLeastOne(org.apache.struts.action.ActionMapping pMapping, javax.servlet.http.HttpServletRequest pRequest)
pMapping
- The mapping used to select this instance.pRequest
- The request we are processingSearchForm.reset(ActionMapping, HttpServletRequest)
public String getWithout()
public void setWithout(String pNotWord)
pNotWord
- The String containg the words.public void resetWithout(org.apache.struts.action.ActionMapping pMapping, javax.servlet.http.HttpServletRequest pRequest)
pMapping
- The mapping used to select this instance.pRequest
- The request we are processingSearchForm.reset(ActionMapping, HttpServletRequest)
public String getDefaultStartDay()
The day of the month to use as the default value.
Override this method in any subclass to change the default value to something that is more close to what you need.
DEFAULT_START_DAY
public String getStartDay()
public void setStartDay(String pStartDay)
pStartDay
- the day to start searching onpublic void resetStartDay(org.apache.struts.action.ActionMapping pMapping, javax.servlet.http.HttpServletRequest pRequest)
pMapping
- The mapping used to select this instance.pRequest
- The request we are processingSearchForm.reset(ActionMapping, HttpServletRequest)
public String getDefaultStartMonth()
The month of the year to use as the default value.
Override this method in any subclass to change the default value to something that is more close to what you need.
DEFAULT_START_MONTH
public String getStartMonth()
public void setStartMonth(String pStartMonth)
pStartMonth
- month to start searching onpublic void resetStartMonth(org.apache.struts.action.ActionMapping pMapping, javax.servlet.http.HttpServletRequest pRequest)
pMapping
- The mapping used to select this instance.pRequest
- The request we are processingSearchForm.reset(ActionMapping, HttpServletRequest)
public String getDefaultStartYear()
The year to use as the default value.
Override this method in any subclass to change the default value to something that is more close to what you need.
public String getStartYear()
public void setStartYear(String pStartYear)
pStartYear
- public void resetStartYear(org.apache.struts.action.ActionMapping pMapping, javax.servlet.http.HttpServletRequest pRequest)
pMapping
- The mapping used to select this instance.pRequest
- The request we are processingSearchForm.reset(ActionMapping, HttpServletRequest)
protected Date getFromDate()
SearchForm
The start date for the search.
Defaults to the beginning of the current year.
getFromDate
in class SearchForm
public void validateFromDate(org.apache.struts.action.ActionErrors pActionErrors)
pActionErrors
- the ActionErrors
to add ActionError
to when we
discover validation errorspublic String getDefaultToDay()
The day of the month to use as the default value.
Override this method in any subclass to change the default value to something that is more close to what you need.
public String getToDay()
public void setToDay(String pToDay)
pToDay
- the day to stop searching onpublic void resetToDay(org.apache.struts.action.ActionMapping pMapping, javax.servlet.http.HttpServletRequest pRequest)
pMapping
- The mapping used to select this instance.pRequest
- The request we are processingSearchForm.reset(ActionMapping, HttpServletRequest)
public String getDefaultToMonth()
The month of the year to use as the default value.
Override this method in any subclass to change the default value to something that is more close to what you need.
public String getToMonth()
public void setToMonth(String pToMonth)
pToMonth
- month to stop searching onpublic void resetToMonth(org.apache.struts.action.ActionMapping pMapping, javax.servlet.http.HttpServletRequest pRequest)
pMapping
- The mapping used to select this instance.pRequest
- The request we are processingSearchForm.reset(ActionMapping, HttpServletRequest)
public String getDefaultToYear()
The year to use as the default value.
Override this method in any subclass to change the default value to something that is more close to what you need.
public String getToYear()
public void setToYear(String pToYear)
pToYear
- year to stop searching onpublic void resetToYear(org.apache.struts.action.ActionMapping pMapping, javax.servlet.http.HttpServletRequest pRequest)
pMapping
- The mapping used to select this instance.pRequest
- The request we are processingSearchForm.reset(ActionMapping, HttpServletRequest)
protected Date getToDate()
SearchForm
The end date for the search.
Defaults to same time tomorrow.
getToDate
in class SearchForm
public void validateToDate(org.apache.struts.action.ActionErrors pActionErrors)
pActionErrors
- the ActionErrors
to add ActionError
to when we
discover validation errorspublic List getDays()
unmodifiable
List
of LabelValueBeans
.public List getMonths()
unmodifiable
List
of LabelValueBeans
.public int getYearsStart()
The year to start generating a list for
Override this method in a subclass to make it match your need
public int getYearsEnd()
The year to end generating a list for
Override this method in a subclass to make it match your need
public List getYears()
unmodifiable
List
of LabelValueBeans
.© 1998- 2021 Escenic AS