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

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

public class VendorCreditMemoInitTabRequiredFieldsValidation
extends GenericValidation


Constructor Summary
VendorCreditMemoInitTabRequiredFieldsValidation()
           
 
Method Summary
 org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
           
 PaymentRequestService getPaymentRequestService()
           
 void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
           
 void setPaymentRequestService(PaymentRequestService paymentRequestService)
           
 boolean validate(AttributedDocumentEvent event)
          Validates the necessary fields on the init tab were given and credit memo date is valid.
protected  boolean validateRequiredField(org.kuali.rice.kns.bo.BusinessObject businessObject, String fieldName)
          Helper method to perform required field checks add error messages if the validation fails.
 
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

VendorCreditMemoInitTabRequiredFieldsValidation

public VendorCreditMemoInitTabRequiredFieldsValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates the necessary fields on the init tab were given and credit memo date is valid. (NOTE: formats for cm date and number already performed by pojo conversion)

Returns:
true if validation should continue, false otherwise

validateRequiredField

protected boolean validateRequiredField(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                        String fieldName)
Helper method to perform required field checks add error messages if the validation fails. Adds an error required to GlobalVariables.errorMap using the given fieldName as the error key and retrieving the error label from the data dictionary for the error required message param.

Parameters:
businessObject - - Business object to check for value
fieldName - - Name of the property in the business object

getDataDictionaryService

public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()

setDataDictionaryService

public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)

getPaymentRequestService

public PaymentRequestService getPaymentRequestService()

setPaymentRequestService

public void setPaymentRequestService(PaymentRequestService paymentRequestService)


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