org.kuali.kfs.fp.document.validation.impl
Class BudgetAdjustmentAccountingLineTotalsUnchangedValidation

java.lang.Object
  extended by org.kuali.kfs.sys.document.validation.ParameterizedValidation
      extended by org.kuali.kfs.sys.document.validation.GenericValidation
          extended by org.kuali.kfs.sys.document.validation.impl.AccountingLineGroupTotalsUnchangedValidation
              extended by 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


Constructor Summary
BudgetAdjustmentAccountingLineTotalsUnchangedValidation()
           
 
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 org.kuali.kfs.sys.document.validation.impl.AccountingLineGroupTotalsUnchangedValidation
buildTotalChangeErrorMessage, getAccountingDocumentForValidation, handleNonExistentDocumentWhenApproving, retrievePersistedDocument, setAccountingDocumentForValidation
 
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

BudgetAdjustmentAccountingLineTotalsUnchangedValidation

public BudgetAdjustmentAccountingLineTotalsUnchangedValidation()
Method Detail

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 property
sectionTitle - title of section
persistedSourceLineTotal - previously persisted source line total
currentSourceLineTotal - current entered source line total


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.