org.kuali.kfs.fp.document.validation.impl
Class BudgetAdjustmentAccountingLineTotalsUnchangedValidation
java.lang.Object
org.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.sys.document.validation.impl.AccountingLineGroupTotalsUnchangedValidation
org.kuali.kfs.fp.document.validation.impl.BudgetAdjustmentAccountingLineTotalsUnchangedValidation
- All Implemented Interfaces:
- Validation
public class BudgetAdjustmentAccountingLineTotalsUnchangedValidation
- extends AccountingLineGroupTotalsUnchangedValidation
The Budget Adjustment's variation on whether accounting lines have been unchanged or not
Method Summary |
protected void |
buildTotalChangeErrorMessage(String propertyName,
String sectionTitle,
org.kuali.rice.kns.util.KualiDecimal persistedSourceLineTotal,
org.kuali.rice.kns.util.KualiDecimal currentSourceLineTotal)
Builds the error message for when totals have changed. |
boolean |
validate(AttributedDocumentEvent event)
Returns true if account line totals remains unchanged from what was entered and what was persisted before; takes into account all adjustment totals |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BudgetAdjustmentAccountingLineTotalsUnchangedValidation
public BudgetAdjustmentAccountingLineTotalsUnchangedValidation()
validate
public boolean validate(AttributedDocumentEvent event)
- Returns true if account line totals remains unchanged from what was entered and what was persisted before; takes into account all adjustment totals
- Specified by:
validate
in interface Validation
- Overrides:
validate
in class AccountingLineGroupTotalsUnchangedValidation
- Returns:
- true if validation should continue, false otherwise
- See Also:
Validation.validate(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)
buildTotalChangeErrorMessage
protected void buildTotalChangeErrorMessage(String propertyName,
String sectionTitle,
org.kuali.rice.kns.util.KualiDecimal persistedSourceLineTotal,
org.kuali.rice.kns.util.KualiDecimal currentSourceLineTotal)
- Builds the error message for when totals have changed.
- Parameters:
propertyName
- name of propertysectionTitle
- title of sectionpersistedSourceLineTotal
- previously persisted source line totalcurrentSourceLineTotal
- current entered source line total
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.