Package org.dlese.dpc.dds.action.form
Class DDSAdminQueryForm
java.lang.Object
org.apache.struts.action.ActionForm
org.dlese.dpc.dds.action.form.VocabForm
org.dlese.dpc.dds.action.form.DDSAdminQueryForm
- All Implemented Interfaces:
Serializable
A Struts Form bean for handling query requests that access a
SimpleLuceneIndex. This class works in conjuction with the DDSAdminQueryAction Struts Action class.- Author:
- John Weatherley
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.dlese.dpc.dds.action.form.VocabForm
audience, field, language, metaFormat, value, vocabFields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the collections that are configured in the repository, sorted.Gets the contextURL attribute of the DDSAdminQueryForm objectGets the DocumentMap for the search result.Gets the result attribute of the DDSAdminQueryForm objectgetEnd()Gets the ending index for the records that will be displayed.Gets the formatLabels attribute of the DDSAdminQueryForm objectGets all possible metadata formats that may be disiminated by the RepositoryManager.Gets the idMapperErrorLabels, as strings.Gets the idMapperErrors that are in the index, as integer strings.Gets the indexedAccessionStatuses attribute of the DDSAdminQueryForm objectGets all formats that exist natively in the index.Gets all formats that exist natively in the index.String[]getKy()Gets the collections that have been selected by the user in the UI.Gets the LazyDocumentMap for the search result.Gets the length of iterations to loop over the results array.Gets the metadata attribute of the DDSAdminQueryForm objectMmdRec[]Gets the IDMapper Mmd records for dupulicate resources in other collections, or null.MmdRec[]Gets the IDMapper Mmd records for dupulicate resources in the same as this resource collection, or null.Gets the IDMapper Mmd record for this ADN resource, otherwise null.Gets the HTTP parameters that should be used to retrieve the next set of results.final StringGets all the parameters that existed in the request other than those used for paiging.Gets all request parameters except the refined query Rq parameter.Gets the numResults attribute of the DDSAdminQueryForm objectGets the offset into the results array to begin iterating.Gets the HTTP parameters that should be used to retrieve the previous set of results.getQ()Gets the query string entered by the user.getQe()Gets the query string entered by the user, encoded for use in a URL string.Gets the reportTitle attribute of the DDSAdminQueryForm objectGets the result attribute of the DDSAdminQueryForm objectGets the search results returned by theSimpleLuceneIndex.getRq()Gets the refined query string entered by the user, used to search within results.intgetS()Gets the s attribute of the DDSAdminQueryForm objectgetSc()Gets the collection that has been selected by the user in the UI via a Select tag.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[]DESCRIPTIONString[]Gets the selectedIdMapperErrors attribute of the DDSAdminQueryForm objectString[]getSfmts()Gets the selected formats.Gets the showQueryOptions attribute of the DDSAdminQueryForm objectString[]Gets the selected indexed formats.getStart()Gets the starting index for the records that will be displayed.Gets the vocabInputState attribute of the DDSAdminQueryForm objectvoidreset(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request) DESCRIPTIONvoidsetContextURL(String contextURL) Sets the contextURL attribute of the DDSAdminQueryForm objectstatic voidsetDebug(boolean db) Sets the debug attribute of the objectvoidsetFormats(List formats) Sets the formats attribute of the DDSAdminQueryForm objectvoidsetIndexedFormats(List formats) Gets all formats that exist natively in the index.voidsetIndexedFormatsLabels(List formatsLabels) Gets all formats that exist natively in the index.voidSets the collection that has been selected by the user in the UI.voidsetMetadata(String metadata) Sets the metadata attribute of the DDSAdminQueryForm objectvoidsetNonPaigingParams(String nonPaigingParams) Sets the nonPaigingParams attribute of the DDSAdminQueryForm objectvoidsetNumPagingRecords(int numPagingRecords) Sets the number of records to display per paiging request.voidSets the q attribute of the DDSAdminQueryForm objectvoidsetReportTitle(String reportTitle) Sets the reportTitle attribute of the DDSAdminQueryForm objectvoidsetRequest(HttpServletRequest request) Sets the request attribute of the DDSAdminQueryForm object.voidSets the result attribute of the DDSAdminQueryForm objectvoidsetResults(ResultDocList results) Sets the search results returned by theSimpleLuceneIndex.voidSets the refined query string entered by the user, used to search within results.voidSets the collection that has been selected by the user in the UI via a Select tag.voidSets the collection that has been selected by the user in the UI.voidsetselectedAccessionStatuses(String[] selectedAccessionStatuses) DESCRIPTIONvoidsetSelectedIdMapperErrors(String[] selectedIdMapperErrors) Sets the selectedIdMapperErrors attribute of the DDSAdminQueryForm objectvoidSets the selected formats.voidsetShowQueryOptions(String showQueryOptions) Sets the showQueryOptions attribute of the DDSAdminQueryForm objectvoidSets the selected indexed formats.voidsetStart(int start) Sets the starting index for the records to display.voidsetVocabInputState(MetadataVocabInputState vocabInputState) Sets the vocabInputState attribute of the DDSAdminQueryForm objectMethods 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, setVocabInterfaceMethods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate, validate
-
Constructor Details
-
DDSAdminQueryForm
public DDSAdminQueryForm()Constructor for the DDSAdminQueryForm object
-
-
Method Details
-
setVocabInputState
Sets the vocabInputState attribute of the DDSAdminQueryForm object- Parameters:
vocabInputState- The new vocabInputState value
-
getVocabInputState
Gets the vocabInputState attribute of the DDSAdminQueryForm object- Returns:
- The vocabInputState value
-
getShowQueryOptions
Gets the showQueryOptions attribute of the DDSAdminQueryForm object- Returns:
- The showQueryOptions value
-
setShowQueryOptions
Sets the showQueryOptions attribute of the DDSAdminQueryForm object- Parameters:
showQueryOptions- The new showQueryOptions value
-
getContextURL
Gets the contextURL attribute of the DDSAdminQueryForm object- Returns:
- The contextURL value
-
setContextURL
Sets the contextURL attribute of the DDSAdminQueryForm object- Parameters:
contextURL- The new contextURL value
-
getIdMapperErrors
Gets the idMapperErrors that are in the index, as integer strings.- Returns:
- The idMapperErrors value
-
getIdMapperErrorLabels
Gets the idMapperErrorLabels, as strings.- Returns:
- The idMapperErrorLabels value
-
getIndexedAccessionStatuses
Gets the indexedAccessionStatuses attribute of the DDSAdminQueryForm object- Returns:
- The indexedAccessionStatuses value
-
getCollections
Gets the collections that are configured in the repository, sorted.- Returns:
- The collections value
-
getFormats
Gets all possible metadata formats that may be disiminated by the RepositoryManager. This includes formats that are available via the XMLConversionService.- Returns:
- The formats value
-
setFormats
Sets the formats attribute of the DDSAdminQueryForm object- Parameters:
formats- The new formats value
-
getIndexedFormats
Gets all formats that exist natively in the index.- Returns:
- The indexedFormats value
-
setIndexedFormats
Gets all formats that exist natively in the index.- Parameters:
formats- The new indexedFormats value
-
getIndexedFormatsLabels
Gets all formats that exist natively in the index.- Returns:
- The indexedFormatsLabels value
-
setIndexedFormatsLabels
Gets all formats that exist natively in the index.- Parameters:
formatsLabels- The new indexedFormatsLabels value
-
getSifmts
Gets the selected indexed formats.- Returns:
- The sfmts value
-
setSifmts
Sets the selected indexed formats.- Parameters:
selectedIndexedFormats- The new sifmts value
-
getFormatLabels
Gets the formatLabels attribute of the DDSAdminQueryForm object- Returns:
- The formatLabels value
-
getSfmts
Gets the selected formats. These include formats that are available via the XMLConversionService.- Returns:
- The sfmts value
-
setSfmts
Sets the selected formats. These include formats that are available via the XMLConversionService.- Parameters:
selectedFormats- The new sfmts value
-
getSc
Gets the collection that has been selected by the user in the UI via a Select tag. For example '0dcc'. For use with a Struts select tag that does not have multiple selection enabled.Sample HTML code using Struts:
<html:select property="sc" size="1" >
<html:options name="queryForm" property="collections" labelProperty="collectionLabels"/>
</html:select>- Returns:
- The selected collection.
-
setSc
Sets the collection that has been selected by the user in the UI via a Select tag. For example '0dcc'. For use with a Struts select tag that does not have multiple selection enabled.- Parameters:
selectedCollection- The new sc value
-
getScs
Gets the collections that have been selected by the user in the UI. For example '0dcc' '0comet'. For use with a Struts select tag that has multiple selection enabled.Sample HTML code using Struts:
<html:select property="scs" size="5" multiple="t">
<html:options name="queryForm" property="collections" labelProperty="collectionLabels"/>
</html:select>- Returns:
- The selected collections.
-
getKy
Gets the collections that have been selected by the user in the UI. For example '06' '006'. For use with a Struts select tag that has multiple selection enabled.- Returns:
- The selected collection keys
-
getSelectedIdMapperErrors
Gets the selectedIdMapperErrors attribute of the DDSAdminQueryForm object- Returns:
- The selectedIdMapperErrors value
-
getselectedAccessionStatuses
DESCRIPTION- Returns:
- DESCRIPTION
-
setselectedAccessionStatuses
DESCRIPTION- Parameters:
selectedAccessionStatuses- DESCRIPTION
-
setSelectedIdMapperErrors
Sets the selectedIdMapperErrors attribute of the DDSAdminQueryForm object- Parameters:
selectedIdMapperErrors- The new selectedIdMapperErrors value
-
reset
DESCRIPTION- Overrides:
resetin classorg.apache.struts.action.ActionForm- Parameters:
mapping- DESCRIPTIONrequest- DESCRIPTION
-
setScs
Sets the collection that has been selected by the user in the UI. For example '0dcc' '0comet'. For use with a Struts select tag that has multiple selection enabled.- Parameters:
selectedCollections- The new sc value
-
setKy
Sets the collection that has been selected by the user in the UI. For example '06' '008'. For use with a Struts select tag that has multiple selection enabled.- Parameters:
ky- The new sc value
-
getScparams
Gets the selected collection(s) parameter to be inserted in the URL that gets the next set of results.- Returns:
- The scparams value.
-
getResults
Gets the search results returned by theSimpleLuceneIndex.- Returns:
- The results value
-
setResults
Sets the search results returned by theSimpleLuceneIndex.- Parameters:
results- The new results value.
-
setResult
Sets the result attribute of the DDSAdminQueryForm object- Parameters:
resultDoc- The new result value
-
getResult
Gets the result attribute of the DDSAdminQueryForm object- Returns:
- The result value
-
getDocMap
Gets the DocumentMap for the search result.- Returns:
- The DocMap value
-
getLazyDocMap
Gets the LazyDocumentMap for the search result.- Returns:
- The LazyDocumentMap value
-
getDocReader
Gets the result attribute of the DDSAdminQueryForm object- Returns:
- The result value
-
getMmdRec
Gets the IDMapper Mmd record for this ADN resource, otherwise null. If the given record is not in ADN, null will be returned.- Returns:
- The Mmd Record, or null
-
getMmdDupesInOtherCollections
Gets the IDMapper Mmd records for dupulicate resources in other collections, or null.- Returns:
- The duplicate Mmd Records, or null
-
getMmdDupesInSameCollection
Gets the IDMapper Mmd records for dupulicate resources in the same as this resource collection, or null.- Returns:
- The duplicate Mmd Records, or null
-
setMetadata
Sets the metadata attribute of the DDSAdminQueryForm object- Parameters:
metadata- The new metadata value
-
getMetadata
Gets the metadata attribute of the DDSAdminQueryForm object- Returns:
- The metadata value
-
getNumResults
Gets the numResults attribute of the DDSAdminQueryForm object- Returns:
- The numResults value
-
getQ
Gets the query string entered by the user.- Returns:
- The query value.
-
getQe
Gets the query string entered by the user, encoded for use in a URL string.- Returns:
- The query value ncoded for use in a URL string.
-
setQ
Sets the q attribute of the DDSAdminQueryForm object- Parameters:
queryString- The new q value
-
getRq
Gets the refined query string entered by the user, used to search within results.- Returns:
- The query value.
-
setRq
Sets the refined query string entered by the user, used to search within results.- Parameters:
refineQueryString- The new rq value
-
getNrqParams
Gets all request parameters except the refined query Rq parameter.- Returns:
- The nrqParams value.
-
setReportTitle
Sets the reportTitle attribute of the DDSAdminQueryForm object- Parameters:
reportTitle- The new reportTitle value
-
getReportTitle
Gets the reportTitle attribute of the DDSAdminQueryForm object- Returns:
- The reportTitle value
-
setStart
public void setStart(int start) Sets the starting index for the records to display.- Parameters:
start- The new start value
-
getStart
Gets the starting index for the records that will be displayed.- Returns:
- The start value
-
getEnd
Gets the ending index for the records that will be displayed.- Returns:
- The end value
-
getOffset
Gets the offset into the results array to begin iterating.- Returns:
- The offset value
-
getS
public int getS()Gets the s attribute of the DDSAdminQueryForm object- Returns:
- The s value
-
getLength
Gets the length of iterations to loop over the results array.- Returns:
- The length value
-
setNumPagingRecords
public void setNumPagingRecords(int numPagingRecords) Sets the number of records to display per paiging request. Defaults to 10.- Parameters:
numPagingRecords- The new numPagingRecords value
-
getNextResultsUrl
Gets the HTTP parameters that should be used to retrieve the next set of results.- Returns:
- Everything after the ? that should be included in the pager URL.
-
getPrevResultsUrl
Gets the HTTP parameters that should be used to retrieve the previous set of results.- Returns:
- Everything after the ? that should be included in the pager URL.
-
setRequest
Sets the request attribute of the DDSAdminQueryForm object.- Parameters:
request- The new request value
-
setNonPaigingParams
Sets the nonPaigingParams attribute of the DDSAdminQueryForm object- Parameters:
nonPaigingParams- The new nonPaigingParams value
-
getNonPaigingParams
Gets all the parameters that existed in the request other than those used for paiging.- Returns:
- The NonPaigingParams returned as an HTTP query string.
-
setDebug
public static void setDebug(boolean db) Sets the debug attribute of the object- Parameters:
db- The new debug value
-