|
DLESE Tools v1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.ActionForm org.dlese.dpc.action.form.SimpleQueryForm
A Struts Form bean for handling query requests that access a SimpleLuceneIndex
. This class works in conjuction with the SimpleQueryAction
Struts Action class.
Nested Class Summary | |
---|---|
class |
SimpleQueryForm.ParamPair
Holds paramter, value pairs. |
Field Summary |
---|
Fields inherited from class org.apache.struts.action.ActionForm |
---|
multipartRequestHandler, servlet |
Constructor Summary | |
---|---|
SimpleQueryForm()
Constructor for the SimpleQueryForm object |
Method Summary | |
---|---|
List |
getCollectionLabels()
Gets the collectionLabels attribute of the SimpleQueryForm object |
List |
getCollections()
Gets the collections attribute of the SimpleQueryForm object |
String |
getContextURL()
Gets the contextURL attribute of the SimpleQueryForm object |
String |
getEnd()
Gets the ending index for the records that will be displayed. |
List |
getFormatLabels()
Gets the formatLabels attribute of the SimpleQueryForm object |
List |
getFormats()
Gets the formats attribute of the SimpleQueryForm object |
String |
getLength()
Gets the length of iterations to loop over the results array. |
String |
getMetadata()
Gets the metadata attribute of the SimpleQueryForm object |
String |
getNextResultsUrl()
Gets the HTTP parameters that should be used to retrieve the next set of results. |
String |
getNonPaigingParams()
Gets all the parameters that existed in the request other than those used for paiging. |
ArrayList |
getNrqParams()
Gets all request parameters except the refined query Rq parameter. |
String |
getNumResults()
Gets the numResults attribute of the SimpleQueryForm object |
String |
getOffset()
Gets the offset into the results array to begin iterating. |
String |
getPrevResultsUrl()
Gets the HTTP parameters that should be used to retrieve the previous set of results. |
String |
getQ()
Gets the query string entered by the user. |
String |
getQe()
Gets the query string entered by the user, encoded for use in a URL string. |
String |
getReportTitle()
Gets the reportTitle attribute of the SimpleQueryForm object |
ResultDoc |
getResult()
|
ResultDoc[] |
getResults()
Gets the search results returned by the SimpleLuceneIndex . |
String |
getRq()
Gets the refined query string entered by the user, used to search within results. |
String |
getSc()
Gets the collection that has been selected by the user in the UI via a Select tag. |
String |
getScparams()
Gets the selected collection(s) parameter to be inserted in the URL that gets the next set of results. |
String[] |
getScs()
Gets the collections that have been selected by the user in the UI. |
String[] |
getSfmts()
Gets the sfmts attribute of the SimpleQueryForm object |
String |
getStart()
Gets the starting index for the records that will be displayed. |
void |
setCollectionLabels(List collectionLabels)
Sets the collectionLabels attribute of the SimpleQueryForm object |
void |
setCollections(List collections)
Sets the collections attribute of the SimpleQueryForm object |
void |
setContextURL(String contextURL)
Sets the contextURL attribute of the SimpleQueryForm object |
static void |
setDebug(boolean db)
Sets the debug attribute of the object |
void |
setFormats(List formats)
Sets the formats attribute of the SimpleQueryForm object |
void |
setMetadata(String metadata)
Sets the metadata attribute of the SimpleQueryForm object |
void |
setNonPaigingParams(String nonPaigingParams)
|
void |
setNumPagingRecords(int numPagingRecords)
Sets the number of records to display per paiging request. |
void |
setQ(String queryString)
Sets the q attribute of the SimpleQueryForm object |
void |
setReportTitle(String reportTitle)
Sets the reportTitle attribute of the SimpleQueryForm object |
void |
setRequest(HttpServletRequest request)
Sets the request attribute of the SimpleQueryForm object. |
void |
setResult(ResultDoc resultDoc)
|
void |
setResults(ResultDoc[] results)
Sets the search results returned by the SimpleLuceneIndex . |
void |
setRq(String refineQueryString)
Sets the refined query string entered by the user, used to search within results. |
void |
setSc(String selectedCollection)
Sets the collection that has been selected by the user in the UI via a Select tag. |
void |
setScs(String[] selectedCollections)
Sets the collection that has been selected by the user in the UI. |
void |
setSfmts(String[] selectedFormats)
Sets the sfmts attribute of the SimpleQueryForm object |
void |
setStart(int start)
Sets the starting index for the records to display. |
Methods inherited from class org.apache.struts.action.ActionForm |
---|
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleQueryForm()
Method Detail |
public String getContextURL()
public void setContextURL(String contextURL)
contextURL
- The new contextURL valuepublic void setCollections(List collections)
collections
- The new collections valuepublic List getCollections()
public void setCollectionLabels(List collectionLabels)
collectionLabels
- The new collectionLabels valuepublic List getCollectionLabels()
public List getFormats()
public void setFormats(List formats)
formats
- The new formats valuepublic List getFormatLabels()
public String[] getSfmts()
public void setSfmts(String[] selectedFormats)
selectedFormats
- The new sfmts valuepublic String getSc()
Sample HTML code using Struts:
<html:select property="sc" size="1" >
<html:options name="queryForm" property="collections"
labelProperty="collectionLabels"/>
</html:select>
public void setSc(String selectedCollection)
selectedCollection
- The new sc valuepublic String[] getScs()
Sample HTML code using Struts:
<html:select property="scs" size="5" multiple="t">
<html:options name="queryForm" property="collections"
labelProperty="collectionLabels"/>
</html:select>
public void setScs(String[] selectedCollections)
selectedCollections
- The new sc valuepublic String getScparams()
public ResultDoc[] getResults()
SimpleLuceneIndex
.
public void setResults(ResultDoc[] results)
SimpleLuceneIndex
.
results
- The new results value.public void setResult(ResultDoc resultDoc)
public ResultDoc getResult()
public void setMetadata(String metadata)
metadata
- The new metadata valuepublic String getMetadata()
public String getNumResults()
public String getQ()
public String getQe()
public void setQ(String queryString)
queryString
- The new q valuepublic String getRq()
public void setRq(String refineQueryString)
refineQueryString
- The new rq valuepublic ArrayList getNrqParams()
public void setReportTitle(String reportTitle)
reportTitle
- The new reportTitle valuepublic String getReportTitle()
public void setStart(int start)
start
- The new start valuepublic String getStart()
public String getEnd()
public String getOffset()
public String getLength()
public void setNumPagingRecords(int numPagingRecords)
numPagingRecords
- The new numPagingRecords valuepublic String getNextResultsUrl()
public String getPrevResultsUrl()
public void setRequest(HttpServletRequest request)
request
- The new request valuepublic void setNonPaigingParams(String nonPaigingParams)
public final String getNonPaigingParams()
public static void setDebug(boolean db)
db
- The new debug value
|
DLESE Tools v1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |