|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.fp.document.validation.impl.JournalVoucherAccountingLineExternalEncumbranceReferenceValidation
public class JournalVoucherAccountingLineExternalEncumbranceReferenceValidation
Validation that if the Journal Voucher is using an external encumbrance balance type, reference fields are included on each accounting line
| Constructor Summary | |
|---|---|
JournalVoucherAccountingLineExternalEncumbranceReferenceValidation()
|
|
| Method Summary | |
|---|---|
AccountingLine |
getAccountingLineForValidation()
Gets the accountingLineForValidation attribute. |
org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
Gets the dataDictionaryService 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. |
boolean |
validate(AttributedDocumentEvent event)
This method checks that values exist in the three reference fields (referenceOriginCode, referenceTypeCode, referenceNumber) that are required if the balance type is set to EXTERNAL ENCUMBRANCE. |
| Methods inherited from class org.kuali.kfs.sys.document.validation.GenericValidation |
|---|
setQuitOnFail, shouldQuitOnFail, stageValidation |
| Methods inherited from class org.kuali.kfs.sys.document.validation.ParameterizedValidation |
|---|
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JournalVoucherAccountingLineExternalEncumbranceReferenceValidation()
| Method Detail |
|---|
public boolean validate(AttributedDocumentEvent event)
Validation.validate(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)
protected void putRequiredPropertyError(org.kuali.rice.kns.datadictionary.BusinessObjectEntry boe,
String propertyName)
boe - propertyName - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||