|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.module.purap.document.validation.impl.PurchasingAccountsPayableAddItemValidation
org.kuali.kfs.module.purap.document.validation.impl.PurchasingAddItemValidation
public class PurchasingAddItemValidation
Constructor Summary | |
---|---|
PurchasingAddItemValidation()
|
Method Summary | |
---|---|
protected boolean |
commodityCodeIsRequired()
Predicate to do a parameter lookup and tell us whether a commodity code is required. |
org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
|
org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
|
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
|
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
|
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. |
boolean |
validateItemDescription(PurApItem item)
Checks that a description was entered for the item. |
boolean |
validateItemQuantity(PurApItem item)
Validates that if the item type is quantity based, the item quantity is required and if the item type is amount based, the quantity is not allowed. |
boolean |
validateItemUnitPrice(PurApItem item)
Validates the unit price for all applicable item types. |
protected boolean |
validateThatCommodityCodeIsActive(PurApItem item)
|
boolean |
validateUnitOfMeasure(PurApItem item)
Validates that if the item type is quantity based, the unit of measure is required. |
Methods inherited from class org.kuali.kfs.module.purap.document.validation.impl.PurchasingAccountsPayableAddItemValidation |
---|
getDictionaryValidationService, getItemForValidation, setDictionaryValidationService, setItemForValidation |
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 |
---|
public PurchasingAddItemValidation()
Method Detail |
---|
public boolean validate(AttributedDocumentEvent event)
Validation
validate
in interface Validation
validate
in class PurchasingAccountsPayableAddItemValidation
protected boolean validateCommodityCodes(PurApItem item, boolean commodityCodeRequired)
item
- The PurApItem containing the commodity code to be validated.
public boolean validateItemUnitPrice(PurApItem item)
purDocument
- the purchasing document to be validated
public boolean validateUnitOfMeasure(PurApItem item)
item
- the item to be validated
public boolean validateItemDescription(PurApItem item)
item
-
public boolean validateItemQuantity(PurApItem item)
item
- the item to be validated
protected boolean commodityCodeIsRequired()
protected boolean validateThatCommodityCodeIsActive(PurApItem item)
public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |