|
||||||||||
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.PurchasingAccountsPayableImportItemValidation
org.kuali.kfs.module.purap.document.validation.impl.PurchasingImportItemValidation
public class PurchasingImportItemValidation
Constructor Summary | |
---|---|
PurchasingImportItemValidation()
|
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 |
validateItemUnitPrice(PurApItem item)
Validates the unit price for all applicable item types. |
protected boolean |
validateThatCommodityCodeIsActive(PurApItem item)
|
protected boolean |
validateUnitOfMeasureCodeExists(PurApItem item)
Validates that if the item type is quantity based, that the unit of measure code is valid. |
Methods inherited from class org.kuali.kfs.module.purap.document.validation.impl.PurchasingAccountsPayableImportItemValidation |
---|
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 PurchasingImportItemValidation()
Method Detail |
---|
public boolean validate(AttributedDocumentEvent event)
Validation
validate
in interface Validation
validate
in class PurchasingAccountsPayableImportItemValidation
protected boolean validateCommodityCodes(PurApItem item, boolean commodityCodeRequired)
item
- The PurApItem containing the commodity code to be validated.
public boolean validateItemDescription(PurApItem item)
item
-
public boolean validateItemUnitPrice(PurApItem item)
purDocument
- the purchasing document to be validated
protected boolean validateUnitOfMeasureCodeExists(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 |