Java Doc for SearchRequestBean.java in  » Portal » Open-Portal » com » sun » portal » search » providers » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » com.sun.portal.search.providers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.search.providers.SearchRequestBean

SearchRequestBean
public class SearchRequestBean implements Serializable(Code)

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

See Also:   com.sun.portal.search.demo.Search




Method Summary
public  StringDescSelectionAttribute(String attr)
    
public  voidSearchRequestBean()
    
public  StringauthorOpSelection(String op)
    
public  StringdatabaseSelection(String d)
    
public  StringexpiresOpSelection(String op)
    
public  StringgetAuthorOp()
    
public  StringgetAuthorVal()
    
public  StringgetBrowseCategory()
    
public  StringgetDatabase()
    
public  StringgetDescription()
    
public  StringgetExpiresOp()
    
public  StringgetExpiresVal()
    
public  StringgetKeywordsOp()
    
public  StringgetKeywordsVal()
    
public  StringgetLmodifiedOp()
    
public  StringgetLmodifiedVal()
    
public  StringgetMode()
    
public  StringgetNowords()
    
public  intgetPage()
    
public  StringgetScat()
    
public  StringgetScope()
    
public  StringgetSince()
    
public  StringgetTitleOp()
    
public  StringgetTitleVal()
    
public  StringgetUrlOp()
    
public  StringgetUrlVal()
    
public  intgetViewHits()
    
public  StringgetWordsOp()
    
public  StringgetWordsVal()
    
public  StringkeywordsOpSelection(String op)
    
public  StringlmodifiedOpSelection(String op)
    
public  StringratingSelection(String rt)
    
public  voidsetAuthorOp(String authorOperator)
    
public  voidsetAuthorVal(String authorValue)
    
public  voidsetBrowseCategory(String bc)
    
public  voidsetDatabase(String dbname)
    
public  voidsetDatabase(String[] dbname)
    
public  voidsetDescription(String d)
     Gets the description.
public  voidsetExpiresOp(String expiresOperator)
    
public  voidsetExpiresVal(String expires)
    
public  voidsetKeywordsOp(String keywordsOperator)
    
public  voidsetKeywordsVal(String keywords)
    
public  voidsetLmodifiedOp(String lmodifiedOperator)
    
public  voidsetLmodifiedVal(String lmodified)
    
public  voidsetMode(String m)
     Sets the search mode
Parameters:
  m - value of the current search mode.
public  voidsetNowords(String nowords)
    
public  voidsetPage(int p)
    
public  voidsetRating(String r)
    
public  voidsetScat(String cat)
    
public  voidsetScope(String s)
    
public  voidsetSearchDiscussionQuery(String sd, String did)
    
public  voidsetSince(String lmodified)
    
public  voidsetTitleOp(String titleOperator)
    
public  voidsetTitleVal(String title)
    
public  voidsetUrlOp(String urlOperator)
    
public  voidsetUrlVal(String url)
    
public  voidsetViewHits(int vhits)
    
public  voidsetWordsOp(String wordsOperator)
    
public  voidsetWordsVal(String whichwords)
    
public  StringsinceSelection(String op)
    
public  StringtitleOpSelection(String op)
    
public  StringurlOpSelection(String op)
    
public  StringviewhitsSelection(int op)
    
public  StringwordsOpSelection(String op)
    



Method Detail
DescSelectionAttribute
public String DescSelectionAttribute(String attr)(Code)
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




SearchRequestBean
public void SearchRequestBean()(Code)
Public Constructor



authorOpSelection
public String authorOpSelection(String op)(Code)
Compares the input parameter with the authorOp property
Parameters:
  op - is compared to the author operator



databaseSelection
public String databaseSelection(String d)(Code)
Helper method form field search within discussions value is saved accross requests



expiresOpSelection
public String expiresOpSelection(String op)(Code)

Parameters:
  op - is compared to the expires operator 'SELECTED' if equal and "" if unequal



getAuthorOp
public String getAuthorOp()(Code)
Gets the value of authorOp The value of the author operator



getAuthorVal
public String getAuthorVal()(Code)
Gets the value of authorVal The value of the author property



getBrowseCategory
public String getBrowseCategory()(Code)
Method is used for category browsing and category searching the current category



getDatabase
public String getDatabase()(Code)
returns database values in a comma separated string



getDescription
public String getDescription()(Code)
Gets the description The value of the description e.g full,brief,title



getExpiresOp
public String getExpiresOp()(Code)
Gets the value of expiresOp The value of the expiresOp property



getExpiresVal
public String getExpiresVal()(Code)
Gets the value of expiresVal The value of the expires property



getKeywordsOp
public String getKeywordsOp()(Code)
Gets the value of keywordsOp The value of the keywordsOp property



getKeywordsVal
public String getKeywordsVal()(Code)
Gets the value of keywordsVal The value of the keywords property



getLmodifiedOp
public String getLmodifiedOp()(Code)
Gets the lmodifiedOp property The value of the lmodified operator



getLmodifiedVal
public String getLmodifiedVal()(Code)
Gets the lmodifiedVal property The value of lmodified property



getMode
public String getMode()(Code)
Gets the search mode search mode



getNowords
public String getNowords()(Code)
Gets the value of nowords The value of the nowords property



getPage
public int getPage()(Code)
Gets the current page value The value of the current page



getScat
public String getScat()(Code)
Get the value of scat i.e search all category radio button The value of the search all category radio button



getScope
public String getScope()(Code)
Gets the query string The value of scope, query string



getSince
public String getSince()(Code)
Gets the value of the since property The value of the since property



