|
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.DDSViewResourceForm org.dlese.dpc.dds.action.form.DDSQueryForm
public final class DDSQueryForm
A Struts Form bean for handling DDS query requests that access a SimpleLuceneIndex
. This class works in conjuction with
the DDSQueryAction Struts Action class.
DDSQueryAction
,
Serialized FormNested Class Summary | |
---|---|
class |
DDSQueryForm.ParamPair
Holds paramter, value pairs. |
Field Summary |
---|
Fields inherited from class org.apache.struts.action.ActionForm |
---|
multipartRequestHandler, servlet |
Constructor Summary | |
---|---|
DDSQueryForm()
Constructor for the DDSQueryForm object |
Method Summary | |
---|---|
void |
addDateString(String add)
Adds a feature to the DateString attribute of the DDSQueryForm object |
void |
addDateStringForUI(String add)
Adds a feature to the DateStringForUI attribute of the DDSQueryForm object |
void |
clearDateStrings()
Description of the Method |
String |
getContextURL()
Gets the contextURL attribute of the SimpleQueryForm object |
String |
getCs()
Gets the cs attribute of the DDSQueryForm object |
ArrayList |
getDateStrings()
Gets the dateStrings attribute of the DDSQueryForm object |
String |
getDateStringsForUI()
Gets the dateStringsForUI attribute of the DDSQueryForm object |
String |
getEnd()
Gets the ending index for the records that will be displayed. |
String |
getError()
Gets the error attribute of the DDSQueryForm object |
String |
getGr()
Gets the gr attribute of the DDSQueryForm object |
String |
getHasViewableReview(int index)
Gets the hasViewableReview attribute of the DDSQueryForm object |
String |
getIsEmptySearch()
If no keyword entered and no vocabs have been selected, return "true", otherwise return "false" |
String |
getIsPartOfDRC(int index)
Is the resource in the DRC? |
String |
getKeywords()
Gets the keywords attribute of the DDSQueryForm object |
String |
getKeywordsTruncated()
Gets the user keywords, truncated for feedback display |
String |
getKy()
Gets the ky attribute of the DDSQueryForm object |
String |
getLength()
Gets the length of iterations to loop over the results array. |
String |
getMetadata()
Gets the metadata attribute of the SimpleQueryForm object |
ArrayList |
getNrqParams()
Gets all request parameters except the refined query Rq parameter. |
String |
getNumResults()
Gets the numResults attribute of the SimpleQueryForm object |
String |
getOffset()
Gets the offset into the results array to begin iterating. |
String |
getPagingLinks()
Gets the pagingLinks attribute of the DDSQueryForm object |
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 |
getRe()
Gets the re attribute of the DDSQueryForm object |
String |
getResourceResultLinkRedirectURL()
Gets the resourceResultLinkRedirectURL attribute of the DDSQueryForm object |
ResultDocList |
getResults()
Gets the search results returned by the SimpleLuceneIndex . |
List |
getResultsList()
Gets the search results returned by the SimpleLuceneIndex as a List (compatible with c:forEach
iteration) |
String |
getRq()
Gets the refined query string entered by the user, used to search within results. |
String |
getSearchType()
Gets the searchType attribute of the DDSQueryForm object |
String |
getStart()
Gets the starting index for the records that will be displayed. |
String |
getSu()
Gets the su attribute of the DDSQueryForm object |
String |
getTotalNumResources()
Gets the total number of resources that are currently discoverable. |
String |
getView()
view indicates which flavor of UI display is rendered (RSS for example) |
MetadataVocabInputState |
getVocabInputState()
Gets the vocab attribute of the DDSQueryForm object |
String |
getWnfrom()
Gets the wnfrom attribute of the DDSQueryForm object |
void |
resetPagingLinks()
Description of the Method |
void |
setContextURL(String contextURL)
Sets the contextURL attribute of the SimpleQueryForm object |
void |
setCs(String contentStandard)
Sets the cs attribute of the DDSQueryForm object |
static void |
setDebug(boolean db)
Sets the debug attribute of the object |
void |
setError(String error)
Sets the error attribute of the DDSQueryForm object |
void |
setGr(String gradeLevel)
Sets the gr attribute of the DDSQueryForm object |
void |
setIsEmptySearch(boolean isEmptySearch)
Sets the isEmptySearch attribute of the DDSQueryForm object |
void |
setKy(String collection)
Sets the ky attribute of the DDSQueryForm object |
void |
setMetadata(String metadata)
Sets the metadata attribute of the SimpleQueryForm object |
void |
setQ(String queryString)
Sets the q attribute of the SimpleQueryForm object |
void |
setRe(String resourceType)
Sets the re attribute of the DDSQueryForm object |
void |
setRequest(HttpServletRequest request)
Sets the request attribute of the SimpleQueryForm object. |
void |
setResourceResultLinkRedirectURL(String str)
Sets the resourceResultLinkRedirectURL attribute of the DDSQueryForm 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 |
setSearchType(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(String subject)
Sets the su attribute of the DDSQueryForm object |
void |
setTotalNumResources(int numResources)
Sets the totalNumResources that are currently discoverable. |
void |
setView(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(String wnfrom)
Sets the wnfrom attribute of the DDSQueryForm object |
Methods inherited from class org.apache.struts.action.ActionForm |
---|
getMultipartRequestHandler, getServlet, getServletWrapper, reset, 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 DDSQueryForm()
Method Detail |
---|
public void resetPagingLinks()
public void setView(String view)
view
- The new view valuepublic String getView()
public void setWnfrom(String wnfrom)
wnfrom
- The new wnfrom valuepublic String getWnfrom()
public ArrayList getDateStrings()
public void clearDateStrings()
public void addDateString(String add)
add
- The feature to be added to the DateString attributepublic void addDateStringForUI(String add)
add
- The feature to be added to the DateStringForUI attributepublic String getDateStringsForUI()
public void setSearchType(String str)
str
- The new searchType valuepublic String getSearchType()
public void setVocabInputState(MetadataVocabInputState vocabInputState)
vocabInputState
- The new vocabInputState valuepublic MetadataVocabInputState getVocabInputState()
public void setError(String error)
setError
in class DDSViewResourceForm
error
- The new error valuepublic String getError()
getError
in class DDSViewResourceForm
public void setResourceResultLinkRedirectURL(String str)
setResourceResultLinkRedirectURL
in class DDSViewResourceForm
str
- The new resourceResultLinkRedirectURL valuepublic String getResourceResultLinkRedirectURL()
getResourceResultLinkRedirectURL
in class DDSViewResourceForm
public String getContextURL()
public void setContextURL(String contextURL)
contextURL
- The new contextURL valuepublic ResultDocList getResults()
SimpleLuceneIndex
.
public List getResultsList()
SimpleLuceneIndex
as a List (compatible with c:forEach
iteration)
public void setResults(ResultDocList results)
SimpleLuceneIndex
.
results
- The new results value.public String getIsPartOfDRC(int index)
index
-
public String getHasViewableReview(int index)
index
-
public void setMetadata(String metadata)
metadata
- The new metadata valuepublic String getMetadata()
public String getNumResults()
public String getTotalNumResources()
public void setTotalNumResources(int numResources)
numResources
- The totalNumResources that are currently discoverable.public String getQ()
public String getGr()
public void setGr(String gradeLevel)
gradeLevel
- The new gr valuepublic String getRe()
public void setRe(String resourceType)
resourceType
- The new re valuepublic String getCs()
public void setCs(String contentStandard)
contentStandard
- The new cs valuepublic String getSu()
public void setSu(String subject)
subject
- The new su valuepublic String getKy()
public void setKy(String collection)
collection
- The new ky valuepublic String getQe()
public String getKeywordsTruncated()
public String getKeywords()
public void setQ(String queryString)
queryString
- The new q valuepublic String getRq()
public void setRq(String refineQueryString)
refineQueryString
- The new rq valuepublic String getIsEmptySearch()
public void setIsEmptySearch(boolean isEmptySearch)
isEmptySearch
- The new isEmptySearch valuepublic ArrayList getNrqParams()
public void setStart(int start)
start
- The new start valuepublic String getOffset()
public String getLength()
public String getPagingLinks()
public String getStart()
public String getEnd()
public void setRequest(HttpServletRequest request)
request
- The new request valuepublic 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 |