public class BudgetTDCValidator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TDC_WARNINGS_ATTRIBUTE_NAME |
| Constructor and Description |
|---|
BudgetTDCValidator(javax.servlet.http.HttpServletRequest request)
Sets a request used to set warnings into.
|
| Modifier and Type | Method and Description |
|---|---|
void |
validateGeneratingErrorsAndWarnings(BudgetParentDocument proposalDocument)
Calls the tdc rule generating errors and warnings.
|
void |
validateGeneratingWarnings(BudgetParentDocument proposalDocument)
Calls the tdc rule generating errors and warnings.
|
public static final String TDC_WARNINGS_ATTRIBUTE_NAME
public BudgetTDCValidator(javax.servlet.http.HttpServletRequest request)
request - the current requestpublic void validateGeneratingErrorsAndWarnings(BudgetParentDocument proposalDocument)
MessageMap
while warnings will be added as a request attribute named
TDC_WARNINGS_ATTRIBUTE_NAME.
Make sure to set the proper path in the error map before calling this method.
proposalDocument - the proposal document to validate.NullPointerException - if the document is null.public void validateGeneratingWarnings(BudgetParentDocument proposalDocument)
TDC_WARNINGS_ATTRIBUTE_NAME.proposalDocument - the proposal document to validate.NullPointerException - if the document is null.Copyright © 2013 The Kuali Foundation. All Rights Reserved.