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

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.AdvanceDepositIfAnyElectronicFundAccountingLineAllElectronicFundValidation
All Implemented Interfaces:
Validation

public class AdvanceDepositIfAnyElectronicFundAccountingLineAllElectronicFundValidation
extends GenericValidation

Validates that if the given advance deposit document has any electronic fund accounting lines, that all accounting lines on the document go to the electronic funds account


Constructor Summary
AdvanceDepositIfAnyElectronicFundAccountingLineAllElectronicFundValidation()
           
 
Method Summary
protected  boolean allAccountingLinesRepresentElectronicPayments()
          Determines if all of the accounting lines on the document represent electronic payments
protected  boolean anyAccountingLinesRepresentElectronicPayments()
          Determines if any of the accounting lines on the document represent electronic payments
 AdvanceDepositDocument getAdvanceDepositDocumentForValidation()
          Gets the advanceDepositDocumentForValidation attribute.
 ElectronicPaymentClaimingService getElectronicPaymentClaimingService()
          Gets the electronicPaymentClaimingService attribute.
 void setAdvanceDepositDocumentForValidation(AdvanceDepositDocument documentForValidation)
          Sets the advanceDepositDocumentForValidation attribute value.
 void setElectronicPaymentClaimingService(ElectronicPaymentClaimingService electronicPaymentClaimingService)
          Sets the electronicPaymentClaimingService attribute value.
 boolean validate(AttributedDocumentEvent event)
          Validates the advance deposit document, that if it has one eft accounting line, all accounting lines represent electronic funds
 
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

AdvanceDepositIfAnyElectronicFundAccountingLineAllElectronicFundValidation

public AdvanceDepositIfAnyElectronicFundAccountingLineAllElectronicFundValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates the advance deposit document, that if it has one eft accounting line, all accounting lines represent electronic funds

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

anyAccountingLinesRepresentElectronicPayments

protected boolean anyAccountingLinesRepresentElectronicPayments()
Determines if any of the accounting lines on the document represent electronic payments

Returns:
true if the document contains an electronic transfer accounting line, false if none do

allAccountingLinesRepresentElectronicPayments

protected boolean allAccountingLinesRepresentElectronicPayments()
Determines if all of the accounting lines on the document represent electronic payments

Returns:
true if the document contains all electronic transfer accounting line, false if any accounting line does not represent an electronic payment

getAdvanceDepositDocumentForValidation

public AdvanceDepositDocument getAdvanceDepositDocumentForValidation()
Gets the advanceDepositDocumentForValidation attribute.

Returns:
Returns the advanceDepositDocumentForValidation.

setAdvanceDepositDocumentForValidation

public void setAdvanceDepositDocumentForValidation(AdvanceDepositDocument documentForValidation)
Sets the advanceDepositDocumentForValidation attribute value.

Parameters:
advanceDepositDocumentForValidation - The advanceDepositDocumentForValidation to set.

getElectronicPaymentClaimingService

public ElectronicPaymentClaimingService getElectronicPaymentClaimingService()
Gets the electronicPaymentClaimingService attribute.

Returns:
Returns the electronicPaymentClaimingService.

setElectronicPaymentClaimingService

public void setElectronicPaymentClaimingService(ElectronicPaymentClaimingService electronicPaymentClaimingService)
Sets the electronicPaymentClaimingService attribute value.

Parameters:
electronicPaymentClaimingService - The electronicPaymentClaimingService to set.


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