|
||||||||||
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.TransferOfFundsFundGroupsBalancedValidation
public class TransferOfFundsFundGroupsBalancedValidation
Validation for Transfer of Funds document that tests if the fund groups represented by a given document are in balance.
Constructor Summary | |
---|---|
TransferOfFundsFundGroupsBalancedValidation()
|
Method Summary | |
---|---|
AccountingDocument |
getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute. |
org.kuali.rice.kns.service.ParameterService |
getParameterService()
Gets the parameterService attribute. |
protected boolean |
isFundGroupSetBalanceValid(AccountingDocument tranDoc,
Class componentClass,
String parameterName)
This method will make sure that totals for a specified set of fund groups is valid across the two different accounting line sections. |
void |
setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value. |
boolean |
validate(AttributedDocumentEvent event)
This is a helper method that wraps the fund group balancing check. |
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 TransferOfFundsFundGroupsBalancedValidation()
Method Detail |
---|
public boolean validate(AttributedDocumentEvent event)
Validation.validate(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)
protected boolean isFundGroupSetBalanceValid(AccountingDocument tranDoc, Class componentClass, String parameterName)
tranDoc
- fundGroupCodes
- An array of the fund group codes that will be considered for balancing.
public AccountingDocument getAccountingDocumentForValidation()
public void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
accountingDocumentForValidation
- The accountingDocumentForValidation to set.public org.kuali.rice.kns.service.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- The parameterService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |