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

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

public class DisbursementVoucherAccountingLineValidation
extends GenericValidation


Field Summary
protected static String DV_PAYEE_ID_NUMBER_PROPERTY_PATH
           
protected static String DV_PAYMENT_REASON_PROPERTY_PATH
           
 
Constructor Summary
DisbursementVoucherAccountingLineValidation()
           
 
Method Summary
 AccountingDocument getAccountingDocumentForValidation()
          Gets the accountingDocumentForValidation attribute.
 AccountingLine getAccountingLineForValidation()
          Gets the accountingLineForValidation attribute.
 void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
          Sets the accountingDocumentForValidation attribute value.
 void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
          Sets the accountingLineForValidation attribute value.
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
          Sets the parameterService attribute value.
 boolean validate(AttributedDocumentEvent event)
          This method validates that certain parameters
 boolean validateAccountNumber(AccountingDocument financialDocument, AccountingLine accountingLine)
          Checks account number restrictions, including restrictions in parameters table.
 boolean validateObjectCode(AccountingDocument financialDocument, AccountingLine accountingLine)
          Checks object codes restrictions, including restrictions in parameters table.
 
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
 

Field Detail

DV_PAYMENT_REASON_PROPERTY_PATH

protected static final String DV_PAYMENT_REASON_PROPERTY_PATH
See Also:
Constant Field Values

DV_PAYEE_ID_NUMBER_PROPERTY_PATH

protected static final String DV_PAYEE_ID_NUMBER_PROPERTY_PATH
See Also:
Constant Field Values
Constructor Detail

DisbursementVoucherAccountingLineValidation

public DisbursementVoucherAccountingLineValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Description copied from interface: Validation
This method validates that certain parameters

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

validateObjectCode

public boolean validateObjectCode(AccountingDocument financialDocument,
                                  AccountingLine accountingLine)
Checks object codes restrictions, including restrictions in parameters table.

Parameters:
FinancialDocument - submitted accounting document
accountingLine - accounting line in accounting document
Returns:
true if object code exists, is active, and object level and code exist for a provided payment reason

validateAccountNumber

public boolean validateAccountNumber(AccountingDocument financialDocument,
                                     AccountingLine accountingLine)
Checks account number restrictions, including restrictions in parameters table.

Parameters:
FinancialDocument - submitted financial document
accountingLine - accounting line in submitted accounting document
Returns:
true if account exists, falls within global function code restrictions, and account's sub fund is in permitted list for payment reason

setAccountingDocumentForValidation

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

Parameters:
accountingDocumentForValidation - The accountingDocumentForValidation to set.

setAccountingLineForValidation

public void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
Sets the accountingLineForValidation attribute value.

Parameters:
accountingLineForValidation - The accountingLineForValidation to set.

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value.

Parameters:
parameterService - The parameterService to set.

getAccountingDocumentForValidation

public AccountingDocument getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.

Returns:
Returns the accountingDocumentForValidation.

getAccountingLineForValidation

public AccountingLine getAccountingLineForValidation()
Gets the accountingLineForValidation attribute.

Returns:
Returns the accountingLineForValidation.


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