org.kuali.kfs.sys.document.validation.event
Class UpdateAccountingLineEvent

java.lang.Object
  extended by org.kuali.rice.kns.rule.event.KualiDocumentEventBase
      extended by org.kuali.kfs.sys.document.validation.event.AttributedDocumentEventBase
          extended by org.kuali.kfs.sys.document.validation.event.UpdateAccountingLineEvent
All Implemented Interfaces:
AccountingLineEvent, AttributedDocumentEvent, org.kuali.rice.kns.rule.event.KualiDocumentEvent

public class UpdateAccountingLineEvent
extends AttributedDocumentEventBase
implements AccountingLineEvent


Field Summary
 
Fields inherited from class org.kuali.rice.kns.rule.event.KualiDocumentEventBase
document
 
Constructor Summary
UpdateAccountingLineEvent(String errorPathPrefix, org.kuali.rice.kns.document.Document document, AccountingLine originalAccountingLine, AccountingLine updatedAccountingLine)
          Constructs an UpdateAccountingLineEvent with the given errorPathPrefix, document, and accountingLine.
 
Method Summary
 void cleanErrorMessages()
          Logic to replace generic amount error messages, especially those where extraordinarily large amounts caused format errors
 AccountingLine getAccountingLine()
           
 AccountingLine getOriginalAccountingLine()
           
 AccountingLine getUpdatedAccountingLine()
           
 boolean invokeRuleMethod(org.kuali.rice.kns.rule.BusinessRule rule)
           
 
Methods inherited from class org.kuali.kfs.sys.document.validation.event.AttributedDocumentEventBase
getAttribute, getIterationSubject, getRuleInterfaceClass, setAttribute, setIterationSubject
 
Methods inherited from class org.kuali.rice.kns.rule.event.KualiDocumentEventBase
generateEvents, getDescription, getDocument, getDocumentId, getErrorPathPrefix, getName, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.rule.event.KualiDocumentEvent
generateEvents, getDescription, getDocument, getErrorPathPrefix, getName, getRuleInterfaceClass, validate
 

Constructor Detail

UpdateAccountingLineEvent

public UpdateAccountingLineEvent(String errorPathPrefix,
                                 org.kuali.rice.kns.document.Document document,
                                 AccountingLine originalAccountingLine,
                                 AccountingLine updatedAccountingLine)
Constructs an UpdateAccountingLineEvent with the given errorPathPrefix, document, and accountingLine.

Parameters:
errorPathPrefix -
document -
accountingLine -
newAccountingLine -
Method Detail

getOriginalAccountingLine

public AccountingLine getOriginalAccountingLine()
See Also:
org.kuali.rice.kns.rule.event.AccountingLineEvent#getAccountingLine()

getUpdatedAccountingLine

public AccountingLine getUpdatedAccountingLine()
Returns:
updated accountingLine associated with this event

invokeRuleMethod

public boolean invokeRuleMethod(org.kuali.rice.kns.rule.BusinessRule rule)
Specified by:
invokeRuleMethod in interface org.kuali.rice.kns.rule.event.KualiDocumentEvent
Overrides:
invokeRuleMethod in class AttributedDocumentEventBase
See Also:
AttributedDocumentEventBase.invokeRuleMethod(org.kuali.rice.kns.rule.BusinessRule)

getAccountingLine

public AccountingLine getAccountingLine()
Specified by:
getAccountingLine in interface AccountingLineEvent
Returns:
the original accounting line, by a more traditional name

cleanErrorMessages

public void cleanErrorMessages()
Logic to replace generic amount error messages, especially those where extraordinarily large amounts caused format errors



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