public final class DDSQueryForm extends DDSViewResourceForm implements java.io.Serializable
SimpleLuceneIndex
. This class works in conjuction with
the DDSQueryAction Struts Action class.DDSQueryAction
,
Serialized FormModifier and Type | Class and Description |
---|---|
class |
DDSQueryForm.ParamPair
Holds paramter, value pairs.
|
Constructor and Description |
---|
DDSQueryForm()
Constructor for the DDSQueryForm object
|
Modifier and Type | Method and Description |
---|---|
void |
addDateString(java.lang.String add)
Adds a feature to the DateString attribute of the DDSQueryForm object
|
void |
addDateStringForUI(java.lang.String add)
Adds a feature to the DateStringForUI attribute of the DDSQueryForm object
|
void |
clearDateStrings()
Description of the Method
|
java.lang.String |
getContextURL()
Gets the contextURL attribute of the SimpleQueryForm object
|
java.lang.String |
getCs()
Gets the cs attribute of the DDSQueryForm object
|
java.util.ArrayList |
getDateStrings()
Gets the dateStrings attribute of the DDSQueryForm object
|
java.lang.String |
getDateStringsForUI()
Gets the dateStringsForUI attribute of the DDSQueryForm object
|
java.lang.String |
getEnd()
Gets the ending index for the records that will be displayed.
|
java.lang.String |
getError()
Gets the error attribute of the DDSQueryForm object
|
java.lang.String |
getGr()
Gets the gr attribute of the DDSQueryForm object
|
java.lang.String |
getHasViewableReview(int index)
Gets the hasViewableReview attribute of the DDSQueryForm object
|
java.lang.String |
getIsEmptySearch()
If no keyword entered and no vocabs have been selected, return "true",
otherwise return "false"
|
java.lang.String |
getIsPartOfDRC(int index)
Is the resource in the DRC?
|
java.lang.String |
getKeywords()
Gets the keywords attribute of the DDSQueryForm object
|
java.lang.String |
getKeywordsTruncated()
Gets the user keywords, truncated for feedback display
|
java.lang.String |
getKy()
Gets the ky attribute of the DDSQueryForm object
|
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 SimpleQueryForm object
|
java.util.ArrayList |
getNrqParams()
Gets all request parameters except the refined query Rq parameter.
|
java.lang.String |
getNumResults()
Gets the numResults attribute of the SimpleQueryForm object
|
java.lang.String |
getOffset()
Gets the offset into the results array to begin iterating.
|
java.lang.String |
getPagingLinks()
Gets the pagingLinks attribute of the DDSQueryForm object
|
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 |
getRe()
Gets the re attribute of the DDSQueryForm object
|
java.lang.String |
getResourceResultLinkRedirectURL()
Gets the resourceResultLinkRedirectURL attribute of the DDSQueryForm object
|
ResultDocList |
getResults()
Gets the search results returned by the
SimpleLuceneIndex . |
java.util.List |
getResultsList()
Gets the search results returned by the
SimpleLuceneIndex as a List (compatible with c:forEach
iteration) |
java.lang.String |
getRq()
Gets the refined query string entered by the user, used to search within
results.
|
java.lang.String |
getSearchType()
Gets the searchType attribute of the DDSQueryForm object
|
java.lang.String |
getStart()
Gets the starting index for the records that will be displayed.
|
java.lang.String |
getSu()
Gets the su attribute of the DDSQueryForm object
|
java.lang.String |
getTotalNumResources()
Gets the total number of resources that are currently discoverable.
|
java.lang.String |
getView()
view indicates which flavor of UI display is rendered (RSS for example)
|
MetadataVocabInputState |
getVocabInputState()
Gets the vocab attribute of the DDSQueryForm object
|
java.lang.String |
getWnfrom()
Gets the wnfrom attribute of the DDSQueryForm object
|
void |
resetPagingLinks()
Description of the Method
|
void |
setContextURL(java.lang.String contextURL)
Sets the contextURL attribute of the SimpleQueryForm object
|
void |
setCs(java.lang.String contentStandard)
Sets the cs attribute of the DDSQueryForm object
|
static void |
setDebug(boolean db)
Sets the debug attribute of the object
|
void |
setError(java.lang.String error)
Sets the error attribute of the DDSQueryForm object
|
void |
setGr(java.lang.String gradeLevel)
Sets the gr attribute of the DDSQueryForm object
|
void |
setIsEmptySearch(boolean isEmptySearch)
Sets the isEmptySearch attribute of the DDSQueryForm object
|
void |
setKy(java.lang.String collection)
Sets the ky attribute of the DDSQueryForm object
|
void |
setMetadata(java.lang.String metadata)
Sets the metadata attribute of the SimpleQueryForm object
|
void |
setQ(java.lang.String queryString)
Sets the q attribute of the SimpleQueryForm object
|
void |
setRe(java.lang.String resourceType)
Sets the re attribute of the DDSQueryForm object
|
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Sets the request attribute of the SimpleQueryForm object.
|
void |
setResourceResultLinkRedirectURL(java.lang.String str)
Sets the resourceResultLinkRedirectURL attribute of the DDSQueryForm 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 |
setSearchType(java.lang.String str)
Sets the searchType attribute of the DDSQueryForm object
|
void |
setStart(int start)
Sets the starting index for the records to display.
|
void |
setSu(java.lang.String subject)
Sets the su attribute of the DDSQueryForm object
|
void |
setTotalNumResources(int numResources)
Sets the totalNumResources that are currently discoverable.
|
void |
setView(java.lang.String view)
view indicates which flavor of UI display is rendered (RSS for example)
|
void |
setVocabInputState(MetadataVocabInputState vocabInputState)
Sets the vocabInputState attribute of the DDSQueryForm object
|
void |
setWnfrom(java.lang.String wnfrom)
Sets the wnfrom attribute of the DDSQueryForm object
|
clearVocabCache, getCachedVocabValuesInOrder, getCollectionDescription, getForwardUrl, getHasChallengingLearningContexts, getHasDrcReviews, getHasIdeasForUse, getHasOtherReviews, getHasReviews, getHasTeachingTips, getIdSearchTitle, getIdSearchUrl, getIsDrcReview, getIsDrcReviewInProgress, getItemDocReader, getNumRecordCollections, getPathwayUrl, getPrimaryRequestedCollectionKey, getPrimaryResultDoc, getPrimaryResultDocId, getRecordCollection, getRecordCollections, getRecordFilename, getRecordId, getRecordIds, getRecordIds, getRelDisplayed, getResourceTitle, getResourceUrl, getVocab, getVocabCacheFeedbackString, setCollectionKey, setContextUrl, setForwardUrl, setIdSearch, setPrimaryResultDoc, setPrimaryResultDocCollectionKey, setPrimaryResultDocId, setRecordFilename, setRecordId, setRelDisplayed, setSearcher, setSystem, setVocab, setVocabCacheFeedbackString, setVocabCacheGroup, setVocabCacheValue
public void resetPagingLinks()
public void setView(java.lang.String view)
view
- The new view valuepublic java.lang.String getView()
public void setWnfrom(java.lang.String wnfrom)
wnfrom
- The new wnfrom valuepublic java.lang.String getWnfrom()
public java.util.ArrayList getDateStrings()
public void clearDateStrings()
public void addDateString(java.lang.String add)
add
- The feature to be added to the DateString attributepublic void addDateStringForUI(java.lang.String add)
add
- The feature to be added to the DateStringForUI attributepublic java.lang.String getDateStringsForUI()
public void setSearchType(java.lang.String str)
str
- The new searchType valuepublic java.lang.String getSearchType()
public void setVocabInputState(MetadataVocabInputState vocabInputState)
vocabInputState
- The new vocabInputState valuepublic MetadataVocabInputState getVocabInputState()
public void setError(java.lang.String error)
setError
in class DDSViewResourceForm
error
- The new error valuepublic java.lang.String getError()
getError
in class DDSViewResourceForm
public void setResourceResultLinkRedirectURL(java.lang.String str)
setResourceResultLinkRedirectURL
in class DDSViewResourceForm
str
- The new resourceResultLinkRedirectURL valuepublic java.lang.String getResourceResultLinkRedirectURL()
getResourceResultLinkRedirectURL
in class DDSViewResourceForm
public java.lang.String getContextURL()
public void setContextURL(java.lang.String contextURL)
contextURL
- The new contextURL valuepublic ResultDocList getResults()
SimpleLuceneIndex
.public java.util.List getResultsList()
SimpleLuceneIndex
as a List (compatible with c:forEach
iteration)public void setResults(ResultDocList results)
SimpleLuceneIndex
.results
- The new results value.public java.lang.String getIsPartOfDRC(int index)
index
- public java.lang.String getHasViewableReview(int index)
index
- 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 getTotalNumResources()
public void setTotalNumResources(int numResources)
numResources
- The totalNumResources that are currently discoverable.public java.lang.String getQ()
public java.lang.String getGr()
public void setGr(java.lang.String gradeLevel)
gradeLevel
- The new gr valuepublic java.lang.String getRe()
public void setRe(java.lang.String resourceType)
resourceType
- The new re valuepublic java.lang.String getCs()
public void setCs(java.lang.String contentStandard)
contentStandard
- The new cs valuepublic java.lang.String getSu()
public void setSu(java.lang.String subject)
subject
- The new su valuepublic java.lang.String getKy()
public void setKy(java.lang.String collection)
collection
- The new ky valuepublic java.lang.String getQe()
public java.lang.String getKeywordsTruncated()
public java.lang.String getKeywords()
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.lang.String getIsEmptySearch()
public void setIsEmptySearch(boolean isEmptySearch)
isEmptySearch
- The new isEmptySearch valuepublic java.util.ArrayList getNrqParams()
public void setStart(int start)
start
- The new start valuepublic java.lang.String getOffset()
public java.lang.String getLength()
public java.lang.String getPagingLinks()
public java.lang.String getStart()
public java.lang.String getEnd()
public void setRequest(javax.servlet.http.HttpServletRequest request)
request
- The new request valuepublic static void setDebug(boolean db)
db
- The new debug value