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

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

public class PaymentRequestPayDateNotPastValidation
extends GenericValidation


Constructor Summary
PaymentRequestPayDateNotPastValidation()
           
 
Method Summary
 org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
           
 org.kuali.rice.kns.service.PersistenceService getPersistenceService()
           
 PurapService getPurapService()
           
protected  PaymentRequestDocument retrievePaymentRequestDocumentFromDatabase(PaymentRequestDocument document)
          Retrieves the payment request document from the database.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
           
 void setPersistenceService(org.kuali.rice.kns.service.PersistenceService persistenceService)
           
 void setPurapService(PurapService purapService)
           
 boolean validate(AttributedDocumentEvent event)
          Validates that the payment request date does not occur in the past.
 
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

PaymentRequestPayDateNotPastValidation

public PaymentRequestPayDateNotPastValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates that the payment request date does not occur in the past.

Returns:
true if validation should continue, false otherwise

retrievePaymentRequestDocumentFromDatabase

protected PaymentRequestDocument retrievePaymentRequestDocumentFromDatabase(PaymentRequestDocument document)
Retrieves the payment request document from the database. Note that the instance returned

Parameters:
document - the document to look in the database for
Returns:
an instance representing what's stored in the database for this instance

getPurapService

public PurapService getPurapService()

setPurapService

public void setPurapService(PurapService purapService)

getPersistenceService

public org.kuali.rice.kns.service.PersistenceService getPersistenceService()

setPersistenceService

public void setPersistenceService(org.kuali.rice.kns.service.PersistenceService persistenceService)

getBusinessObjectService

public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)


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