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

public class SuggestResourceForm extends SuggestForm
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 Details

    • validatorResults

      protected ValidatorResults validatorResults
      NOT YET DOCUMENTED
  • Constructor Details

    • SuggestResourceForm

      public SuggestResourceForm()
      Constructor
  • Method Details

    • reset

      public void reset(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
      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:
      reset in class SuggestForm
      Parameters:
      mapping - Description of the Parameter
      request - Description of the Parameter
    • clear

      public void clear()
      resets the bean's key attributes
      Overrides:
      clear in class SuggestForm
    • getValidatorResults

      public ValidatorResults getValidatorResults()
      Gets the validatorResults attribute of the SuggestForm object
      Returns:
      The validatorResults value
    • setValidatorResults

      public void setValidatorResults(ValidatorResults results)
      Sets the validatorResults attribute of the SuggestForm object
      Parameters:
      results - The new validatorResults value
    • getDupRecord

      public DupSim getDupRecord()
      Gets the dupRecord attribute of the SuggestResourceForm object
      Returns:
      The dupRecord value
    • getDupRecordId

      public String getDupRecordId()
      Gets the dupRecordId attribute of the SuggestResourceForm object
      Returns:
      The dupRecordId value
    • getTitle

      public String getTitle()
      Gets the title attribute of the SuggestResourceForm object
      Returns:
      The title value
    • setTitle

      public void setTitle(String val)
      Sets the title attribute of the SuggestResourceForm object
      Parameters:
      val - The new title value
    • getUrl

      public String getUrl()
      Gets the url attribute of the SuggestResourceForm object
      Returns:
      The url value
    • setUrl

      public void setUrl(String val)
      Sets the url attribute of the SuggestResourceForm object
      Parameters:
      val - The new url value
    • getDescription

      public String getDescription()
      Gets the description attribute of the SuggestResourceForm object
      Returns:
      The description value
    • setDescription

      public void setDescription(String val)
      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

      public String getGradeRangesDisplay() throws Exception
      Gets a displayable version of the selected gradeRanges
      Returns:
      The gradeRangesDisplay value
      Throws:
      Exception - Description of the Exception
    • getGradeRanges

      public String[] getGradeRanges()
      Gets the gradeRanges attribute of the SuggestResourceForm object
      Returns:
      The gradeRanges value
    • getGradeRangesKeys

      public String[] getGradeRangesKeys()
      Gets the gradeRangesKeys attribute of the SuggestResourceForm object
      Returns:
      The gradeRangesKeys value
    • setGradeRanges

      public void setGradeRanges(String[] vals)
      Sets the gradeRanges attribute of the SuggestResourceForm object
      Parameters:
      vals - The new gradeRanges value
    • getNameFirst

      public String getNameFirst()
      Gets the nameFirst attribute of the SuggestResourceForm object
      Returns:
      The nameFirst value
    • setNameFirst

      public void setNameFirst(String val)
      Sets the nameFirst attribute of the SuggestResourceForm object
      Parameters:
      val - The new nameFirst value
    • getNameLast

      public String getNameLast()
      Gets the nameLast attribute of the SuggestResourceForm object
      Returns:
      The nameLast value
    • setNameLast

      public void setNameLast(String val)
      Sets the nameLast attribute of the SuggestResourceForm object
      Parameters:
      val - The new nameLast value
    • getEmailPrimary

      public String getEmailPrimary()
      Gets the emailPrimary attribute of the SuggestResourceForm object
      Returns:
      The emailPrimary value
    • setEmailPrimary

      public void setEmailPrimary(String val)
      Sets the emailPrimary attribute of the SuggestResourceForm object
      Parameters:
      val - The new emailPrimary value
    • getInstName

      public String getInstName()
      Gets the instName attribute of the SuggestResourceForm object
      Returns:
      The instName value
    • setInstName

      public void setInstName(String val)
      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

      public String[] 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

      public String[] getGradeRangeChoicesSystemKeys()
      Gets the gradeRangeChoicesSystemKeys attribute of the SuggestResourceForm object
      Returns:
      The gradeRangeChoicesSystemKeys value
    • toString

      public String toString()
      Print selected fields of this object for debugging purposes
      Overrides:
      toString in class Object
      Returns:
      String
    • setDebug

      public static void setDebug(boolean db)
      Sets the debug attribute of the SuggestResourceForm object
      Parameters:
      db - The new debug value
    • prtln

      protected final void prtln(String s)
      Output a line of text to standard out, with datestamp, if debug is set to true.
      Parameters:
      s - The String that will be output.