Package org.dlese.dpc.dds.action.form
Class DDSReportingForm
java.lang.Object
org.apache.struts.action.ActionForm
org.dlese.dpc.dds.action.form.DDSReportingForm
- All Implemented Interfaces:
Serializable
A bean that holds data for DDS reporting.
- Author:
- John Weatherley
- See Also:
-
Field Summary
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the collection attribute of the DDSReportingForm objectprotected static final StringgetDs()Return a string for the current time and date, sutiable for display in log files and output to standout:Gets the errorMsg attribute of the DDSReportingForm objectgetId()Gets the id attribute of the DDSReportingForm objectGets a list of encoded IDs for index field 'id' that show being in more than one record in the index.getIndex()Gets the index attribute of the DDSReportingForm objectGets the indexToUse attribute of the DDSReportingForm objectMmdRec[]Gets the mmdRecsDupsOther attribute of the DDSReportingForm objectMmdRec[]Gets the mmdRecsDupsSame attribute of the DDSReportingForm objectGets the myMmdRec attribute of the DDSReportingForm objectGets the numResults attribute of the DDSReportingForm objectintGets the numTerms attribute of the DDSReportingForm objectString[]Gets the originalWords attribute of the DDSReportingForm objectGets the results attribute of the DDSReportingForm objectString[]getStems()Gets the stems attribute of the DDSReportingForm objectGets the termCountFields attribute of the DDSReportingForm objectGets the termCountMap attribute of the DDSReportingForm objectprotected final voidOutput a line of text to standard out, with datestamp, if debug is set to true.protected final voidOutput a line of text to error out, with datestamp.voidSets the fields to generate term counts for, separated by spaces.voidsetCalculateCountsForFieldsAsArray(String[] fields) Sets the fields to generate term counts for, or null for none.voidsetCollection(String collection) Sets the collection attribute of the DDSReportingForm objectstatic voidsetDebug(boolean isDebugOuput) Sets the debug attributevoidsetErrorMsg(String errorMsg) Sets the errorMsg attribute of the DDSReportingForm objectvoidSets the id attribute of the DDSReportingForm objectvoidsetIndex(SimpleLuceneIndex newIndex) Sets the index attribute of the DDSReportingForm objectvoidsetIndexToUse(String value) Sets the indexToUse attribute of the DDSReportingForm objectvoidsetResults(ResultDocList results) Sets the results attribute of the DDSReportingForm objectvoidSets the stemWords attribute of the DDSReportingForm objectMethods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate
-
Constructor Details
-
DDSReportingForm
public DDSReportingForm()Constructor for the RepositoryForm object
-
-
Method Details
-
getIndex
Gets the index attribute of the DDSReportingForm object- Returns:
- The index value
-
setIndex
Sets the index attribute of the DDSReportingForm object- Parameters:
newIndex- The new index value
-
setId
Sets the id attribute of the DDSReportingForm object- Parameters:
id- The new id value
-
getId
Gets the id attribute of the DDSReportingForm object- Returns:
- The id value
-
setCollection
Sets the collection attribute of the DDSReportingForm object- Parameters:
collection- The new collection value
-
getCollection
Gets the collection attribute of the DDSReportingForm object- Returns:
- The collection value
-
getMmdRecsDupsSame
Gets the mmdRecsDupsSame attribute of the DDSReportingForm object- Returns:
- The mmdRecsDupsSame value
-
getMyMmdRec
Gets the myMmdRec attribute of the DDSReportingForm object- Returns:
- The myMmdRec value
-
getMmdRecsDupsOther
Gets the mmdRecsDupsOther attribute of the DDSReportingForm object- Returns:
- The mmdRecsDupsOther value
-
setCalculateCountsForFields
Sets the fields to generate term counts for, separated by spaces.- Parameters:
s- The new calculateCountsForFields value
-
setCalculateCountsForFieldsAsArray
Sets the fields to generate term counts for, or null for none.- Parameters:
fields- The new calculateCountsForFields value
-
getTermCountFields
Gets the termCountFields attribute of the DDSReportingForm object- Returns:
- The termCountFields value
-
getNumTerms
public int getNumTerms()Gets the numTerms attribute of the DDSReportingForm object- Returns:
- The numTerms value
-
setStemWords
Sets the stemWords attribute of the DDSReportingForm object- Parameters:
s- The new stemWords value
-
getOriginalWords
Gets the originalWords attribute of the DDSReportingForm object- Returns:
- The originalWords value
-
getStems
Gets the stems attribute of the DDSReportingForm object- Returns:
- The stems value
-
getTermCountMap
Gets the termCountMap attribute of the DDSReportingForm object- Returns:
- The termCountMap value
-
setIndexToUse
Sets the indexToUse attribute of the DDSReportingForm object- Parameters:
value- The new indexToUse value
-
getIndexToUse
Gets the indexToUse attribute of the DDSReportingForm object- Returns:
- The indexToUse value
-
setErrorMsg
Sets the errorMsg attribute of the DDSReportingForm object- Parameters:
errorMsg- The new errorMsg value
-
getErrorMsg
Gets the errorMsg attribute of the DDSReportingForm object- Returns:
- The errorMsg value
-
getResults
Gets the results attribute of the DDSReportingForm object- Returns:
- The results value
-
setResults
Sets the results attribute of the DDSReportingForm object- Parameters:
results- The new results value
-
getNumResults
Gets the numResults attribute of the DDSReportingForm object- Returns:
- The numResults value
-
getIdsInMultipleRecords
Gets a list of encoded IDs for index field 'id' that show being in more than one record in the index.- Returns:
- A list of encoded IDs
-
getDs
Return a string for the current time and date, sutiable for display in log files and output to standout:- Returns:
- The dateStamp value
-
prtlnErr
Output a line of text to error out, with datestamp.- Parameters:
s- The text that will be output to error out.
-
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.
-
setDebug
public static void setDebug(boolean isDebugOuput) Sets the debug attribute- Parameters:
isDebugOuput- The new debug value
-