|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.portal.search.providers.SearchRequestBean
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
Search, Serialized Form| Constructor Summary | |
SearchRequestBean()
|
|
| Method Summary | |
String |
authorOpSelection(String op)
Compares the input parameter with the authorOp property |
String |
DescSelectionAttribute(String attr)
Helper method used to return the selection for the description menu Compares the parameter value with the description property |
String |
expiresOpSelection(String op)
|
String |
getAuthorOp()
Gets the value of authorOp |
String |
getAuthorVal()
Gets the value of authorVal |
String |
getBrowseCategory()
Method is used for category browsing and category searching |
String |
getDescription()
Gets the description |
String |
getExpiresOp()
Gets the value of expiresOp |
String |
getExpiresVal()
Gets the value of expiresVal |
String |
getKeywordsOp()
Gets the value of keywordsOp |
String |
getKeywordsVal()
Gets the value of keywordsVal |
String |
getLmodifiedOp()
Gets the lmodifiedOp property |
String |
getLmodifiedVal()
Gets the lmodifiedVal property |
String |
getMode()
Gets the search mode |
String |
getNowords()
Gets the value of nowords |
int |
getPage()
Gets the current page value |
String |
getScat()
Get the value of scat i.e search all category radio button |
String |
getScope()
Gets the query string |
String |
getSince()
Gets the value of the since property |
String |
getTitleOp()
Gets the value of titleOp |
String |
getTitleVal()
Gets the title value |
String |
getUrlOp()
Gets the value of urlOp |
String |
getUrlVal()
Gets the value of urlVal |
int |
getViewHits()
Gets the viewHits value |
String |
getWordsOp()
Get the value of wordsOp |
String |
getWordsVal()
Gets the value of wordsVal |
String |
keywordsOpSelection(String op)
|
String |
lmodifiedOpSelection(String op)
|
void |
SearchRequestBean()
Public Constructor |
void |
setAuthorOp(String authorOperator)
Sets the value of authorOp |
void |
setAuthorVal(String authorValue)
Sets the value of authorVal |
void |
setBrowseCategory(String bc)
Sets the current category |
void |
setDescription(String d)
Gets the description. |
void |
setExpiresOp(String expiresOperator)
Sets the value of expiresOp |
void |
setExpiresVal(String expires)
Sets the expiresVal property |
void |
setKeywordsOp(String keywordsOperator)
Sets the value of keywordsOp |
void |
setKeywordsVal(String keywords)
Sets the value of keywordsVal |
void |
setLmodifiedOp(String lmodifiedOperator)
Sets the lmodifiedOp property |
void |
setLmodifiedVal(String lmodified)
Sets the lmodifiedVal property |
void |
setMode(String m)
Sets the search mode |
void |
setNowords(String nowords)
Sets the value of nowords |
void |
setPage(int p)
Sets the current page value |
void |
setScat(String cat)
Set the value of the scat radio button |
void |
setScope(String s)
Sets the query string value |
void |
setSince(String lmodified)
Sets the since property |
void |
setTitleOp(String titleOperator)
Sets the value of titleOp |
void |
setTitleVal(String title)
Sets the titleVal |
void |
setUrlOp(String urlOperator)
Sets the value of urlOp |
void |
setUrlVal(String url)
Sets the value of urlVal |
void |
setViewHits(int vhits)
Sets the viewHits value |
void |
setWordsOp(String wordsOperator)
Sets the value of wordsOp |
void |
setWordsVal(String whichwords)
Sets the value of wordsVal |
String |
sinceSelection(String op)
|
String |
titleOpSelection(String op)
|
String |
urlOpSelection(String op)
|
String |
viewhitsSelection(int op)
|
String |
wordsOpSelection(String op)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SearchRequestBean()
| Method Detail |
public void SearchRequestBean()
public String getScope()
public void setScope(String s)
scope - is the query stringpublic String getDescription()
public void setDescription(String d)
d - is the description type in the search results
Description defaults to an empty string if value is nullpublic String getMode()
public void setMode(String m)
m - value of the current search mode.
possible values can be 'adv' or 'basic'public void setPage(int p)
p - value of the current pagepublic int getPage()
public int getViewHits()
public void setViewHits(int vhits)
vhits - The number of results to be displayed on the pagepublic String DescSelectionAttribute(String attr)
description - string normally passed from the request object
public String getBrowseCategory()
public void setBrowseCategory(String bc)
bc - is the current category, The category is set only if the current
category value is not an empty string.public String getScat()
public void setScat(String cat)
cat - is the value of the search all categories radio buttonpublic String getWordsOp()
public void setWordsOp(String wordsOperator)
wordsOperator - value for the words operationpublic String wordsOpSelection(String op)
op - value that is compared with the value of wordsOppublic String getWordsVal()
public void setWordsVal(String whichwords)
whichwords - value of the words propertypublic String getNowords()
public void setNowords(String nowords)
nowords - value of the nowords propertypublic String getAuthorOp()
public void setAuthorOp(String authorOperator)
authorOperator - value of the author propertypublic String getAuthorVal()
public String authorOpSelection(String op)
op - is compared to the author operatorpublic void setAuthorVal(String authorValue)
authorValue - value for the authorVal propertypublic void setUrlOp(String urlOperator)
urlOperator - value for the urlOppublic String getUrlOp()
public String urlOpSelection(String op)
op - is compared to the url operatorpublic String getUrlVal()
public void setUrlVal(String url)
url - value for the urlVal propertypublic void setTitleOp(String titleOperator)
titleOperator - value for the titleOppublic String getTitleOp()
public String titleOpSelection(String op)
op - is compared to the title operatorpublic String getTitleVal()
public void setTitleVal(String title)
The - value for the titleVal propertypublic void setKeywordsOp(String keywordsOperator)
The - value of the keywordsOp propertypublic String getKeywordsOp()
public String keywordsOpSelection(String op)
op - is compared to the keywordsOppublic String getKeywordsVal()
public void setKeywordsVal(String keywords)
keywords - value for the keywordsValpublic void setExpiresOp(String expiresOperator)
expiresOperator - value for expiresOppublic String getExpiresOp()
public String expiresOpSelection(String op)
op - is compared to the expires operatorpublic String getExpiresVal()
public void setExpiresVal(String expires)
expires - value for the expires propertypublic void setLmodifiedOp(String lmodifiedOperator)
lmodifiedOperator - value for the lmodified operatorpublic String getLmodifiedOp()
public String lmodifiedOpSelection(String op)
op - is compared to the lmodified operatorpublic String getSince()
public void setSince(String lmodified)
lmodified - value for the since propertypublic String sinceSelection(String op)
op - is compared to the since propertypublic String getLmodifiedVal()
public void setLmodifiedVal(String lmodified)
lmodified - value of the lmodified propertypublic String viewhitsSelection(int op)
op - is compared to the viewhits property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||