|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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 FormConstructor Summary | |
SearchRequestBean()
|
Method Summary | |
java.lang.String |
authorOpSelection(java.lang.String op)
Compares the input parameter with the authorOp property |
java.lang.String |
databaseSelection(java.lang.String d)
Helper method form field search within discussions value is saved accross requests |
java.lang.String |
DescSelectionAttribute(java.lang.String attr)
Helper method used to return the selection for the description menu Compares the parameter value with the description property |
java.lang.String |
expiresOpSelection(java.lang.String op)
|
java.lang.String |
getAuthorOp()
Gets the value of authorOp |
java.lang.String |
getAuthorVal()
Gets the value of authorVal |
java.lang.String |
getBrowseCategory()
Method is used for category browsing and category searching |
java.lang.String |
getDatabase()
returns database values in a comma separated string |
java.lang.String |
getDescription()
Gets the description |
java.lang.String |
getExpiresOp()
Gets the value of expiresOp |
java.lang.String |
getExpiresVal()
Gets the value of expiresVal |
java.lang.String |
getKeywordsOp()
Gets the value of keywordsOp |
java.lang.String |
getKeywordsVal()
Gets the value of keywordsVal |
java.lang.String |
getLmodifiedOp()
Gets the lmodifiedOp property |
java.lang.String |
getLmodifiedVal()
Gets the lmodifiedVal property |
java.lang.String |
getMode()
Gets the search mode |
java.lang.String |
getNowords()
Gets the value of nowords |
int |
getPage()
Gets the current page value |
java.lang.String |
getScat()
Get the value of scat i.e search all category radio button |
java.lang.String |
getScope()
Gets the query string |
java.lang.String |
getSince()
Gets the value of the since property |
java.lang.String |
getTitleOp()
Gets the value of titleOp |
java.lang.String |
getTitleVal()
Gets the title value |
java.lang.String |
getUrlOp()
Gets the value of urlOp |
java.lang.String |
getUrlVal()
Gets the value of urlVal |
int |
getViewHits()
Gets the viewHits value |
java.lang.String |
getWordsOp()
Get the value of wordsOp |
java.lang.String |
getWordsVal()
Gets the value of wordsVal |
java.lang.String |
keywordsOpSelection(java.lang.String op)
|
java.lang.String |
lmodifiedOpSelection(java.lang.String op)
|
java.lang.String |
ratingSelection(java.lang.String rt)
Helper method for remembering UI selection |
void |
SearchRequestBean()
Public Constructor |
void |
setAuthorOp(java.lang.String authorOperator)
Sets the value of authorOp |
void |
setAuthorVal(java.lang.String authorValue)
Sets the value of authorVal |
void |
setBrowseCategory(java.lang.String bc)
Sets the current category |
void |
setDatabase(java.lang.String dbname)
Database value can be string or a comma separated multi value field |
void |
setDatabase(java.lang.String[] dbname)
search within specific databases form field values are stored in string |
void |
setDescription(java.lang.String d)
Gets the description. |
void |
setExpiresOp(java.lang.String expiresOperator)
Sets the value of expiresOp |
void |
setExpiresVal(java.lang.String expires)
Sets the expiresVal property |
void |
setKeywordsOp(java.lang.String keywordsOperator)
Sets the value of keywordsOp |
void |
setKeywordsVal(java.lang.String keywords)
Sets the value of keywordsVal |
void |
setLmodifiedOp(java.lang.String lmodifiedOperator)
Sets the lmodifiedOp property |
void |
setLmodifiedVal(java.lang.String lmodified)
Sets the lmodifiedVal property |
void |
setMode(java.lang.String m)
Sets the search mode |
void |
setNowords(java.lang.String nowords)
Sets the value of nowords |
void |
setPage(int p)
Sets the current page value |
void |
setRating(java.lang.String r)
sets the rating field from advanced search |
void |
setScat(java.lang.String cat)
Set the value of the scat radio button |
void |
setScope(java.lang.String s)
Sets the query string value |
void |
setSearchDiscussionQuery(java.lang.String sd,
java.lang.String did)
search within a discussion database and discussion id are added to the search query string |
void |
setSince(java.lang.String lmodified)
Sets the since property |
void |
setTitleOp(java.lang.String titleOperator)
Sets the value of titleOp |
void |
setTitleVal(java.lang.String title)
Sets the titleVal |
void |
setUrlOp(java.lang.String urlOperator)
Sets the value of urlOp |
void |
setUrlVal(java.lang.String url)
Sets the value of urlVal |
void |
setViewHits(int vhits)
Sets the viewHits value |
void |
setWordsOp(java.lang.String wordsOperator)
Sets the value of wordsOp |
void |
setWordsVal(java.lang.String whichwords)
Sets the value of wordsVal |
java.lang.String |
sinceSelection(java.lang.String op)
|
java.lang.String |
titleOpSelection(java.lang.String op)
|
java.lang.String |
urlOpSelection(java.lang.String op)
|
java.lang.String |
viewhitsSelection(int op)
|
java.lang.String |
wordsOpSelection(java.lang.String op)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SearchRequestBean()
Method Detail |
public void SearchRequestBean()
public java.lang.String getScope()
public void setScope(java.lang.String s)
public java.lang.String getDescription()
public void setDescription(java.lang.String d)
d
- is the description type in the search results
Description defaults to an empty string if value is nullpublic java.lang.String getMode()
public void setMode(java.lang.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 java.lang.String DescSelectionAttribute(java.lang.String attr)
public java.lang.String getBrowseCategory()
public void setBrowseCategory(java.lang.String bc)
bc
- is the current category, The category is set only if the current
category value is not an empty string.public java.lang.String getScat()
public void setScat(java.lang.String cat)
cat
- is the value of the search all categories radio buttonpublic java.lang.String getWordsOp()
public void setWordsOp(java.lang.String wordsOperator)
wordsOperator
- value for the words operationpublic java.lang.String wordsOpSelection(java.lang.String op)
op
- value that is compared with the value of wordsOp
public java.lang.String getWordsVal()
public void setWordsVal(java.lang.String whichwords)
whichwords
- value of the words propertypublic java.lang.String getNowords()
public void setNowords(java.lang.String nowords)
nowords
- value of the nowords propertypublic java.lang.String getAuthorOp()
public void setAuthorOp(java.lang.String authorOperator)
authorOperator
- value of the author propertypublic java.lang.String getAuthorVal()
public java.lang.String authorOpSelection(java.lang.String op)
op
- is compared to the author operatorpublic void setAuthorVal(java.lang.String authorValue)
authorValue
- value for the authorVal propertypublic void setUrlOp(java.lang.String urlOperator)
urlOperator
- value for the urlOppublic java.lang.String getUrlOp()
public java.lang.String urlOpSelection(java.lang.String op)
op
- is compared to the url operatorpublic java.lang.String getUrlVal()
public void setUrlVal(java.lang.String url)
url
- value for the urlVal propertypublic void setTitleOp(java.lang.String titleOperator)
titleOperator
- value for the titleOppublic java.lang.String getTitleOp()
public java.lang.String titleOpSelection(java.lang.String op)
op
- is compared to the title operator
public java.lang.String getTitleVal()
public void setTitleVal(java.lang.String title)
public void setKeywordsOp(java.lang.String keywordsOperator)
public java.lang.String getKeywordsOp()
public java.lang.String keywordsOpSelection(java.lang.String op)
op
- is compared to the keywordsOp
public java.lang.String getKeywordsVal()
public void setKeywordsVal(java.lang.String keywords)
keywords
- value for the keywordsValpublic void setExpiresOp(java.lang.String expiresOperator)
expiresOperator
- value for expiresOppublic java.lang.String getExpiresOp()
public java.lang.String expiresOpSelection(java.lang.String op)
op
- is compared to the expires operator
public java.lang.String getExpiresVal()
public void setExpiresVal(java.lang.String expires)
expires
- value for the expires propertypublic void setLmodifiedOp(java.lang.String lmodifiedOperator)
lmodifiedOperator
- value for the lmodified operatorpublic java.lang.String getLmodifiedOp()
public java.lang.String lmodifiedOpSelection(java.lang.String op)
op
- is compared to the lmodified operator
public java.lang.String getSince()
public void setSince(java.lang.String lmodified)
lmodified
- value for the since propertypublic java.lang.String sinceSelection(java.lang.String op)
op
- is compared to the since property
public java.lang.String getLmodifiedVal()
public void setLmodifiedVal(java.lang.String lmodified)
lmodified
- value of the lmodified propertypublic java.lang.String viewhitsSelection(int op)
op
- is compared to the viewhits property
public void setDatabase(java.lang.String dbname)
public void setDatabase(java.lang.String[] dbname)
public java.lang.String getDatabase()
public java.lang.String databaseSelection(java.lang.String d)
public void setSearchDiscussionQuery(java.lang.String sd, java.lang.String did)
public void setRating(java.lang.String r)
public java.lang.String ratingSelection(java.lang.String rt)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |