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

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

public class AuxiliaryVoucherAccountingPeriodWithinGracePeriodValidation
extends GenericValidation

Validation for Auxiliary Voucher documents that tests whether the accounting period for the document is within the defined grace period.


Constructor Summary
AuxiliaryVoucherAccountingPeriodWithinGracePeriodValidation()
           
 
Method Summary
 AccountingPeriodService getAccountingPeriodService()
          Gets the accountingPeriodService attribute.
 AuxiliaryVoucherDocument getAuxiliaryVoucherDocumentForValidation()
          Gets the auxiliaryVoucherDocumentForValidation attribute.
 org.kuali.rice.kns.service.ParameterService getParameterService()
          Gets the parameterService attribute.
 UniversityDateService getUniversityDateService()
          Gets the universityDateService attribute.
 void setAccountingPeriodService(AccountingPeriodService accountingPeriodService)
          Sets the accountingPeriodService attribute value.
 void setAuxiliaryVoucherDocumentForValidation(AuxiliaryVoucherDocument accountingDocumentForValidation)
          Sets the auxiliaryVoucherDocumentForValidation attribute value.
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
          Sets the parameterService attribute value.
 void setUniversityDateService(UniversityDateService universityDateService)
          Sets the universityDateService attribute value.
 boolean validate(AttributedDocumentEvent event)
          A validation to check if the given accounting period is within the "grace period" of the AV doc, defined in JIRA KULRNE-4634.
 
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

AuxiliaryVoucherAccountingPeriodWithinGracePeriodValidation

public AuxiliaryVoucherAccountingPeriodWithinGracePeriodValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
A validation to check if the given accounting period is within the "grace period" of the AV doc, defined in JIRA KULRNE-4634.

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

getAuxiliaryVoucherDocumentForValidation

public AuxiliaryVoucherDocument getAuxiliaryVoucherDocumentForValidation()
Gets the auxiliaryVoucherDocumentForValidation attribute.

Returns:
Returns the auxiliaryVoucherDocumentForValidation.

setAuxiliaryVoucherDocumentForValidation

public void setAuxiliaryVoucherDocumentForValidation(AuxiliaryVoucherDocument accountingDocumentForValidation)
Sets the auxiliaryVoucherDocumentForValidation attribute value.

Parameters:
auxiliaryVoucherDocumentForValidation - The auxiliaryVoucherDocumentForValidation to set.

getAccountingPeriodService

public AccountingPeriodService getAccountingPeriodService()
Gets the accountingPeriodService attribute.

Returns:
Returns the accountingPeriodService.

setAccountingPeriodService

public void setAccountingPeriodService(AccountingPeriodService accountingPeriodService)
Sets the accountingPeriodService attribute value.

Parameters:
accountingPeriodService - The accountingPeriodService to set.

getUniversityDateService

public UniversityDateService getUniversityDateService()
Gets the universityDateService attribute.

Returns:
Returns the universityDateService.

setUniversityDateService

public void setUniversityDateService(UniversityDateService universityDateService)
Sets the universityDateService attribute value.

Parameters:
universityDateService - The universityDateService to set.

getParameterService

public org.kuali.rice.kns.service.ParameterService getParameterService()
Gets the parameterService attribute.

Returns:
Returns the parameterService.

setParameterService

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

Parameters:
parameterService - The parameterService to set.


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