getTitleOp
public String getTitleOp()(Code)
Gets the value of titleOp The value of the titleOp



getTitleVal
public String getTitleVal()(Code)
Gets the title value The value of the titleVal property



getUrlOp
public String getUrlOp()(Code)
Gets the value of urlOp The value of the urlOp



getUrlVal
public String getUrlVal()(Code)
Gets the value of urlVal The value of the urlVal



getViewHits
public int getViewHits()(Code)
Gets the viewHits value the number of search hits in the results page



getWordsOp
public String getWordsOp()(Code)
Get the value of wordsOp The value of the with operation (any/all/exact/passage) operator from advanced search



getWordsVal
public String getWordsVal()(Code)
Gets the value of wordsVal The value of the words property



keywordsOpSelection
public String keywordsOpSelection(String op)(Code)

Parameters:
  op - is compared to the keywordsOp 'SELECTED' if equal "" and if unequal



lmodifiedOpSelection
public String lmodifiedOpSelection(String op)(Code)

Parameters:
  op - is compared to the lmodified operator 'SELECTED' if equal and "" if unequal



ratingSelection
public String ratingSelection(String rt)(Code)
Helper method for remembering UI selection



setAuthorOp
public void setAuthorOp(String authorOperator)(Code)
Sets the value of authorOp
Parameters:
  authorOperator - value of the author property



setAuthorVal
public void setAuthorVal(String authorValue)(Code)
Sets the value of authorVal
Parameters:
  authorValue - value for the authorVal property



setBrowseCategory
public void setBrowseCategory(String bc)(Code)
Sets the current category
Parameters:
  bc - is the current category, The category is set only if the currentcategory value is not an empty string.



setDatabase
public void setDatabase(String dbname)(Code)
Database value can be string or a comma separated multi value field



setDatabase
public void setDatabase(String[] dbname)(Code)
search within specific databases form field values are stored in string



setDescription
public void setDescription(String d)(Code)
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



setExpiresVal
public void setExpiresVal(String expires)(Code)
Sets the expiresVal property
Parameters:
  expires - value for the expires property



setKeywordsOp
public void setKeywordsOp(String keywordsOperator)(Code)
Sets the value of keywordsOp
Parameters:
  The - value of the keywordsOp property



setKeywordsVal
public void setKeywordsVal(String keywords)(Code)
Sets the value of keywordsVal
Parameters:
  keywords - value for the keywordsVal



setLmodifiedOp
public void setLmodifiedOp(String lmodifiedOperator)(Code)
Sets the lmodifiedOp property
Parameters:
  lmodifiedOperator - value for the lmodified operator



setLmodifiedVal
public void setLmodifiedVal(String lmodified)(Code)
Sets the lmodifiedVal property
Parameters:
  lmodified - value of the lmodified property



setMode
public void setMode(String m)(Code)
Sets the search mode
Parameters:
  m - value of the current search mode. possible values can be 'adv' or 'basic'



setNowords
public void setNowords(String nowords)(Code)
Sets the value of nowords
Parameters:
  nowords - value of the nowords property



setPage
public void setPage(int p)(Code)
Sets the current page value
Parameters:
  p - value of the current page



setRating
public void setRating(String r)(Code)
sets the rating field from advanced search



setScat
public void setScat(String cat)(Code)
Set the value of the scat radio button
Parameters:
  cat - is the value of the search all categories radio button



setScope
public void setScope(String s)(Code)
Sets the query string value
Parameters:
  scope - is the query string



setSearchDiscussionQuery
public void setSearchDiscussionQuery(String sd, String did)(Code)
search within a discussion database and discussion id are added to the search query string



setSince
public void setSince(String lmodified)(Code)
Sets the since property
Parameters:
  lmodified - value for the since property



setTitleOp
public void setTitleOp(String titleOperator)(Code)
Sets the value of titleOp
Parameters:
  titleOperator - value for the titleOp



setTitleVal
public void setTitleVal(String title)(Code)
Sets the titleVal
Parameters:
  The - value for the titleVal property



setUrlOp
public void setUrlOp(String urlOperator)(Code)
Sets the value of urlOp
Parameters:
  urlOperator - value for the urlOp



setUrlVal
public void setUrlVal(String url)(Code)
Sets the value of urlVal
Parameters:
  url - value for the urlVal property



setViewHits
public void setViewHits(int vhits)(Code)
Sets the viewHits value
Parameters:
  vhits - The number of results to be displayed on the page



setWordsOp
public void setWordsOp(String wordsOperator)(Code)
Sets the value of wordsOp
Parameters:
  wordsOperator - value for the words operation



setWordsVal
public void setWordsVal(String whichwords)(Code)
Sets the value of wordsVal
Parameters:
  whichwords - value of the words property



sinceSelection
public String sinceSelection(String op)(Code)

Parameters:
  op - is compared to the since property 'SELECTED' if equal and empty string if unequal



titleOpSelection
public String titleOpSelection(String op)(Code)

Parameters:
  op - is compared to the title operator 'SELECTED' if equal and "" if unequal



urlOpSelection
public String urlOpSelection(String op)(Code)

Parameters:
  op - is compared to the url operator



viewhitsSelection
public String viewhitsSelection(int op)(Code)

Parameters:
  op - is compared to the viewhits property 'SELECTED' if equal and empty string if unequal



wordsOpSelection
public String wordsOpSelection(String op)(Code)

Parameters:
  op - value that is compared with the value of wordsOp "SELECTED" is returned if they are both equal and emptystring is returned if unequal



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.