Class EventSearchValidator

java.lang.Object
com.portal.web.fmt.DateValidator
com.portal.web.fmt.EventSearchValidator
All Implemented Interfaces:
Serializable

public class EventSearchValidator extends DateValidator implements Serializable
Performs date invalid input: '&' Amount validation on input date ranges. If errors occur, it throws a RemoteException with the error. If no errors occur, it calls the appropriate method in the controller and sets the input data, specifically, the start time , end time, Start Amount invalid input: '&' End Amount.
See Also:
  • Constructor Details

    • EventSearchValidator

      public EventSearchValidator()
  • Method Details

    • setStartAmount

      public void setStartAmount(String sAmount)
      Sets the input data "start amount."
      Parameters:
      sStartAmount - a String with the start amount value
    • setEndAmount

      public void setEndAmount(String sAmount)
      Sets the input data "end amount."
      Parameters:
      sEndAmount - a String with the end amount value
    • setDateSelection

      public void setDateSelection(String sDateSelection)
      Sets the input data "date selection."
      Parameters:
      sDateSelection - a String with the choice Date Range / All Dates
    • setAmountSelection

      public void setAmountSelection(String sAmountSelection)
      Sets the input data "Amount Selection."
      Parameters:
      sAmountSelection - a String with the choice Amount Range / All Amount
    • validate

      public void validate(ResourceBundle bundle, PControllerBean cb) throws RemoteException
      Validates the dates invalid input: '&' Amounts .
      Overrides:
      validate in class DateValidator
      Parameters:
      bundle - the resource bundle
      cb - the controller bean
      Throws:
      RemoteException - thrown for errors
    • validate

      public void validate(ResourceBundle bundle, PControllerBean cb, javax.servlet.http.HttpSession session) throws RemoteException
      Validates the dates invalid input: '&' Amounts from an HTTP session.
      Overrides:
      validate in class DateValidator
      Parameters:
      bundle - the resource bundle
      cb - the controller bean
      session - the HTTP session
      Throws:
      RemoteException - thrown if the date format is invalid or if start time is greater than the end time OR or Amount is invalid or if From amount is greater than the To Amount