|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.gl.service.impl.ScrubberValidatorImpl
public class ScrubberValidatorImpl
The default GL implementation of ScrubberValidator
Field Summary | |
---|---|
static String |
DATE_FORMAT_STRING
|
protected static String[] |
debitOrCredit
|
Constructor Summary | |
---|---|
ScrubberValidatorImpl()
|
Method Summary | |
---|---|
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 |
setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService service)
|
void |
setOriginationCodeService(OriginationCodeService ocs)
|
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
void |
setPersistenceService(org.kuali.rice.kns.service.PersistenceService ps)
|
void |
setPersistenceStructureService(org.kuali.rice.kns.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DATE_FORMAT_STRING
protected static String[] debitOrCredit
Constructor Detail |
---|
public ScrubberValidatorImpl()
Method Detail |
---|
public void validateForInquiry(GeneralLedgerPendingEntry entry)
validateForInquiry
in interface ScrubberValidator
entry
- Input transactionorg.kuali.module.gl.service.ScrubberValidator#validateForInquiry(org.kuali.kfs.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 run
org.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 process
protected 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 account
protected Message validateReversalDate(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entry
protected Message validateSubAccount(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entry
protected Message validateProjectCode(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entry
protected 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 run
protected 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 run
protected Message validateDocumentType(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry to checkworkingEntryInfo
- the copy of that entry to move good data over to
protected Message validateOrigination(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entry
protected 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 entry
protected Message validateChart(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entry
protected Message validateObjectCode(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entry
protected Message validateObjectType(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entry
org.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 entry
protected Message validateBalanceType(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entry
protected 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 run
protected List<Message> validateReferenceDocumentFields(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry to checkworkingEntryInfo
- the copy of the entry to move valid data into
protected Message validateTransactionAmount(OriginEntryInformation originEntry, OriginEntryInformation workingEntry, AccountingCycleCachingService accountingCycleCachingService)
originEntry
- the origin entry being scrubbedworkingEntry
- the scrubbed version of the origin entry
protected Message validateDescription(OriginEntryInformation originEntry)
public boolean isAccountExpired(Account account, UniversityDate universityRunDate)
ScrubberValidator
isAccountExpired
in interface ScrubberValidator
account
- Account to validateuniversityRunDate
- Run date of process
ScrubberValidator.isAccountExpired(org.kuali.kfs.coa.businessobject.Account, org.kuali.kfs.sys.businessobject.UniversityDate)
public void setUniversityDateDao(UniversityDateDao udd)
public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService service)
public void setPersistenceService(org.kuali.rice.kns.service.PersistenceService ps)
public void setAccountService(AccountService as)
public void setOriginationCodeService(OriginationCodeService ocs)
public void setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
public void setBalanceTypService(BalanceTypeService balanceTypService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |