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 TypeMethodDescriptionvoid
setAmountSelection
(String sAmountSelection) Sets the input data "Amount Selection."void
setDateSelection
(String sDateSelection) Sets the input data "date selection."void
setEndAmount
(String sAmount) Sets the input data "end amount."void
setStartAmount
(String sAmount) Sets the input data "start amount."void
validate
(ResourceBundle bundle, PControllerBean cb) Validates the dates invalid input: '&' Amounts .void
validate
(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
- aString
with the start amount value
-
setEndAmount
Sets the input data "end amount."- Parameters:
sEndAmount
- aString
with the end amount value
-
setDateSelection
Sets the input data "date selection."- Parameters:
sDateSelection
- aString
with the choice Date Range / All Dates
-
setAmountSelection
Sets the input data "Amount Selection."- Parameters:
sAmountSelection
- aString
with the choice Amount Range / All Amount
-
validate
Validates the dates invalid input: '&' Amounts .- Overrides:
validate
in 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:
validate
in 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
-