Class SuggestResourceForm
java.lang.Object
org.apache.struts.action.ActionForm
org.dlese.dpc.suggest.action.form.SuggestForm
org.dlese.dpc.suggest.action.form.SuggestResourceForm
- All Implemented Interfaces:
Serializable
ActionForm bean for handling requests that access a
SuggestionRecord
the QA DataBase and Records.- Version:
- $Id: SuggestResourceForm.java,v 1.3 2009/03/20 23:34:00 jweather Exp $
- Author:
- ostwald
- See Also:
-
Field Summary
FieldsFields inherited from class org.dlese.dpc.suggest.action.form.SuggestForm
coppa, popup, schemaHelper, vocabFields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()resets the bean's key attributesGets the description attribute of the SuggestResourceForm objectGets the dupRecord attribute of the SuggestResourceForm objectGets the dupRecordId attribute of the SuggestResourceForm objectGets the emailPrimary attribute of the SuggestResourceForm objectString[]Grabs the collection keys from the DPC keys schema.String[]Gets the gradeRangeChoicesSystemKeys attribute of the SuggestResourceForm objectorg.apache.struts.util.LabelValueBean[]Create a LabelValueBean array holding the gradeRangeChoices and LabelsString[]Gets the gradeRanges attribute of the SuggestResourceForm objectGets a displayable version of the selected gradeRangesString[]Gets the gradeRangesKeys attribute of the SuggestResourceForm objectGets the instName attribute of the SuggestResourceForm objectGets the nameFirst attribute of the SuggestResourceForm objectGets the nameLast attribute of the SuggestResourceForm objectbooleanGets the preserveGradeRanges attribute of the SuggestResourceForm objectgetTitle()Gets the title attribute of the SuggestResourceForm objectgetUrl()Gets the url attribute of the SuggestResourceForm objectGets the validatorResults attribute of the SuggestForm objectprotected final voidOutput a line of text to standard out, with datestamp, if debug is set to true.voidreset(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request) We need this method to allow gradeRange to be zero'd out as a multibox.static voidsetDebug(boolean db) Sets the debug attribute of the SuggestResourceForm objectvoidsetDescription(String val) Sets the description attribute of the SuggestResourceForm objectvoidsetEmailPrimary(String val) Sets the emailPrimary attribute of the SuggestResourceForm objectvoidsetGradeRanges(String[] vals) Sets the gradeRanges attribute of the SuggestResourceForm objectvoidsetInstName(String val) Sets the instName attribute of the SuggestResourceForm objectvoidsetNameFirst(String val) Sets the nameFirst attribute of the SuggestResourceForm objectvoidsetNameLast(String val) Sets the nameLast attribute of the SuggestResourceForm objectvoidsetPreserveGradeRanges(boolean val) Sets the preserveGradeRanges attribute of the SuggestResourceForm objectvoidSets the title attribute of the SuggestResourceForm objectvoidSets the url attribute of the SuggestResourceForm objectvoidsetValidatorResults(ValidatorResults results) Sets the validatorResults attribute of the SuggestForm objecttoString()Print selected fields of this object for debugging purposesMethods inherited from class org.dlese.dpc.suggest.action.form.SuggestForm
getCoppa, getPopup, setCoppa, setPopup, setSchemaHelper, setVocabMethods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate, validate
-
Field Details
-
validatorResults
NOT YET DOCUMENTED
-
-
Constructor Details
-
SuggestResourceForm
public SuggestResourceForm()Constructor
-
-
Method Details
-
reset
We need this method to allow gradeRange to be zero'd out as a multibox. But we also need the preserveGradeRanges to protect from a reset to support the edit/display/re-edit cycle. preserveGradeRanges is set in SuggestResourceAction.- Overrides:
resetin classSuggestForm- Parameters:
mapping- Description of the Parameterrequest- Description of the Parameter
-
clear
public void clear()resets the bean's key attributes- Overrides:
clearin classSuggestForm
-
getValidatorResults
Gets the validatorResults attribute of the SuggestForm object- Returns:
- The validatorResults value
-
setValidatorResults
Sets the validatorResults attribute of the SuggestForm object- Parameters:
results- The new validatorResults value
-
getDupRecord
Gets the dupRecord attribute of the SuggestResourceForm object- Returns:
- The dupRecord value
-
getDupRecordId
Gets the dupRecordId attribute of the SuggestResourceForm object- Returns:
- The dupRecordId value
-
getTitle
Gets the title attribute of the SuggestResourceForm object- Returns:
- The title value
-
setTitle
Sets the title attribute of the SuggestResourceForm object- Parameters:
val- The new title value
-
getUrl
Gets the url attribute of the SuggestResourceForm object- Returns:
- The url value
-
setUrl
Sets the url attribute of the SuggestResourceForm object- Parameters:
val- The new url value
-
getDescription
Gets the description attribute of the SuggestResourceForm object- Returns:
- The description value
-
setDescription
Sets the description attribute of the SuggestResourceForm object- Parameters:
val- The new description value
-
setPreserveGradeRanges
public void setPreserveGradeRanges(boolean val) Sets the preserveGradeRanges attribute of the SuggestResourceForm object- Parameters:
val- The new preserveGradeRanges value
-
getPreserveGradeRanges
public boolean getPreserveGradeRanges()Gets the preserveGradeRanges attribute of the SuggestResourceForm object- Returns:
- The preserveGradeRanges value
-
getGradeRangesDisplay
Gets a displayable version of the selected gradeRanges- Returns:
- The gradeRangesDisplay value
- Throws:
Exception- Description of the Exception
-
getGradeRanges
Gets the gradeRanges attribute of the SuggestResourceForm object- Returns:
- The gradeRanges value
-
getGradeRangesKeys
Gets the gradeRangesKeys attribute of the SuggestResourceForm object- Returns:
- The gradeRangesKeys value
-
setGradeRanges
Sets the gradeRanges attribute of the SuggestResourceForm object- Parameters:
vals- The new gradeRanges value
-
getNameFirst
Gets the nameFirst attribute of the SuggestResourceForm object- Returns:
- The nameFirst value
-
setNameFirst
Sets the nameFirst attribute of the SuggestResourceForm object- Parameters:
val- The new nameFirst value
-
getNameLast
Gets the nameLast attribute of the SuggestResourceForm object- Returns:
- The nameLast value
-
setNameLast
Sets the nameLast attribute of the SuggestResourceForm object- Parameters:
val- The new nameLast value
-
getEmailPrimary
Gets the emailPrimary attribute of the SuggestResourceForm object- Returns:
- The emailPrimary value
-
setEmailPrimary
Sets the emailPrimary attribute of the SuggestResourceForm object- Parameters:
val- The new emailPrimary value
-
getInstName
Gets the instName attribute of the SuggestResourceForm object- Returns:
- The instName value
-
setInstName
Sets the instName attribute of the SuggestResourceForm object- Parameters:
val- The new instName value
-
getGradeRangeOptions
public org.apache.struts.util.LabelValueBean[] getGradeRangeOptions()Create a LabelValueBean array holding the gradeRangeChoices and Labels- Returns:
- The gradeRangeOptions value
-
getGradeRangeChoices
Grabs the collection keys from the DPC keys schema. Why couldn't we simply specify the DataType spec and have the values by retrieved automatically?- Returns:
- A list of valid colleciton keys.
-
getGradeRangeChoicesSystemKeys
Gets the gradeRangeChoicesSystemKeys attribute of the SuggestResourceForm object- Returns:
- The gradeRangeChoicesSystemKeys value
-
toString
Print selected fields of this object for debugging purposes -
setDebug
public static void setDebug(boolean db) Sets the debug attribute of the SuggestResourceForm object- Parameters:
db- The new debug value
-
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.
-