public class PurchasingCommodityCodeValidation extends GenericValidation
Constructor and Description |
---|
PurchasingCommodityCodeValidation() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
commodityCodeIsRequired()
Predicate to do a parameter lookup and tell us whether a commodity code is required.
|
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService() |
org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService() |
PurApItem |
getItemForValidation() |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService) |
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService) |
void |
setItemForValidation(PurApItem itemForValidation) |
boolean |
validate(AttributedDocumentEvent event)
This method validates that certain parameters
|
protected boolean |
validateCommodityCodes(PurApItem item,
boolean commodityCodeRequired)
Validates whether the commodity code existed on the item, and if existed, whether the
commodity code on the item existed in the database, and if so, whether the commodity
code is active.
|
protected boolean |
validateThatCommodityCodeIsActive(PurApItem item) |
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public PurchasingCommodityCodeValidation()
public boolean validate(AttributedDocumentEvent event)
Validation
public PurApItem getItemForValidation()
public void setItemForValidation(PurApItem itemForValidation)
protected boolean validateCommodityCodes(PurApItem item, boolean commodityCodeRequired)
item
- The PurApItem containing the commodity code to be validated.protected boolean validateThatCommodityCodeIsActive(PurApItem item)
protected boolean commodityCodeIsRequired()
public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.