org.kuali.kfs.module.ar.document.validation.impl
Class CustomerInvoiceCustomerAddressValidation

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.ar.document.validation.impl.CustomerInvoiceCustomerAddressValidation
All Implemented Interfaces:
Validation

public class CustomerInvoiceCustomerAddressValidation
extends GenericValidation


Constructor Summary
CustomerInvoiceCustomerAddressValidation()
           
 
Method Summary
 CustomerAddressService getCustomerAddressService()
           
 CustomerInvoiceDocument getCustomerInvoiceDocument()
           
protected  boolean isCustomerAddressActive(String customerNumber, Integer customerAddressIdentifier, boolean isShipToAddress)
          This method validates if a customer address is active
protected  boolean isCustomerAddressValid(String customerNumber, Integer customerAddressIdentifier, boolean isShipToAddress)
          This method validates if a customer address is valid
 void setCustomerAddressService(CustomerAddressService customerAddressService)
           
 void setCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)
           
 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

CustomerInvoiceCustomerAddressValidation

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

isCustomerAddressValid

protected boolean isCustomerAddressValid(String customerNumber,
                                         Integer customerAddressIdentifier,
                                         boolean isShipToAddress)
This method validates if a customer address is valid

Parameters:
customerInvoiceDocument -
isShipToAddress -
Returns:

isCustomerAddressActive

protected boolean isCustomerAddressActive(String customerNumber,
                                          Integer customerAddressIdentifier,
                                          boolean isShipToAddress)
This method validates if a customer address is active

Parameters:
customerInvoiceDocument -
isShipToAddress -
Returns:

getCustomerAddressService

public CustomerAddressService getCustomerAddressService()

setCustomerAddressService

public void setCustomerAddressService(CustomerAddressService customerAddressService)

getCustomerInvoiceDocument

public CustomerInvoiceDocument getCustomerInvoiceDocument()

setCustomerInvoiceDocument

public void setCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)


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