|
||||||||||
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.sys.document.validation.impl.AccountingLineGroupTotalsUnchangedValidation
public class AccountingLineGroupTotalsUnchangedValidation
A validation, used on accounting document approval, that accounting line totals are unchanged
Constructor Summary | |
---|---|
AccountingLineGroupTotalsUnchangedValidation()
|
Method Summary | |
---|---|
protected void |
buildTotalChangeErrorMessage(String propertyName,
org.kuali.rice.kns.util.KualiDecimal persistedSourceLineTotal,
org.kuali.rice.kns.util.KualiDecimal currentSourceLineTotal)
This method builds out the error message for when totals have changed. |
AccountingDocument |
getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute. |
protected void |
handleNonExistentDocumentWhenApproving(AccountingDocument accountingDocument)
Handles the case when a non existent document is attempted to be retrieve and that if it's in an initiated state, it's ok. |
protected AccountingDocument |
retrievePersistedDocument(AccountingDocument accountingDocument)
attempt to retrieve the document from the DB for comparison |
void |
setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value. |
boolean |
validate(AttributedDocumentEvent event)
Checks that the source and total amounts on the current version of the accounting document are equal to the persisted source and total totals. |
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 AccountingLineGroupTotalsUnchangedValidation()
Method Detail |
---|
public boolean validate(AttributedDocumentEvent event)
org.kuali.kfs.sys.document.validation.GenericValidation#validate(java.lang.Object[])
protected AccountingDocument retrievePersistedDocument(AccountingDocument accountingDocument)
accountingDocument
-
protected void buildTotalChangeErrorMessage(String propertyName, org.kuali.rice.kns.util.KualiDecimal persistedSourceLineTotal, org.kuali.rice.kns.util.KualiDecimal currentSourceLineTotal)
propertyName
- persistedSourceLineTotal
- currentSourceLineTotal
- protected final void handleNonExistentDocumentWhenApproving(AccountingDocument accountingDocument)
accountingDocument
- public AccountingDocument getAccountingDocumentForValidation()
public void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
accountingDocumentForValidation
- The accountingDocumentForValidation to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |