org.kuali.kfs.fp.document.validation.impl
Class TransferOfFundsTransferTotalsBalancedValidation

java.lang.Object
  extended by org.kuali.kfs.sys.document.validation.ParameterizedValidation
      extended by org.kuali.kfs.sys.document.validation.GenericValidation
          extended by org.kuali.kfs.fp.document.validation.impl.TransferOfFundsTransferTotalsBalancedValidation
All Implemented Interfaces:
Validation

public class TransferOfFundsTransferTotalsBalancedValidation
extends GenericValidation

Transfer of Funds document validation which checks that mandatory and non-mandatory transfer totals are in balance.


Constructor Summary
TransferOfFundsTransferTotalsBalancedValidation()
           
 
Method Summary
 AccountingDocument getAccountingDocumentForValidation()
          Gets the accountingDocumentForValidation attribute.
 TransferOfFundsService getTransferOfFundsService()
          Gets the transferOfFundsService attribute.
 void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
          Sets the accountingDocumentForValidation attribute value.
 void setTransferOfFundsService(TransferOfFundsService transferOfFundsService)
          Sets the transferOfFundsService attribute value.
 boolean validate(AttributedDocumentEvent event)
          This method checks the sum of all of the "From" accounting lines with mandatory transfer object codes against the sum of all of the "To" accounting lines with mandatory transfer object codes.
 
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

TransferOfFundsTransferTotalsBalancedValidation

public TransferOfFundsTransferTotalsBalancedValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
This method checks the sum of all of the "From" accounting lines with mandatory transfer object codes against the sum of all of the "To" accounting lines with mandatory transfer object codes. In addition, it does the same, but for accounting lines with non-mandatory transfer object code. This is to enforce the rule that the document must balance within the object code object sub-type codes of mandatory transfers and non-mandatory transfers.

Returns:
true if validation should continue, false otherwise
See Also:
Validation.validate(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)

getAccountingDocumentForValidation

public AccountingDocument getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.

Returns:
Returns the accountingDocumentForValidation.

setAccountingDocumentForValidation

public void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value.

Parameters:
accountingDocumentForValidation - The accountingDocumentForValidation to set.

getTransferOfFundsService

public TransferOfFundsService getTransferOfFundsService()
Gets the transferOfFundsService attribute.

Returns:
Returns the transferOfFundsService.

setTransferOfFundsService

public void setTransferOfFundsService(TransferOfFundsService transferOfFundsService)
Sets the transferOfFundsService attribute value.

Parameters:
transferOfFundsService - The transferOfFundsService to set.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.