org.kuali.kfs.gl.service
Interface ScrubberValidator

All Known Implementing Classes:
LaborGLScrubberValidatorImpl, ScrubberValidatorImpl, ScrubberValidatorImpl

public interface ScrubberValidator

An interface that declares methods that would be needed to validate origin entries and transactions run through the scrubber


Method Summary
 boolean isAccountExpired(Account account, UniversityDate universityRunDate)
          Performs logic to determine whether an account is expired
 void validateForInquiry(GeneralLedgerPendingEntry entry)
          Validate a transaction for use in balance inquiry
 List<Message> validateTransaction(OriginEntryInformation originEntry, OriginEntryInformation scrubbedEntry, UniversityDate universityRunDate, boolean laborIndicator, AccountingCycleCachingService accountingCycleCachingService)
          Validate a transaction in the scrubber
 

Method Detail

validateTransaction

List<Message> validateTransaction(OriginEntryInformation originEntry,
                                  OriginEntryInformation scrubbedEntry,
                                  UniversityDate universityRunDate,
                                  boolean laborIndicator,
                                  AccountingCycleCachingService accountingCycleCachingService)
Validate a transaction in the scrubber

Parameters:
originEntry - Input transaction (never changed)
scrubbedEntry - Output transaction (scrubbed version of input transaction)
universityRunDate - Date of scrubber run
Returns:
List of Message objects based for warnings or errors that happened when validating the transaction

validateForInquiry

void validateForInquiry(GeneralLedgerPendingEntry entry)
Validate a transaction for use in balance inquiry

Parameters:
entry - Input transaction

isAccountExpired

boolean isAccountExpired(Account account,
                         UniversityDate universityRunDate)
Performs logic to determine whether an account is expired

Parameters:
account - Account to validate
universityRunDate - Run date of process
Returns:
true if account is expired, false if not


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