org.kuali.kfs.module.purap.document.validation.impl
Class PurchasingPaymentInfoValidation

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.module.purap.document.validation.impl.PurchasingPaymentInfoValidation
All Implemented Interfaces:
Validation

public class PurchasingPaymentInfoValidation
extends GenericValidation


Constructor Summary
PurchasingPaymentInfoValidation()
           
 
Method Summary
protected  boolean checkBeginDateBeforeEndDate(PurchasingDocument purDocument)
          Implementation of the rule that if a document has a recurring payment begin date and end date, the begin date should come before the end date.
 org.kuali.rice.kns.service.DateTimeService getDateTimeService()
           
 UniversityDateService getUniversityDateService()
           
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
           
 void setUniversityDateService(UniversityDateService universityDateService)
           
 boolean validate(AttributedDocumentEvent event)
          This method validates that certain parameters
 
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

PurchasingPaymentInfoValidation

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

checkBeginDateBeforeEndDate

protected boolean checkBeginDateBeforeEndDate(PurchasingDocument purDocument)
Implementation of the rule that if a document has a recurring payment begin date and end date, the begin date should come before the end date. We needed to play around with this order if the fiscal year is the next fiscal year, since we were dealing just with month and day, but we don't need to do that here; we're dealing with the whole Date object.

Parameters:
purDocument - the purchasing document to be validated
Returns:
boolean false if the begin date is not before the end date.

getDateTimeService

public org.kuali.rice.kns.service.DateTimeService getDateTimeService()

setDateTimeService

public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)

getUniversityDateService

public UniversityDateService getUniversityDateService()

setUniversityDateService

public void setUniversityDateService(UniversityDateService universityDateService)


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