|
||||||||||
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.PaymentRequestProcessItemValidation
public class PaymentRequestProcessItemValidation
Constructor Summary | |
---|---|
PaymentRequestProcessItemValidation()
|
Method Summary | |
---|---|
protected void |
addParametersToValidation(AccountingLineAmountPositiveValidation validation)
|
protected void |
addParametersToValidation(AccountingLineDataDictionaryValidation validation)
|
protected void |
addParametersToValidation(AccountingLineValuesAllowedValidationHutch validation)
|
protected void |
addParametersToValidation(BusinessObjectDataDictionaryValidation validation)
|
protected void |
createGauntlet(CompositeValidation validation)
|
protected AttributedDocumentEvent |
getEvent()
Gets the event attribute. |
PurApItem |
getItemForValidation()
|
protected PurApAccountingLine |
getPreqAccountingLine()
Gets the preqAccountingLine attribute. |
protected PaymentRequestDocument |
getPreqDocument()
Gets the preqDocument attribute. |
PurapService |
getPurapService()
|
CompositeValidation |
getReviewAccountingLineValidation()
|
protected boolean |
reviewAccountingLineValidation(PaymentRequestDocument document,
PurApAccountingLine accountingLine)
|
protected void |
setEvent(AttributedDocumentEvent event)
Sets the event attribute value. |
void |
setItemForValidation(PurApItem itemForValidation)
|
protected void |
setPreqAccountingLine(PurApAccountingLine preqAccountingLine)
Sets the preqAccountingLine attribute value. |
protected void |
setPreqDocument(PaymentRequestDocument preqDocument)
Sets the preqDocument attribute value. |
void |
setPurapService(PurapService purapService)
|
void |
setReviewAccountingLineValidation(CompositeValidation reviewAccountingLineValidation)
|
boolean |
validate(AttributedDocumentEvent event)
This method validates that certain parameters |
protected boolean |
validateAboveTheLineItems(PaymentRequestItem item,
String identifierString,
boolean isReceivingDocumentRequiredIndicator)
Validates above the line items. |
protected boolean |
validateEachItem(PaymentRequestDocument paymentRequestDocument,
PaymentRequestItem item)
Calls another validate item method and passes an identifier string from the item. |
boolean |
validateItem(PaymentRequestDocument paymentRequestDocument,
PaymentRequestItem item,
String identifierString)
Performs validation if full document entry not completed and peforms varying item validation. |
boolean |
validateItemAccounts(PaymentRequestDocument paymentRequestDocument,
PaymentRequestItem item,
String identifierString)
Validates the totals for the item by account, that the total by each accounting line for the item, matches the extended price on the item. |
boolean |
validateItemWithoutAccounts(PaymentRequestItem item,
String identifierString)
Validates that the item must contain at least one account |
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 PaymentRequestProcessItemValidation()
Method Detail |
---|
public boolean validate(AttributedDocumentEvent event)
Validation
protected boolean validateEachItem(PaymentRequestDocument paymentRequestDocument, PaymentRequestItem item)
paymentRequestDocument
- - payment request document.item
-
public boolean validateItem(PaymentRequestDocument paymentRequestDocument, PaymentRequestItem item, String identifierString)
paymentRequestDocument
- - payment request documentitem
- - payment request itemidentifierString
- - identifier string used to mark in an error map
protected boolean validateAboveTheLineItems(PaymentRequestItem item, String identifierString, boolean isReceivingDocumentRequiredIndicator)
item
- - payment request itemidentifierString
- - identifier string used to mark in an error map
public boolean validateItemWithoutAccounts(PaymentRequestItem item, String identifierString)
item
- - payment request item
public boolean validateItemAccounts(PaymentRequestDocument paymentRequestDocument, PaymentRequestItem item, String identifierString)
paymentRequestDocument
- - payment request documentitem
- - payment request item to validateidentifierString
- - identifier string used to mark in an error map
public CompositeValidation getReviewAccountingLineValidation()
public void setReviewAccountingLineValidation(CompositeValidation reviewAccountingLineValidation)
public PurapService getPurapService()
public void setPurapService(PurapService purapService)
public PurApItem getItemForValidation()
public void setItemForValidation(PurApItem itemForValidation)
protected boolean reviewAccountingLineValidation(PaymentRequestDocument document, PurApAccountingLine accountingLine)
protected void createGauntlet(CompositeValidation validation)
protected void addParametersToValidation(BusinessObjectDataDictionaryValidation validation)
protected void addParametersToValidation(AccountingLineAmountPositiveValidation validation)
protected void addParametersToValidation(AccountingLineDataDictionaryValidation validation)
protected void addParametersToValidation(AccountingLineValuesAllowedValidationHutch validation)
protected AttributedDocumentEvent getEvent()
protected void setEvent(AttributedDocumentEvent event)
event
- The event to set.protected PaymentRequestDocument getPreqDocument()
protected void setPreqDocument(PaymentRequestDocument preqDocument)
preqDocument
- The preqDocument to set.protected PurApAccountingLine getPreqAccountingLine()
protected void setPreqAccountingLine(PurApAccountingLine preqAccountingLine)
preqAccountingLine
- The preqAccountingLine to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |