org.kuali.kfs.module.purap.document.validation.impl
Class VendorCreditMemoInitTabRequiredFieldsValidation
java.lang.Object
org.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.module.purap.document.validation.impl.VendorCreditMemoInitTabRequiredFieldsValidation
- All Implemented Interfaces:
- Validation
public class VendorCreditMemoInitTabRequiredFieldsValidation
- extends GenericValidation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VendorCreditMemoInitTabRequiredFieldsValidation
public VendorCreditMemoInitTabRequiredFieldsValidation()
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 valuefieldName
- - 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.