public final class DDSAdminQueryForm extends VocabForm implements java.io.Serializable
SimpleLuceneIndex
. This class works in conjuction with the DDSAdminQueryAction
Struts Action class.Modifier and Type | Class and Description |
---|---|
class |
DDSAdminQueryForm.ParamPair
Holds paramter, value pairs.
|
Constructor and Description |
---|
DDSAdminQueryForm()
Constructor for the DDSAdminQueryForm object
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getCollections()
Gets the collections that are configured in the repository, sorted.
|
java.lang.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
|
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 DDSAdminQueryForm object
|
java.util.List |
getFormats()
Gets all possible metadata formats that may be disiminated by the RepositoryManager.
|
java.util.List |
getIdMapperErrorLabels()
Gets the idMapperErrorLabels, as strings.
|
java.util.List |
getIdMapperErrors()
Gets the idMapperErrors that are in the index, as integer strings.
|
java.util.List |
getIndexedAccessionStatuses()
Gets the indexedAccessionStatuses attribute of the DDSAdminQueryForm object
|
java.util.List |
getIndexedFormats()
Gets all formats that exist natively in the index.
|
java.util.List |
getIndexedFormatsLabels()
Gets all formats that exist natively in the index.
|
java.lang.String[] |
getKy()
Gets the collections that have been selected by the user in the UI.
|
LazyDocumentMap |
getLazyDocMap()
Gets the LazyDocumentMap for the search result.
|
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 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.
|
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 DDSAdminQueryForm 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 DDSAdminQueryForm object
|
ResultDoc |
getResult()
Gets the result attribute of the DDSAdminQueryForm 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.
|
int |
getS()
Gets the s attribute of the DDSAdminQueryForm object
|
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[] |
getselectedAccessionStatuses()
DESCRIPTION
|
java.lang.String[] |
getSelectedIdMapperErrors()
Gets the selectedIdMapperErrors attribute of the DDSAdminQueryForm object
|
java.lang.String[] |
getSfmts()
Gets the selected formats.
|
java.lang.String |
getShowQueryOptions()
Gets the showQueryOptions attribute of the DDSAdminQueryForm object
|
java.lang.String[] |
getSifmts()
Gets the selected indexed formats.
|
java.lang.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,
javax.servlet.http.HttpServletRequest request)
DESCRIPTION
|
void |
setContextURL(java.lang.String contextURL)
Sets the contextURL attribute of the DDSAdminQueryForm 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 DDSAdminQueryForm object
|
void |
setIndexedFormats(java.util.List formats)
Gets all formats that exist natively in the index.
|
void |
setIndexedFormatsLabels(java.util.List formatsLabels)
Gets all formats that exist natively in the index.
|
void |
setKy(java.lang.String[] ky)
Sets the collection that has been selected by the user in the UI.
|
void |
setMetadata(java.lang.String metadata)
Sets the metadata attribute of the DDSAdminQueryForm object
|
void |
setNonPaigingParams(java.lang.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(java.lang.String queryString)
Sets the q attribute of the DDSAdminQueryForm object
|
void |
setReportTitle(java.lang.String reportTitle)
Sets the reportTitle attribute of the DDSAdminQueryForm object
|
void |
setRequest(javax.servlet.http.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(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 |
setselectedAccessionStatuses(java.lang.String[] selectedAccessionStatuses)
DESCRIPTION
|
void |
setSelectedIdMapperErrors(java.lang.String[] selectedIdMapperErrors)
Sets the selectedIdMapperErrors attribute of the DDSAdminQueryForm object
|
void |
setSfmts(java.lang.String[] selectedFormats)
Sets the selected formats.
|
void |
setShowQueryOptions(java.lang.String showQueryOptions)
Sets the showQueryOptions attribute of the DDSAdminQueryForm object
|
void |
setSifmts(java.lang.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
|
getAudience, getField, getFieldId, getFieldLabel, getIsVocabTermAvailable, getLanguage, getVocab, getVocabList, getVocabList, getVocabTerm, setField, setField, setMetaFormat, setValue, setVocab, setVocabInterface
public DDSAdminQueryForm()
public void setVocabInputState(MetadataVocabInputState vocabInputState)
vocabInputState
- The new vocabInputState valuepublic MetadataVocabInputState getVocabInputState()
public java.lang.String getShowQueryOptions()
public void setShowQueryOptions(java.lang.String showQueryOptions)
showQueryOptions
- The new showQueryOptions valuepublic java.lang.String getContextURL()
public void setContextURL(java.lang.String contextURL)
contextURL
- The new contextURL valuepublic java.util.List getIdMapperErrors()
public java.util.List getIdMapperErrorLabels()
public java.util.List getIndexedAccessionStatuses()
public java.util.List getCollections()
public java.util.List getFormats()
public void setFormats(java.util.List formats)
formats
- The new formats valuepublic java.util.List getIndexedFormats()
public void setIndexedFormats(java.util.List formats)
formats
- The new indexedFormats valuepublic java.util.List getIndexedFormatsLabels()
public void setIndexedFormatsLabels(java.util.List formatsLabels)
formatsLabels
- The new indexedFormatsLabels valuepublic java.lang.String[] getSifmts()
public void setSifmts(java.lang.String[] selectedIndexedFormats)
selectedIndexedFormats
- The new sifmts 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 java.lang.String[] getKy()
public java.lang.String[] getSelectedIdMapperErrors()
public java.lang.String[] getselectedAccessionStatuses()
public void setselectedAccessionStatuses(java.lang.String[] selectedAccessionStatuses)
selectedAccessionStatuses
- DESCRIPTIONpublic void setSelectedIdMapperErrors(java.lang.String[] selectedIdMapperErrors)
selectedIdMapperErrors
- The new selectedIdMapperErrors valuepublic void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
reset
in class org.apache.struts.action.ActionForm
mapping
- DESCRIPTIONrequest
- DESCRIPTIONpublic void setScs(java.lang.String[] selectedCollections)
selectedCollections
- The new sc valuepublic void setKy(java.lang.String[] ky)
ky
- 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 DocumentMap getDocMap()
public LazyDocumentMap getLazyDocMap()
public DocReader getDocReader()
public MmdRec getMmdRec()
public MmdRec[] getMmdDupesInOtherCollections()
public MmdRec[] getMmdDupesInSameCollection()
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 int getS()
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