|
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.dds.action.form.VocabForm org.dlese.dpc.dds.action.form.DDSAdminQueryForm
public final class 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.dlese.dpc.dds.action.form.VocabForm |
---|
audience, field, language, metaFormat, value, vocab |
Fields inherited from class org.apache.struts.action.ActionForm |
---|
multipartRequestHandler, servlet |
Constructor Summary | |
---|---|
DDSAdminQueryForm()
Constructor for the DDSAdminQueryForm object |
Method Summary | |
---|---|
List |
getCollections()
Gets the collections that are configured in the repository, sorted. |
String |
getContextURL()
Gets the contextURL attribute of the DDSAdminQueryForm object |
DocumentMap |
getDocMap()
Gets the DocumentMap for the search result. |
DocReader |
getDocReader()
Gets the result 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 all possible metadata formats that may be disiminated by the RepositoryManager. |
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 DDSAdminQueryForm object |
List |
getIndexedFormats()
Gets all formats that exist natively in the index. |
List |
getIndexedFormatsLabels()
Gets all formats that exist natively in the index. |
String[] |
getKy()
Gets the collections that have been selected by the user in the UI. |
LazyDocumentMap |
getLazyDocMap()
Gets the LazyDocumentMap for the search result. |
String |
getLength()
Gets the length of iterations to loop over the results array. |
String |
getMetadata()
Gets the metadata attribute of the DDSAdminQueryForm object |
MmdRec[] |
getMmdDupesInOtherCollections()
Gets the IDMapper Mmd records for dupulicate resources in other collections, or null. |
MmdRec[] |
getMmdDupesInSameCollection()
Gets the IDMapper Mmd records for dupulicate resources in the same as this resource collection, or null. |
MmdRec |
getMmdRec()
Gets the IDMapper Mmd record for this ADN resource, otherwise null. |
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 |
ResultDocList |
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. |
int |
getS()
Gets the s attribute of the DDSAdminQueryForm object |
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()
DESCRIPTION |
String[] |
getSelectedIdMapperErrors()
Gets the selectedIdMapperErrors attribute of the DDSAdminQueryForm object |
String[] |
getSfmts()
Gets the selected formats. |
String |
getShowQueryOptions()
Gets the showQueryOptions attribute of the DDSAdminQueryForm object |
String[] |
getSifmts()
Gets the selected indexed formats. |
String |
getStart()
Gets the starting index for the records that will be displayed. |
MetadataVocabInputState |
getVocabInputState()
Gets the vocabInputState attribute of the DDSAdminQueryForm object |
void |
reset(org.apache.struts.action.ActionMapping mapping,
HttpServletRequest request)
DESCRIPTION |
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 |
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 |
setKy(String[] ky)
Sets the collection that has been selected by the user in the UI. |
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(ResultDocList 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)
DESCRIPTION |
void |
setSelectedIdMapperErrors(String[] selectedIdMapperErrors)
Sets the selectedIdMapperErrors attribute of the DDSAdminQueryForm object |
void |
setSfmts(String[] selectedFormats)
Sets the selected formats. |
void |
setShowQueryOptions(String showQueryOptions)
Sets the showQueryOptions attribute of the DDSAdminQueryForm object |
void |
setSifmts(String[] selectedIndexedFormats)
Sets the selected indexed formats. |
void |
setStart(int start)
Sets the starting index for the records to display. |
void |
setVocabInputState(MetadataVocabInputState vocabInputState)
Sets the vocabInputState attribute of the DDSAdminQueryForm object |
Methods inherited from class org.dlese.dpc.dds.action.form.VocabForm |
---|
getAudience, getField, getFieldId, getFieldLabel, getIsVocabTermAvailable, getLanguage, getVocab, getVocabList, getVocabList, getVocabTerm, setField, setField, setMetaFormat, setValue, setVocab, setVocabInterface |
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 void setVocabInputState(MetadataVocabInputState vocabInputState)
vocabInputState
- The new vocabInputState valuepublic MetadataVocabInputState getVocabInputState()
public 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 getIdMapperErrors()
public List getIdMapperErrorLabels()
public List getIndexedAccessionStatuses()
public List getCollections()
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 String[] getSifmts()
public void setSifmts(String[] selectedIndexedFormats)
selectedIndexedFormats
- The new sifmts 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[] getKy()
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 void setKy(String[] ky)
ky
- The new sc valuepublic 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 DocumentMap getDocMap()
public LazyDocumentMap getLazyDocMap()
public DocReader getDocReader()
public MmdRec getMmdRec()
public MmdRec[] getMmdDupesInOtherCollections()
public MmdRec[] getMmdDupesInSameCollection()
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 int getS()
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.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |