public class JournalVoucherAccountingLineEncumbranceReferenceValidation extends GenericValidation
Constructor and Description |
---|
JournalVoucherAccountingLineEncumbranceReferenceValidation() |
Modifier and Type | Method and Description |
---|---|
AccountingLine |
getAccountingLineForValidation()
Gets the accountingLineForValidation attribute.
|
org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
Gets the dataDictionaryService attribute.
|
JournalVoucherDocument |
getJournalVoucherForValidation()
Gets the journalVoucherForValidation attribute.
|
protected void |
putRequiredPropertyError(org.kuali.rice.kns.datadictionary.BusinessObjectEntry boe,
String propertyName)
Adds a global error for a missing required property.
|
void |
setAccountingLineForValidation(AccountingLine voucherSourceAccountingLine)
Sets the accountingLineForValidation attribute value.
|
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value.
|
void |
setJournalVoucherForValidation(JournalVoucherDocument journalVoucherForValidation)
Sets the journalVoucherForValidation attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
This method checks that values exist in the three reference fields (referenceOriginCode, referenceTypeCode, referenceNumber)
that are required if
1) the balance type is of type Encumbrance
2) encumbrance update code is R
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public JournalVoucherAccountingLineEncumbranceReferenceValidation()
public boolean validate(AttributedDocumentEvent event)
Validation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
protected void putRequiredPropertyError(org.kuali.rice.kns.datadictionary.BusinessObjectEntry boe, String propertyName)
boe
- propertyName
- public JournalVoucherDocument getJournalVoucherForValidation()
public void setJournalVoucherForValidation(JournalVoucherDocument journalVoucherForValidation)
journalVoucherForValidation
- The journalVoucherForValidation to set.public AccountingLine getAccountingLineForValidation()
public void setAccountingLineForValidation(AccountingLine voucherSourceAccountingLine)
accountingLineForValidation
- The accountingLineForValidation to set.public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
dataDictionaryService
- The dataDictionaryService to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.