|
DLESE Tools v1.6.0 |
||||||||
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.schemedit.action.form.DCSQueryForm
public final class DCSQueryForm
A Struts Form bean for handling query requests that access a SimpleLuceneIndex
. This class works in conjuction with
the DCSQueryAction
Struts Action
class.
Nested Class Summary | |
---|---|
class |
DCSQueryForm.ParamPair
Holds paramter, value pairs. |
Field Summary | |
---|---|
static String |
DEFAULT_REC_SORT
|
static String |
RELEVANCE_REC_SORT
|
Fields inherited from class org.apache.struts.action.ActionForm |
---|
multipartRequestHandler, servlet |
Constructor Summary | |
---|---|
DCSQueryForm()
Constructor for the DCSQueryForm object |
Method Summary | |
---|---|
String |
getContextURL()
Gets the contextURL attribute of the DCSQueryForm object |
SortWidget |
getCurrentSortWidget()
|
List |
getEditors()
return the list of Editors for the currently selected collection; we don't use "selectedCollection" but rather getSelectedSet().getSetSpec() because the former does not seem to be properly initialized after system restart? |
String |
getEnd()
Gets the ending index for the records that will be displayed. |
List |
getFormatLabels()
Gets the formatLabels attribute of the DCSQueryForm object |
List |
getFormats()
Gets all possible metadata formats that may be disiminated by the RepositoryManager. |
List |
getHits()
|
List |
getIdMapperErrorLabels()
Gets the idMapperErrorLabels, as strings. |
List |
getIdMapperErrors()
Gets the idMapperErrors that are in the index, as integer strings. |
List |
getIndexedAccessionStatuses()
Gets the indexedAccessionStatuses attribute of the DCSQueryForm object |
List |
getIndexedFormats()
Gets all formats that exist natively in the index. |
List |
getIndexedFormatsLabels()
Gets all formats that exist natively in the index. |
SortWidget |
getLastEditorWidget()
|
SortWidget |
getLastTouchDateWidget()
|
String |
getLength()
Gets the length of iterations to loop over the results array. |
String |
getMetadata()
Gets the metadata attribute of the DCSQueryForm 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. |
int |
getNumPagingRecords()
Gets the numPagingRecords attribute of the DCSQueryForm object |
String |
getNumResults()
Gets the numResults attribute of the DCSQueryForm object |
String |
getOffset()
Gets the offset into the results array to begin iterating. |
int |
getPaigingParam()
the current result page. |
int |
getPaigingParam(String id)
|
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. |
SortWidget |
getRecordIdWidget()
|
String |
getReportTitle()
Gets the reportTitle attribute of the DCSQueryForm object |
String |
getResultsPerPage()
A string representation of the numPagingRecords attribute |
String[] |
getResultsPerPageOptions()
Gets the resultsPerPageOptions attribute of the DCSQueryForm object |
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 |
getSearchMode()
Gets the searchMode attribute of the DCSQueryForm object |
String[] |
getselectedAccessionStatuses()
DESCRIPTION |
String[] |
getSelectedIdMapperErrors()
Gets the selectedIdMapperErrors attribute of the DCSQueryForm object |
String[] |
getSes()
Gets the ses (Selected Editors) attribute of the DCSBrowseForm object |
String[] |
getSfmts()
Gets the selected formats. |
String |
getShowQueryOptions()
Gets the showQueryOptions attribute of the DCSQueryForm object |
String |
getSortField()
Gets the sortField attribute of the DCSQueryForm object |
String |
getSortWidgetParams()
Gets all the parameters that existed in the request other than those used for paiging or sorting. |
Map |
getSortWidgets()
The sortField of the widgets must be indexed! The sortWidgets key must match the sortField for each widget. |
String[] |
getSrcs()
Gets the ses (Selected Creators) attribute of the DCSBrowseForm object |
String[] |
getSss()
Gets the sss (selectedStatuses) attribute of the DCSBrowseForm object |
String |
getStart()
Gets the starting index for the records that will be displayed. |
Map |
getStatuses()
return the list of Statuses for the currently selected collection; we don't use "selectedCollection" but rather getSelectedSet().getSetSpec() because the former does not seem to be properly initialized after system restart? |
SortWidget |
getStatusWidget()
|
String |
getVld()
Gets the vld attribute of the DCSQueryForm object |
void |
reset(org.apache.struts.action.ActionMapping mapping,
HttpServletRequest request)
DESCRIPTION |
void |
setContextURL(String contextURL)
Sets the contextURL attribute of the DCSQueryForm object |
static void |
setDebug(boolean db)
Sets the debug attribute of the object |
void |
setEditors(List editors)
Sets the editors attribute of the DCSBrowseForm object |
void |
setFormats(List formats)
Sets the formats attribute of the DCSQueryForm object |
void |
setIdMapperErrors(List errors)
Sets the id mapper errors that are available in the index. |
void |
setIndexedAccessionStatuses(List statusus)
Sets the indexedAccessionStatuses attribute of the DCSQueryForm object |
void |
setIndexedFormats(List formats)
Gets all formats that exist natively in the index. |
void |
setIndexedFormatsLabels(List formatsLabels)
Gets all formats that exist natively in the index. |
void |
setMetadata(String metadata)
Sets the metadata attribute of the DCSQueryForm object |
void |
setNonPaigingParams(String nonPaigingParams)
Sets the nonPaigingParams attribute of the DCSQueryForm 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 DCSQueryForm object |
void |
setReportTitle(String reportTitle)
Sets the reportTitle attribute of the DCSQueryForm object |
void |
setRequest(HttpServletRequest request)
Sets the request attribute of the DCSQueryForm object. |
void |
setResults(SearchHelper results)
Sets the search results returned by the SimpleLuceneIndex after sorting them. |
void |
setResultsPerPage(String s)
Sets the resultsPerPage attribute of the DCSQueryForm object |
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 |
setSearchMode(String s)
Sets the searchMode attribute of the DCSQueryForm object |
void |
setselectedAccessionStatuses(String[] selectedAccessionStatuses)
DESCRIPTION |
void |
setSelectedIdMapperErrors(String[] selectedIdMapperErrors)
Sets the selectedIdMapperErrors attribute of the DCSQueryForm object |
void |
setSes(String[] selectedEditors)
Sets the collection that has been selected by the user in the UI. |
void |
setSfmts(String[] selectedFormats)
Sets the selected formats. |
void |
setShowQueryOptions(String showQueryOptions)
Sets the showQueryOptions attribute of the DCSQueryForm object |
void |
setSortField(String sortField)
Sets the sortField attribute of the DCSQueryForm object |
void |
setSortWidgetParams(String sortWidgetParams)
Sets the sortWidgetParams attribute of the DCSQueryForm object. |
void |
setSrcs(String[] selectedCreators)
Sets the collection that has been selected by the user in the UI. |
void |
setSss(String[] selectedStatuses)
Sets the sss (selectedStatuses) attribute of the DCSBrowseForm object |
void |
setStart(int start)
Sets the starting index for the records to display. |
void |
setStatuses(Map statuses)
Sets the statuses attribute of the DCSBrowseForm object |
void |
setVld(String v)
Sets the vld attribute of the DCSQueryForm object |
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 |
Field Detail |
---|
public static String DEFAULT_REC_SORT
public static String RELEVANCE_REC_SORT
Constructor Detail |
---|
public DCSQueryForm()
Method Detail |
---|
public String[] getResultsPerPageOptions()
public void setSortField(String sortField)
sortField
- The new sortField valuepublic String getSortField()
public Map getSortWidgets()
public SortWidget getCurrentSortWidget()
public SortWidget getRecordIdWidget()
public SortWidget getLastEditorWidget()
public SortWidget getStatusWidget()
public SortWidget getLastTouchDateWidget()
public String getResultsPerPage()
public void setResultsPerPage(String s)
s
- The new resultsPerPage valuepublic String getSearchMode()
public void setSearchMode(String s)
s
- The new searchMode valuepublic String getShowQueryOptions()
public void setShowQueryOptions(String showQueryOptions)
showQueryOptions
- The new showQueryOptions valuepublic String getContextURL()
public void setContextURL(String contextURL)
contextURL
- The new contextURL valuepublic List getEditors()
public void setEditors(List editors)
editors
- The new editors valuepublic String getVld()
public void setVld(String v)
v
- The new vld valuepublic String[] getSrcs()
public void setSrcs(String[] selectedCreators)
selectedCreators
- The new ses valuepublic String[] getSes()
public void setSes(String[] selectedEditors)
selectedEditors
- The new ses valuepublic Map getStatuses()
public void setStatuses(Map statuses)
statuses
- The new statuses valuepublic String[] getSss()
public void setSss(String[] selectedStatuses)
selectedStatuses
- The new sss 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)
statusus
- The new indexedAccessionStatuses valuepublic List getIndexedAccessionStatuses()
public List getFormats()
public void setFormats(List formats)
formats
- The new formats valuepublic List getIndexedFormats()
public void setIndexedFormats(List formats)
formats
- The new indexedFormats valuepublic List getIndexedFormatsLabels()
public void setIndexedFormatsLabels(List formatsLabels)
formatsLabels
- The new indexedFormatsLabels 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)
selectedAccessionStatuses
- DESCRIPTIONpublic void setSelectedIdMapperErrors(String[] selectedIdMapperErrors)
selectedIdMapperErrors
- The new selectedIdMapperErrors valuepublic void reset(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
reset
in class org.apache.struts.action.ActionForm
mapping
- DESCRIPTIONrequest
- DESCRIPTIONpublic void setScs(String[] selectedCollections)
selectedCollections
- The new sc valuepublic String getScparams()
public void setResults(SearchHelper results)
SimpleLuceneIndex
after sorting them. we DON'T want to sort results if:
results
- The new results value.public void setMetadata(String metadata)
metadata
- The new metadata valuepublic String getMetadata()
public List getHits()
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 int getNumPagingRecords()
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 int getPaigingParam()
public int getPaigingParam(String id)
public void setSortWidgetParams(String sortWidgetParams)
Used by the sortWidget (see tags/sortWidget.tag) to contstruct a URL that will reproduce search but accomodate new sorting, ordering, and paiging params.
sortWidgetParams
- The new sortWidgetParams valuepublic final String getSortWidgetParams()
public static void setDebug(boolean db)
db
- The new debug value
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |