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

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

public class DisbursementVoucherNonEmployeeTravelValidation
extends GenericValidation


Constructor Summary
DisbursementVoucherNonEmployeeTravelValidation()
           
 
Method Summary
 AccountingDocument getAccountingDocumentForValidation()
          Gets the accountingDocumentForValidation attribute.
 org.kuali.rice.kns.service.DictionaryValidationService getDictionaryValidationService()
          Gets the dictionaryValidationService attribute.
 DisbursementVoucherTaxService getDisbursementVoucherTaxService()
          Gets the disbursementVoucherTaxService attribute.
 DisbursementVoucherTravelService getDisbursementVoucherTravelService()
          Gets the disbursementVoucherTravelService attribute.
protected  boolean hasIncomeClassCode(DisbursementVoucherDocument document)
          Determines if the given document has an income for tax
protected  boolean isGrossUp(DisbursementVoucherDocument document)
          Determines if the tax on the document was gross up
 void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
          Sets the accountingDocumentForValidation attribute value.
 void setDictionaryValidationService(org.kuali.rice.kns.service.DictionaryValidationService dictionaryValidationService)
          Sets the dictionaryValidationService attribute value.
 void setDisbursementVoucherTaxService(DisbursementVoucherTaxService disbursementVoucherTaxService)
          Sets the disbursementVoucherTaxService attribute value.
 void setDisbursementVoucherTravelService(DisbursementVoucherTravelService disbursementVoucherTravelService)
          Sets the disbursementVoucherTravelService 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
protected  boolean validateTravelAmount(DisbursementVoucherDocument document)
          Determines if tax should be taken into consideration when checking the total travel amount, and validates that it matches the paid amount
 
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

DisbursementVoucherNonEmployeeTravelValidation

public DisbursementVoucherNonEmployeeTravelValidation()
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)

hasIncomeClassCode

protected boolean hasIncomeClassCode(DisbursementVoucherDocument document)
Determines if the given document has an income for tax

Parameters:
document - document to check
Returns:
true if it does have non-reportable income, false otherwise

isGrossUp

protected boolean isGrossUp(DisbursementVoucherDocument document)
Determines if the tax on the document was gross up

Parameters:
document - the document to check
Returns:
true if the tax was gross up, false otherwise

validateTravelAmount

protected boolean validateTravelAmount(DisbursementVoucherDocument document)
Determines if tax should be taken into consideration when checking the total travel amount, and validates that it matches the paid amount

Parameters:
document - the document to validate the non-employee total travel amount of
Returns:
true if the document validated perfectly, false otherwise

setAccountingDocumentForValidation

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

Parameters:
accountingDocumentForValidation - The accountingDocumentForValidation 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.

getDisbursementVoucherTaxService

public DisbursementVoucherTaxService getDisbursementVoucherTaxService()
Gets the disbursementVoucherTaxService attribute.

Returns:
Returns the disbursementVoucherTaxService.

setDisbursementVoucherTaxService

public void setDisbursementVoucherTaxService(DisbursementVoucherTaxService disbursementVoucherTaxService)
Sets the disbursementVoucherTaxService attribute value.

Parameters:
disbursementVoucherTaxService - The disbursementVoucherTaxService to set.

getDisbursementVoucherTravelService

public DisbursementVoucherTravelService getDisbursementVoucherTravelService()
Gets the disbursementVoucherTravelService attribute.

Returns:
Returns the disbursementVoucherTravelService.

setDisbursementVoucherTravelService

public void setDisbursementVoucherTravelService(DisbursementVoucherTravelService disbursementVoucherTravelService)
Sets the disbursementVoucherTravelService attribute value.

Parameters:
disbursementVoucherTravelService - The disbursementVoucherTravelService to set.

getDictionaryValidationService

public org.kuali.rice.kns.service.DictionaryValidationService getDictionaryValidationService()
Gets the dictionaryValidationService attribute.

Returns:
Returns the dictionaryValidationService.

setDictionaryValidationService

public void setDictionaryValidationService(org.kuali.rice.kns.service.DictionaryValidationService dictionaryValidationService)
Sets the dictionaryValidationService attribute value.

Parameters:
dictionaryValidationService - The dictionaryValidationService to set.


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