public final class OdlSearchForm
extends org.apache.struts.action.ActionForm
implements java.io.Serializable
OdlSearchAction
,
Serialized FormModifier and Type | Class and Description |
---|---|
class |
OdlSearchForm.ParamPair
Holds paramter, value pairs.
|
Constructor and Description |
---|
OdlSearchForm()
Constructor for the OdlSearchForm object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseURL() |
java.util.List |
getCollectionLabels()
Gets the collectionLabels attribute of the OdlSearchForm object
|
java.util.List |
getCollections()
Gets the collections attribute of the OdlSearchForm object
|
java.lang.String |
getContextURL()
Gets the contextURL attribute of the OdlSearchForm object
|
java.lang.String |
getEnd()
Gets the ending index for the records that will be displayed.
|
java.util.List |
getFormatLabels()
Gets the formatLabels attribute of the OdlSearchForm object
|
java.util.List |
getFormats()
Gets the formats attribute of the OdlSearchForm object
|
java.lang.String |
getLength()
Gets the length of iterations to loop over the results array.
|
java.lang.String |
getMetadata()
Gets the metadata attribute of the OdlSearchForm object
|
java.lang.String |
getNextResultsUrl()
Gets the HTTP parameters that should be used to retrieve the next set of results.
|
java.lang.String |
getNonPaigingParams()
Gets all the parameters that existed in the request other than those used for
paiging.
|
java.util.ArrayList |
getNrqParams()
Gets all request parameters except the refined query Rq parameter.
|
java.lang.String |
getNumResults()
Gets the numResults attribute of the OdlSearchForm object
|
java.lang.String |
getOffset()
Gets the offset into the results array to begin iterating.
|
java.lang.String |
getPrevResultsUrl()
Gets the HTTP parameters that should be used to retrieve the previous set of results.
|
java.lang.String |
getQ()
Gets the query string entered by the user.
|
java.lang.String |
getQe()
Gets the query string entered by the user, encoded for use in a URL string.
|
java.lang.String |
getReportTitle()
Gets the reportTitle attribute of the OdlSearchForm object
|
ResultDoc |
getResult()
Gets the result attribute of the OdlSearchForm object
|
ResultDocList |
getResults()
Gets the search results returned by the
SimpleLuceneIndex . |
java.lang.String |
getRq()
Gets the refined query string entered by the user, used to search within results.
|
java.lang.String |
getSc()
Gets the collection that has been selected by the user in the UI via a Select tag.
|
java.lang.String |
getScparams()
Gets the selected collection(s) parameter to be inserted in the URL that gets the
next set of results.
|
java.lang.String[] |
getScs()
Gets the collections that have been selected by the user in the UI.
|
java.lang.String[] |
getSfmts()
Gets the sfmts attribute of the OdlSearchForm object
|
java.lang.String |
getStart()
Gets the starting index for the records that will be displayed.
|
void |
setBaseURL(java.lang.String baseURL) |
void |
setCollectionLabels(java.util.List collectionLabels)
Sets the collectionLabels attribute of the OdlSearchForm object
|
void |
setCollections(java.util.List collections)
Sets the collections attribute of the OdlSearchForm object
|
void |
setContextURL(java.lang.String contextURL)
Sets the contextURL attribute of the OdlSearchForm object
|
static void |
setDebug(boolean db)
Sets the debug attribute of the object
|
void |
setFormats(java.util.List formats)
Sets the formats attribute of the OdlSearchForm object
|
void |
setMetadata(java.lang.String metadata)
Sets the metadata attribute of the OdlSearchForm object
|
void |
setNonPaigingParams(java.lang.String nonPaigingParams)
Sets the nonPaigingParams attribute of the OdlSearchForm object
|
void |
setNumPagingRecords(int numPagingRecords)
Sets the number of records to display per paiging request.
|
void |
setQ(java.lang.String queryString)
Sets the q attribute of the OdlSearchForm object
|
void |
setReportTitle(java.lang.String reportTitle)
Sets the reportTitle attribute of the OdlSearchForm object
|
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Sets the request attribute of the OdlSearchForm object.
|
void |
setResult(ResultDoc resultDoc)
Sets the result attribute of the OdlSearchForm object
|
void |
setResults(ResultDocList results)
Sets the search results returned by the
SimpleLuceneIndex . |
void |
setRq(java.lang.String refineQueryString)
Sets the refined query string entered by the user, used to search within results.
|
void |
setSc(java.lang.String selectedCollection)
Sets the collection that has been selected by the user in the UI via a Select tag.
|
void |
setScs(java.lang.String[] selectedCollections)
Sets the collection that has been selected by the user in the UI.
|
void |
setSfmts(java.lang.String[] selectedFormats)
Sets the sfmts attribute of the OdlSearchForm object
|
void |
setStart(int start)
Sets the starting index for the records to display.
|
public java.lang.String getBaseURL()
public void setBaseURL(java.lang.String baseURL)
public java.lang.String getContextURL()
public void setContextURL(java.lang.String contextURL)
contextURL
- The new contextURL valuepublic void setCollections(java.util.List collections)
collections
- The new collections valuepublic java.util.List getCollections()
public void setCollectionLabels(java.util.List collectionLabels)
collectionLabels
- The new collectionLabels valuepublic java.util.List getCollectionLabels()
public java.util.List getFormats()
public void setFormats(java.util.List formats)
formats
- The new formats valuepublic java.util.List getFormatLabels()
public java.lang.String[] getSfmts()
public void setSfmts(java.lang.String[] selectedFormats)
selectedFormats
- The new sfmts valuepublic java.lang.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(java.lang.String selectedCollection)
selectedCollection
- The new sc valuepublic java.lang.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(java.lang.String[] selectedCollections)
selectedCollections
- The new sc valuepublic java.lang.String getScparams()
public ResultDocList getResults()
SimpleLuceneIndex
.public void setResults(ResultDocList results)
SimpleLuceneIndex
.results
- The new results value.public void setResult(ResultDoc resultDoc)
resultDoc
- The new result valuepublic ResultDoc getResult()
public void setMetadata(java.lang.String metadata)
metadata
- The new metadata valuepublic java.lang.String getMetadata()
public java.lang.String getNumResults()
public java.lang.String getQ()
public java.lang.String getQe()
public void setQ(java.lang.String queryString)
queryString
- The new q valuepublic java.lang.String getRq()
public void setRq(java.lang.String refineQueryString)
refineQueryString
- The new rq valuepublic java.util.ArrayList getNrqParams()
public void setReportTitle(java.lang.String reportTitle)
reportTitle
- The new reportTitle valuepublic java.lang.String getReportTitle()
public void setStart(int start)
start
- The new start valuepublic java.lang.String getStart()
public java.lang.String getEnd()
public java.lang.String getOffset()
public java.lang.String getLength()
public void setNumPagingRecords(int numPagingRecords)
numPagingRecords
- The new numPagingRecords valuepublic java.lang.String getNextResultsUrl()
public java.lang.String getPrevResultsUrl()
public void setRequest(javax.servlet.http.HttpServletRequest request)
request
- The new request valuepublic void setNonPaigingParams(java.lang.String nonPaigingParams)
nonPaigingParams
- The new nonPaigingParams valuepublic final java.lang.String getNonPaigingParams()
public static void setDebug(boolean db)
db
- The new debug value