public class PaymentRequestProcessItemValidation extends GenericValidation
Constructor and Description |
---|
PaymentRequestProcessItemValidation() |
Modifier and Type | Method and Description |
---|---|
protected void |
addParametersToValidation(AccountingLineAmountPositiveValidation validation) |
protected void |
addParametersToValidation(AccountingLineDataDictionaryValidation validation) |
protected void |
addParametersToValidation(AccountingLineValuesAllowedValidationHutch validation) |
protected void |
addParametersToValidation(BusinessObjectDataDictionaryValidation validation) |
boolean |
canApproveAccountingLinesWithZeroAmount()
checks if an accounting line with zero dollar amount can be approved.
|
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
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public PaymentRequestProcessItemValidation()
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 mapprotected boolean validateAboveTheLineItems(PaymentRequestItem item, String identifierString, boolean isReceivingDocumentRequiredIndicator)
item
- - payment request itemidentifierString
- - identifier string used to mark in an error mappublic boolean validateItemWithoutAccounts(PaymentRequestItem item, String identifierString)
item
- - payment request itempublic 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 mappublic 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)
public boolean canApproveAccountingLinesWithZeroAmount()
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.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.