public class DisbursementVoucherAccountingLineValidation extends GenericValidation
Modifier and Type | Field and Description |
---|---|
protected static String |
DV_PAYEE_ID_NUMBER_PROPERTY_PATH |
protected static String |
DV_PAYMENT_REASON_PROPERTY_PATH |
Constructor and Description |
---|
DisbursementVoucherAccountingLineValidation() |
Modifier and Type | Method and Description |
---|---|
AccountingDocument |
getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.
|
AccountingLine |
getAccountingLineForValidation()
Gets the accountingLineForValidation attribute.
|
void |
setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value.
|
void |
setAccountingLineForValidation(AccountingLine accountingLineForValidation)
Sets the accountingLineForValidation attribute value.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the parameterService attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
This method validates that certain parameters
|
boolean |
validateAccountNumber(AccountingDocument financialDocument,
AccountingLine accountingLine)
Checks account number restrictions, including restrictions in parameters table.
|
boolean |
validateObjectCode(AccountingDocument financialDocument,
AccountingLine accountingLine)
Checks object codes restrictions, including restrictions in parameters table.
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
protected static final String DV_PAYMENT_REASON_PROPERTY_PATH
protected static final String DV_PAYEE_ID_NUMBER_PROPERTY_PATH
public DisbursementVoucherAccountingLineValidation()
public boolean validate(AttributedDocumentEvent event)
Validation
Validation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
public boolean validateObjectCode(AccountingDocument financialDocument, AccountingLine accountingLine)
FinancialDocument
- submitted accounting documentaccountingLine
- accounting line in accounting documentpublic boolean validateAccountNumber(AccountingDocument financialDocument, AccountingLine accountingLine)
FinancialDocument
- submitted financial documentaccountingLine
- accounting line in submitted accounting documentpublic void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
accountingDocumentForValidation
- The accountingDocumentForValidation to set.public void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
accountingLineForValidation
- The accountingLineForValidation to set.public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService
- The parameterService to set.public AccountingDocument getAccountingDocumentForValidation()
public AccountingLine getAccountingLineForValidation()
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.