The SearchRequestBean is a helper bean used by the search JSP's. The class has
specific getter and setter methods for each of the form fields in basic search and
advanced search. The JSP application can query the Bean using reflection.
SearchRequestBean can be extended based on the search JSP provider
requirements. Other get/set methods can be added by extending the SearchRequestBean.
Users may also prefer to ignore the SearchRequestBean and implement their own JSP
helpers. Here is the List of Bean properties, description and accessor methods
Basic, Advanced and Browse Form
scope - get/set - Search query string in the basic search, hidden field in advanced search
description - get/set - Corresponds to full description, brief description and title only
mode - get/set - Corresponds to basic, advanced and search mode
browseCategory - get/set - value of the current category. Defaults to ROOT in the JSP
page - get/set - Value of the current page
Advanced Search Form Only
wordsOp - get/set - Corresponds to any/all/exact/passage selection menu in advanced search
wordsVal - get/set - The value for the above operation
nowords - get/set - corresponds to the value for the 'without any words' field
authorOp - get/set - Corresponds to the operation for author
authorVal - get/set - The value for the above operation
titleOp - get/set - Corresponds to the title operator
titleVal - get/set - The value for the above operation
urlOp - get/set - Corresponds to the url opertor
urlVal - get/set - The value for the above operation
since - get/set - The value of the since operator
lmodifiedOp- get/set - Corresponds to the lmodified operator
lmodifiedVal - get/set - The value for the above operation
keywordsOp - get/set - Corresponds to the keywords operator i.e contains/does not contain
keywordsVal - - get/set - The value for the above operation
viewHits - get/set - currently unused in the JSP
Browse Search Form Only
scat - get/set - corresponds to seach all categories radio button on the browse page
Helper method used to return the selection for the description menu
Compares the parameter value with the description property
Parameters: description - string normally passed from the request object
"SELECTED" if the parameter is equal to the description propertyempty string if these are not equal
Gets the description. for example: full,brief,title
Parameters: d - is the description type in the search resultsDescription defaults to an empty string if value is null
setExpiresOp
public void setExpiresOp(String expiresOperator)(Code)
Sets the value of expiresOp
Parameters: expiresOperator - value for expiresOp