Class DCSViewForm
java.lang.Object
org.apache.struts.action.ActionForm
org.dlese.dpc.schemedit.action.form.SchemEditForm
org.dlese.dpc.schemedit.action.form.DCSViewForm
- All Implemented Interfaces:
Serializable
- Author:
- Jonathan Ostwald
- See Also:
-
Field Summary
Fields inherited from class org.dlese.dpc.schemedit.action.form.SchemEditForm
FALSE, TRUE, UNSPECIFIEDFields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the contextURL attribute of the DCSViewForm objectGets the result attribute of the DCSViewForm objectgetEnd()Gets the ending index for the records that will be displayed.Gets the length of iterations to loop over the results array.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.intGets the numResults attribute of the DCSViewForm 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.getQe()Gets the query string entered by the user, encoded for use in a URL string.Returns relative path to the jsp frag page containing the record view for the format of the result record.Gets the reportTitle attribute of the DCSViewForm objectGets the result attribute of the DCSViewForm objectintGet the index of the current result within the results.Gets the search results returned by theSimpleLuceneIndex.getStart()Gets the starting index for the records that will be displayed.protected static voidOutput a line of text to standard out, with datestamp, if debug is set to true.protected static voidprtlnError(String s) voidsetCollectionFrameworkLoaded(boolean bool) voidsetContextURL(String contextURL) Sets the contextURL attribute of the DCSViewForm objectvoidsetDcsSetInfo(DcsSetInfo dcsSetInfo) static voidsetDebug(boolean db) Sets the debug attribute of the objectvoidsetFrameworkConfigFormat(String format) voidvoidsetNonPaigingParams(String nonPaigingParams) Sets the nonPaigingParams attribute of the DCSViewForm objectvoidsetNumPagingRecords(int numPagingRecords) Sets the number of records to display per paiging request.voidvoidsetReportTitle(String reportTitle) Sets the reportTitle attribute of the DCSViewForm objectvoidsetRequest(HttpServletRequest request) Sets the request attribute of the DCSViewForm object.voidSets the result attribute of the DCSViewForm objectvoidsetResultIndex(int i) voidsetResults(SearchHelper results) Sets the search results.voidsetStart(int start) Sets the starting index for the records to display.validate(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request) Validate the request parameters before the Action sees them).Methods inherited from class org.dlese.dpc.schemedit.action.form.SchemEditForm
clear, clearMultiValuesCache, clearRepeatingFieldsToPrune, exposeNode, getAcceptsNewChoice, getAcceptsNewSibling, getAcceptsNewSubstitionGroupMember, getAdnDocReader, getAnyTypeValueOf, getAsyncJason, getBaseExportDir, getBranchIsRequired, getChildElementCountOf, getChoiceOptions, getCollapseBean, getCollection, getCollectionName, getComboOtherOption, getComboSelectOptions, getCurrentPage, getCurrentPageEncoded, getCurrentStdDocKey, getDcsDataRecord, getDirs, getDiscussionURL, getDocMap, getDuplicateUrlRecs, getDups, getEnumerationOptions, getEnumerationPaths, getEnumerationValuesOf, getFieldInfo, getFieldInfoMap, getFieldInfoReader, getForceValidation, getFramework, getFrameworkName, getGuardedExitPath, getHasChildren, getHash, getInputManager, getLegalEnumerationValuesOf, getMemberCountOf, getMembersOf, getMetadata, getMuiFormattable, getNodeExists, getNodeExistsWithContent, getNodeExistsWithRequiredAttribute, getNodeHasValue, getNodeIsEmpty, getNodeIsExpandable, getNodeIsMissingValue, getPageList, getPageTitle, getParentNodeExists, getPathArg, getPreviousPage, getRecId, getRecords, getRecordsDir, getRepeatingFieldsToPrune, getRepeatingMembersOf, getResultDoc, getSavedContent, getSchemaHelper, getSelectOptions, getServletContext, getSetInfo, getSimilarUrlRecs, getSims, getSubstitutionGroupMemberCountOf, getSubstitutionGroupMembersOf, getSubstitutionGroupOptions, getSuggestionServiceHelper, getTmpArg, getValidatedUrl, getValueOf, getViewNode, getVocab, getVocabLayout, getVocabLayoutNodes, getVocabList, getXmlFormat, setAdnDocReader, setAsyncJason, setCollection, setCurrentPage, setCurrentStdDocKey, setDcsDataRecord, setDiscussionURL, setDocMap, setDuplicateUrlRecs, setDups, setFieldInfoReader, setForceValidation, setFramework, setGuardedExitPath, setHash, setMetadata, setPageList, setPageTitle, setPathArg, setPreviousPage, setRecId, setRecordsDir, setRepeatingField, setResultDoc, setSavedContent, setSetInfo, setSimilarUrlRecs, setSims, setSuggestionServiceHelper, setTmpArg, setValidatedUrl, setValueOf, setVocab, setVocabAudience, setVocabField, setVocabInterface, setVocabLanguageMethods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
-
Constructor Details
-
DCSViewForm
public DCSViewForm()Constructor for the DCSViewForm object
-
-
Method Details
-
getDcsSetInfo
-
setDcsSetInfo
-
getPrevId
-
setPrevId
-
getNextId
-
setNextId
-
getContextURL
Gets the contextURL attribute of the DCSViewForm object- Overrides:
getContextURLin classSchemEditForm- Returns:
- The contextURL value
-
setContextURL
Sets the contextURL attribute of the DCSViewForm object- Overrides:
setContextURLin classSchemEditForm- Parameters:
contextURL- The new contextURL value
-
getResults
Gets the search results returned by theSimpleLuceneIndex.- Returns:
- The results value
-
setCollectionFrameworkLoaded
public void setCollectionFrameworkLoaded(boolean bool) -
getCollectionFrameworkLoaded
public boolean getCollectionFrameworkLoaded() -
setResults
Sets the search results. -
setResult
Sets the result attribute of the DCSViewForm object- Parameters:
resultDoc- The new result value
-
getResult
Gets the result attribute of the DCSViewForm object- Returns:
- The result value
-
setResultIndex
public void setResultIndex(int i) -
getResultIndex
public int getResultIndex()Get the index of the current result within the results. Returns -1 if result not found. -
getRecordViewPage
Returns relative path to the jsp frag page containing the record view for the format of the result record. -
getDocReader
Gets the result attribute of the DCSViewForm object- Returns:
- The result value
-
getNumResults
Gets the numResults attribute of the DCSViewForm object- Returns:
- The numResults value
-
setReportTitle
Sets the reportTitle attribute of the DCSViewForm object- Parameters:
reportTitle- The new reportTitle value
-
getReportTitle
Gets the reportTitle attribute of the DCSViewForm 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
-
getLength
Gets the length of iterations to loop over the results array.- Returns:
- The length value
-
getNumPagingRecords
public int getNumPagingRecords() -
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
-
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.
-
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 DCSViewForm object.- Parameters:
request- The new request value
-
getFrameworkConfigFormat
-
setFrameworkConfigFormat
-
setNonPaigingParams
Sets the nonPaigingParams attribute of the DCSViewForm 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.
-
validate
public SchemEditActionErrors validate(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request) Description copied from class:SchemEditFormValidate the request parameters before the Action sees them). NOTE: "validate" must be 2set to TRUE in action mapping (see struts-config) for this method to be called.NOTE: is this necessary for the entities to get displayed correctly in the editing forms??
- Overrides:
validatein classSchemEditForm- Parameters:
mapping- NOT YET DOCUMENTEDrequest- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-
prtln
Output a line of text to standard out, with datestamp, if debug is set to true.- Parameters:
s- The String that will be output.
-
prtlnError
-
setDebug
public static void setDebug(boolean db) Sets the debug attribute of the object- Parameters:
db- The new debug value
-