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

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

public class PurchaseOrderAddQuoteToVendorValidation
extends GenericValidation

A validation that checks whether the given accounting line is accessible to the given user or not


Constructor Summary
PurchaseOrderAddQuoteToVendorValidation()
           
 
Method Summary
 PurchaseOrderDocument getAccountingDocumentForValidation()
           
 PurchaseOrderVendorQuote getVendorQuote()
           
 VendorService getVendorService()
           
protected  boolean isVendorQuoteActiveNotDebarredVendor(Integer vendorHeaderGeneratedIdentifier, Integer vendorDetailAssignedIdentifer)
           
 void setAccountingDocumentForValidation(PurchaseOrderDocument accountingDocumentForValidation)
           
 void setVendorQuote(PurchaseOrderVendorQuote vendorQuote)
           
 void setVendorService(VendorService vendorService)
           
 boolean validate(AttributedDocumentEvent event)
          Applies rules for validation of the Split of PO and PO child documents
protected  boolean vendorQuoteHasRequiredFields(PurchaseOrderVendorQuote vendorQuote)
           
 
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

PurchaseOrderAddQuoteToVendorValidation

public PurchaseOrderAddQuoteToVendorValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Applies rules for validation of the Split of PO and PO child documents

Parameters:
document - A PurchaseOrderDocument (or one of its children)
Returns:
True if all relevant validation rules are passed.

isVendorQuoteActiveNotDebarredVendor

protected boolean isVendorQuoteActiveNotDebarredVendor(Integer vendorHeaderGeneratedIdentifier,
                                                       Integer vendorDetailAssignedIdentifer)

vendorQuoteHasRequiredFields

protected boolean vendorQuoteHasRequiredFields(PurchaseOrderVendorQuote vendorQuote)

getAccountingDocumentForValidation

public PurchaseOrderDocument getAccountingDocumentForValidation()

setAccountingDocumentForValidation

public void setAccountingDocumentForValidation(PurchaseOrderDocument accountingDocumentForValidation)

getVendorQuote

public PurchaseOrderVendorQuote getVendorQuote()

setVendorQuote

public void setVendorQuote(PurchaseOrderVendorQuote vendorQuote)

getVendorService

public VendorService getVendorService()

setVendorService

public void setVendorService(VendorService vendorService)


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