Package com.portal.web.fmt
Class EventSearchValidator
java.lang.Object
com.portal.web.fmt.DateValidator
com.portal.web.fmt.EventSearchValidator
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAmountSelection(String sAmountSelection) Sets the input data "Amount Selection."voidsetDateSelection(String sDateSelection) Sets the input data "date selection."voidsetEndAmount(String sAmount) Sets the input data "end amount."voidsetStartAmount(String sAmount) Sets the input data "start amount."voidvalidate(ResourceBundle bundle, PControllerBean cb) Validates the dates invalid input: '&' Amounts .voidvalidate(ResourceBundle bundle, PControllerBean cb, javax.servlet.http.HttpSession session) Validates the dates invalid input: '&' Amounts from an HTTP session.Methods inherited from class com.portal.web.fmt.DateValidator
setEndDate, setEndDay, setEndMonth, setEndYear, setStartDate, setStartDay, setStartMonth, setStartYear
-
Constructor Details
-
EventSearchValidator
public EventSearchValidator()
-
-
Method Details
-
setStartAmount
Sets the input data "start amount."- Parameters:
sStartAmount- aStringwith the start amount value
-
setEndAmount
Sets the input data "end amount."- Parameters:
sEndAmount- aStringwith the end amount value
-
setDateSelection
Sets the input data "date selection."- Parameters:
sDateSelection- aStringwith the choice Date Range / All Dates
-
setAmountSelection
Sets the input data "Amount Selection."- Parameters:
sAmountSelection- aStringwith the choice Amount Range / All Amount
-
validate
Validates the dates invalid input: '&' Amounts .- Overrides:
validatein classDateValidator- Parameters:
bundle- the resource bundlecb- 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:
validatein classDateValidator- Parameters:
bundle- the resource bundlecb- the controller beansession- 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
-