public class ScrubberValidatorImpl extends Object implements ScrubberValidator
Modifier and Type | Field and Description |
---|---|
protected AccountService |
accountService |
protected BalanceTypeService |
balanceTypService |
protected static Collection<String> |
continuationAccountBypassBalanceTypeCodes |
protected boolean |
continuationAccountIndicator |
static String |
DATE_FORMAT_STRING |
protected static Collection<String> |
debitOrCredit |
protected org.kuali.rice.core.api.config.property.ConfigurationService |
kualiConfigurationService |
protected OriginationCodeService |
originationCodeService |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
parameterService |
protected org.kuali.rice.krad.service.PersistenceService |
persistenceService |
protected org.kuali.rice.krad.service.PersistenceStructureService |
persistenceStructureService |
protected UniversityDateDao |
universityDateDao |
Constructor and Description |
---|
ScrubberValidatorImpl() |
Modifier and Type | Method and Description |
---|---|
protected Message |
continuationAccountLogic(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
UniversityDate universityRunDate,
AccountingCycleCachingService accountingCycleCachingService)
Called when the account of the origin entry is expired or closed, this validates the continuation account
|
protected long |
getAdjustedAccountExpirationDate(Account account)
Calculates the expiration date of an adjusted account
|
boolean |
isAccountExpired(Account account,
UniversityDate universityRunDate)
Performs logic to determine whether an account is expired
|
void |
setAccountService(AccountService as) |
void |
setBalanceTypService(BalanceTypeService balanceTypService) |
void |
setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService service) |
void |
setOriginationCodeService(OriginationCodeService ocs) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
void |
setPersistenceService(org.kuali.rice.krad.service.PersistenceService ps) |
void |
setPersistenceStructureService(org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService) |
void |
setUniversityDateDao(UniversityDateDao udd) |
protected Message |
validateAccount(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
UniversityDate universityRunDate,
AccountingCycleCachingService accountingCycleCachingService)
Validates the account of an origin entry
|
protected Message |
validateBalanceType(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
AccountingCycleCachingService accountingCycleCachingService)
Validates the balance type of the origin entry
|
protected Message |
validateChart(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
AccountingCycleCachingService accountingCycleCachingService)
Validates the chart of the origin entry
|
protected Message |
validateDescription(OriginEntryInformation originEntry) |
protected Message |
validateDocumentNumber(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry)
Validates the document number of the origin entry
|
protected Message |
validateDocumentType(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
AccountingCycleCachingService accountingCycleCachingService)
Validates the document type of an origin entry
|
protected Message |
validateFiscalYear(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
UniversityDate universityRunDate,
AccountingCycleCachingService accountingCycleCachingService)
Validates the fiscal year of the origin entry
|
void |
validateForInquiry(GeneralLedgerPendingEntry entry)
Validate a transaction for use in balance inquiry
|
protected Message |
validateObjectCode(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
AccountingCycleCachingService accountingCycleCachingService)
Validates the object code of the origin entry
|
protected Message |
validateObjectType(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
AccountingCycleCachingService accountingCycleCachingService)
Assuming that the object code has been validated first, validates the object type of the entry
|
protected Message |
validateOrigination(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
AccountingCycleCachingService accountingCycleCachingService)
Validates the origination code of the origin entry
|
protected Message |
validateProjectCode(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
AccountingCycleCachingService accountingCycleCachingService)
Validates the project code of the origin entry
|
protected List<Message> |
validateReferenceDocumentFields(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
AccountingCycleCachingService accountingCycleCachingService)
If the encumbrance update code = R, ref doc number must exist, ref doc type must be valid and ref origin code must be valid.
|
protected Message |
validateReferenceOrigination(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
AccountingCycleCachingService accountingCycleCachingService) |
protected Message |
validateReversalDate(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
AccountingCycleCachingService accountingCycleCachingService)
Validates the reversal date of the origin entry
|
protected Message |
validateSubAccount(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
AccountingCycleCachingService accountingCycleCachingService)
Validates the sub account of the origin entry
|
protected Message |
validateSubObjectCode(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
AccountingCycleCachingService accountingCycleCachingService)
Validates the sub object code of the origin entry
|
List<Message> |
validateTransaction(OriginEntryInformation originEntry,
OriginEntryInformation scrubbedEntry,
UniversityDate universityRunDate,
boolean laborIndicator,
AccountingCycleCachingService accountingCycleCachingService)
Validate a transaction in the scrubber
|
protected Message |
validateTransactionAmount(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
AccountingCycleCachingService accountingCycleCachingService)
Validates the entry's transaction amount
|
protected Message |
validateTransactionDate(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
UniversityDate universityRunDate,
AccountingCycleCachingService accountingCycleCachingService)
Validates the transaction date of the origin entry, make sure it is a valid university date
|
protected Message |
validateUniversityFiscalPeriodCode(OriginEntryInformation originEntry,
OriginEntryInformation workingEntry,
UniversityDate universityRunDate,
AccountingCycleCachingService accountingCycleCachingService)
Validates the period code of the origin entry
|
protected org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
protected org.kuali.rice.krad.service.PersistenceService persistenceService
protected UniversityDateDao universityDateDao
protected AccountService accountService
protected OriginationCodeService originationCodeService
protected org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService
protected BalanceTypeService balanceTypService
protected boolean continuationAccountIndicator
public static final String DATE_FORMAT_STRING
protected static final Collection<String> debitOrCredit
protected static final Collection<String> continuationAccountBypassBalanceTypeCodes
public ScrubberValidatorImpl()
public void validateForInquiry(GeneralLedgerPendingEntry entry)
validateForInquiry
in interface ScrubberValidator
entry
- Input transactionorg.kuali.module.gl.service.ScrubberValidator#validateForInquiry(org.kuali.ole.bo.GeneralLedgerPendingEntry)
public List<Message> validateTransaction(OriginEntryInformation originEntry, OriginEntryInformation scrubbedEntry, UniversityDate universityRunDate, boolean laborIndicator, AccountingCycleCachingService accountingCycleCachingService)
validateTransaction
in interface ScrubberValidator
originEntry
- Input transaction (never changed)scrubbedEntry
- Output transaction (scrubbed version of input transaction)universityRunDate
- Date of scrubber runorg.kuali.module.gl.service.ScrubberValidator#validateTransaction(org.kuali.module.gl.bo.OriginEntry, org.kuali.module.gl.bo.OriginEntry, org.kuali.module.gl.bo.UniversityDate, boolean)
protected Message validateAccount(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, UniversityDate universityRunDate, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry to find the account ofworkingEntry
- the copy of the entry to move the account over to if it is validuniversityRunDate
- the run date of the scrubber processprotected Message continuationAccountLogic(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, UniversityDate universityRunDate, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryuniversityRunDate
- the run date of the scrubber (to test against expiration dates)protected long getAdjustedAccountExpirationDate(Account account)
account
- the expired accountprotected Message validateReversalDate(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryprotected Message validateSubAccount(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryprotected Message validateProjectCode(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryprotected Message validateFiscalYear(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, UniversityDate universityRunDate, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryuniversityRunDate
- the university date when this scrubber process is being runprotected Message validateTransactionDate(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, UniversityDate universityRunDate, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryuniversityRunDate
- the university date when this scrubber process is being runprotected Message validateDocumentType(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry to checkworkingEntryInfo
- the copy of that entry to move good data over toprotected Message validateOrigination(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryprotected Message validateReferenceOrigination(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
protected Message validateDocumentNumber(OriginEntryInformation originEntry, OriginEntryInformation workingEntry)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryprotected Message validateChart(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryprotected Message validateObjectCode(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryprotected Message validateObjectType(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryorg.kuali.module.gl.service.ScrubberValidator#validateObjectType(org.kuali.module.gl.bo.OriginEntryFull,
org.kuali.module.gl.bo.OriginEntryFull)
protected Message validateSubObjectCode(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryprotected Message validateBalanceType(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryprotected Message validateUniversityFiscalPeriodCode(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, UniversityDate universityRunDate, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryuniversityRunDate
- the university date when this scrubber process is being runprotected List<Message> validateReferenceDocumentFields(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry to checkworkingEntryInfo
- the copy of the entry to move valid data intoprotected Message validateTransactionAmount(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entryprotected Message validateDescription(OriginEntryInformation originEntry)
public boolean isAccountExpired(Account account, UniversityDate universityRunDate)
ScrubberValidator
isAccountExpired
in interface ScrubberValidator
account
- Account to validateuniversityRunDate
- Run date of processScrubberValidator.isAccountExpired(org.kuali.ole.coa.businessobject.Account, org.kuali.ole.sys.businessobject.UniversityDate)
public void setUniversityDateDao(UniversityDateDao udd)
public void setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService service)
public void setPersistenceService(org.kuali.rice.krad.service.PersistenceService ps)
public void setAccountService(AccountService as)
public void setOriginationCodeService(OriginationCodeService ocs)
public void setPersistenceStructureService(org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService)
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
public void setBalanceTypService(BalanceTypeService balanceTypService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.