|
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.dds.action.form.DDSAdminQueryForm
A Struts Form bean for handling query requests that access a SimpleLuceneIndex
. This class works in conjuction with
the DDSAdminQueryAction
Struts Action
class.
Nested Class Summary | |
---|---|
class |
DDSAdminQueryForm.ParamPair
Holds paramter, value pairs. |
Field Summary |
---|
Fields inherited from class org.apache.struts.action.ActionForm |
---|
multipartRequestHandler, servlet |
Constructor Summary | |
---|---|
DDSAdminQueryForm()
Constructor for the DDSAdminQueryForm object |
Method Summary | |
---|---|
List |
getCollectionLabels()
Gets the collectionLabels attribute of the DDSAdminQueryForm object |
List |
getCollections()
Gets the collections attribute of the DDSAdminQueryForm object |
String |
getContextURL()
Gets the contextURL attribute of the DDSAdminQueryForm object |
String |
getEnd()
Gets the ending index for the records that will be displayed. |
List |
getFormatLabels()
Gets the formatLabels attribute of the DDSAdminQueryForm object |
List |
getFormats()
Gets the formats attribute of the DDSAdminQueryForm object |
List |
getIdMapperErrorLabels()
Gets the idMapperErrorLabels, as strings. |
List |
getIdMapperErrors()
Gets the idMapperErrors that are in the index, as integer strings. |
List |
getIndexedAccessionStatuses()
|
String |
getLength()
Gets the length of iterations to loop over the results array. |
String |
getMetadata()
Gets the metadata attribute of the DDSAdminQueryForm 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 DDSAdminQueryForm 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 DDSAdminQueryForm object |
ResultDoc |
getResult()
Gets the result attribute of the DDSAdminQueryForm object |
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[] |
getselectedAccessionStatuses()
|
String[] |
getSelectedIdMapperErrors()
|
String[] |
getSfmts()
Gets the sfmts attribute of the DDSAdminQueryForm object |
String |
getShowQueryOptions()
|
String |
getStart()
Gets the starting index for the records that will be displayed. |
void |
reset(org.apache.struts.action.ActionMapping mapping,
HttpServletRequest request)
|
void |
setCollectionLabels(List collectionLabels)
Sets the collectionLabels attribute of the DDSAdminQueryForm object |
void |
setCollections(List collections)
Sets the collections attribute of the DDSAdminQueryForm object |
void |
setContextURL(String contextURL)
Sets the contextURL attribute of the DDSAdminQueryForm object |
static void |
setDebug(boolean db)
Sets the debug attribute of the object |
void |
setFormats(List formats)
Sets the formats attribute of the DDSAdminQueryForm object |
void |
setIdMapperErrors(List errors)
Sets the id mapper errors that are available in the index. |
void |
setIndexedAccessionStatuses(List statusus)
|
void |
setMetadata(String metadata)
Sets the metadata attribute of the DDSAdminQueryForm object |
void |
setNonPaigingParams(String nonPaigingParams)
Sets the nonPaigingParams attribute of the DDSAdminQueryForm object |
void |
setNumPagingRecords(int numPagingRecords)
Sets the number of records to display per paiging request. |
void |
setQ(String queryString)
Sets the q attribute of the DDSAdminQueryForm object |
void |
setReportTitle(String reportTitle)
Sets the reportTitle attribute of the DDSAdminQueryForm object |
void |
setRequest(HttpServletRequest request)
Sets the request attribute of the DDSAdminQueryForm object. |
void |
setResult(ResultDoc resultDoc)
Sets the result attribute of the DDSAdminQueryForm object |
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 |
setselectedAccessionStatuses(String[] selectedAccessionStatuses)
|
void |
setSelectedIdMapperErrors(String[] selectedIdMapperErrors)
|
void |
setSfmts(String[] selectedFormats)
Sets the sfmts attribute of the DDSAdminQueryForm object |
void |
setShowQueryOptions(String showQueryOptions)
|
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, 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 DDSAdminQueryForm()
Method Detail |
public String getShowQueryOptions()
public void setShowQueryOptions(String showQueryOptions)
public String getContextURL()
public void setContextURL(String contextURL)
contextURL
- The new contextURL valuepublic void setIdMapperErrors(List errors)
errors
- The ID mapper errors, as a list of integers.public List getIdMapperErrors()
public List getIdMapperErrorLabels()
public void setIndexedAccessionStatuses(List statusus)
public List getIndexedAccessionStatuses()
public 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 String[] getSelectedIdMapperErrors()
public String[] getselectedAccessionStatuses()
public void setselectedAccessionStatuses(String[] selectedAccessionStatuses)
public void setSelectedIdMapperErrors(String[] selectedIdMapperErrors)
public void reset(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
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)
resultDoc
- The new result valuepublic 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)
nonPaigingParams
- The new nonPaigingParams valuepublic 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 |