@Transactional public abstract class BalancingServiceBaseImpl<T extends Entry,S extends Balance> extends Object implements BalancingService
Constructor and Description |
---|
BalancingServiceBaseImpl()
Constructs a BalancingServiceBaseImpl.java.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Integer |
compareBalanceHistory() |
protected abstract Integer |
compareEntryHistory() |
protected Map<String,Integer> |
customCompareHistory()
Possible override if sub class has additional history tables.
|
void |
customPopulateHistoryTables(Integer fiscalYear)
Possible override if sub class has additional history tables.
|
protected void |
customPrintRowCountHistory(Integer fiscalYear)
Possible override if sub class has additional history tables.
|
protected void |
deleteCustomHistory(Integer fiscalYear)
Possible override if sub class has additional history tables.
|
protected void |
deleteHistory(Integer universityFiscalYear,
Class<? extends org.kuali.rice.krad.bo.PersistableBusinessObjectBase> persistentClass)
Deletes data for the given fiscal year of entries from persistentClass.
|
protected boolean |
doesCustomHistoryExist(Integer fiscalYear)
Possible override if sub class has additional history tables.
|
protected int |
getFiscalYear() |
protected int |
getHistoryCount(Integer fiscalYear,
Class<? extends org.kuali.rice.krad.bo.PersistableBusinessObjectBase> persistentClass)
Gets count for given fiscal year of entries from persistentClass.
|
protected boolean |
isFilesReady() |
boolean |
runBalancing()
Handle for batch processes to kick off balancing
|
void |
setBatchFileDirectoryName(String batchFileDirectoryName)
Sets the batchFileDirectoryName
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the BusinessObjectService
|
void |
setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)
Sets the ConfigurationService
|
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Sets the DateTimeService
|
void |
setLedgerBalanceBalancingDao(LedgerBalanceBalancingDao ledgerBalanceBalancingDao)
Sets the LedgerBalanceBalancingDao
|
void |
setLedgerBalanceHistoryBalancingDao(LedgerBalanceHistoryBalancingDao ledgerBalanceHistoryBalancingDao)
Sets the ledgerBalanceHistoryBalancingDao
|
void |
setLedgerBalancingDao(LedgerBalancingDao ledgerBalancingDao)
Sets the LedgerBalancingDao
|
void |
setLedgerEntryBalanceCachingDao(LedgerEntryBalanceCachingDao ledgerEntryBalanceCachingDao)
Sets the ledgerEntryBalanceCachingDao attribute value.
|
void |
setLedgerEntryBalancingDao(LedgerEntryBalancingDao ledgerEntryBalancingDao)
Sets the LedgerEntryBalancingDao
|
void |
setLedgerEntryHistoryBalancingDao(LedgerEntryHistoryBalancingDao ledgerEntryHistoryBalancingDao)
Sets the LedgerEntryHistoryBalancingDao
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the ParameterService
|
void |
setPersistenceStructureService(org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService)
Sets the persistenceStructureService.
|
void |
setReportWriterService(ReportWriterService reportWriterService)
Sets the reportWriterService
|
void |
setUniversityDateService(UniversityDateService universityDateService)
Sets the UniversityDateService
|
protected void |
updateCustomHistory(Integer postMode,
OriginEntryInformation originEntry)
Possible override if sub class has additional history tables.
|
protected int |
updateHistoriesHelper(Integer postMode,
Integer startUniversityFiscalYear,
File inputFile,
File errorFile)
This is a helper method that wraps parsing poster entries for updateEntryHistory and updateBalanceHistory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearHistories, clearPosterFileCache, getBalance, getComparisonFailuresToPrintPerReport, getFilenames, getICRErrorOutputFile, getICRInputFile, getOriginEntry, getPastFiscalYearsToConsider, getPosterErrorOutputFile, getPosterInputFile, getReversalErrorOutputFile, getReversalInputFile, getShortTableLabel, updateBalanceHistory, updateEntryHistory
protected Class<T extends Entry> entryHistoryPersistentClass
protected Class<S extends Balance> balanceHistoryPersistentClass
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
protected org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService
protected org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService
protected org.kuali.rice.krad.service.BusinessObjectService businessObjectService
protected org.kuali.rice.core.api.datetime.DateTimeService dateTimeService
protected UniversityDateService universityDateService
protected LedgerBalancingDao ledgerBalancingDao
protected LedgerEntryBalancingDao ledgerEntryBalancingDao
protected LedgerEntryBalanceCachingDao ledgerEntryBalanceCachingDao
protected LedgerBalanceBalancingDao ledgerBalanceBalancingDao
protected LedgerBalanceHistoryBalancingDao ledgerBalanceHistoryBalancingDao
protected LedgerEntryHistoryBalancingDao ledgerEntryHistoryBalancingDao
protected ReportWriterService reportWriterService
protected String batchFileDirectoryName
public BalancingServiceBaseImpl()
public boolean runBalancing()
BalancingService
runBalancing
in interface BalancingService
BalancingService.runBalancing()
protected boolean isFilesReady()
protected void deleteHistory(Integer universityFiscalYear, Class<? extends org.kuali.rice.krad.bo.PersistableBusinessObjectBase> persistentClass)
universityFiscalYear
- the given university fiscal yearpersistentClass
- table for which to delete the historyprotected int getHistoryCount(Integer fiscalYear, Class<? extends org.kuali.rice.krad.bo.PersistableBusinessObjectBase> persistentClass)
fiscalYear
- parameter may be null which will get count for all yearspersistentClass
- table for which to get the countprotected int updateHistoriesHelper(Integer postMode, Integer startUniversityFiscalYear, File inputFile, File errorFile)
startUniversityFiscalYear
- fiscal year for which to accept the earlier parsed lines from the input fileprotected abstract Integer compareBalanceHistory()
protected abstract Integer compareEntryHistory()
protected int getFiscalYear()
public void customPopulateHistoryTables(Integer fiscalYear)
fiscalYear
- fiscal year populate should start fromprotected boolean doesCustomHistoryExist(Integer fiscalYear)
fiscalYear
- given fiscal yearprotected void deleteCustomHistory(Integer fiscalYear)
fiscalYear
- given fiscal yearprotected void updateCustomHistory(Integer postMode, OriginEntryInformation originEntry)
originEntry
- representing the update detailsprotected Map<String,Integer> customCompareHistory()
protected void customPrintRowCountHistory(Integer fiscalYear)
fiscalYear
- starting from which fiscal year the comparision should take placepublic void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService
- The ParameterService to set.public void setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)
kualiConfigurationService
- The ConfigurationService to set.public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService
- The BusinessObjectService to set.public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService
- The DateTimeService to set.public void setUniversityDateService(UniversityDateService universityDateService)
universityDateService
- The UniversityDateService to set.public void setLedgerBalancingDao(LedgerBalancingDao ledgerBalancingDao)
ledgerBalancingDao
- The LedgerBalancingDao to set.public void setLedgerEntryBalancingDao(LedgerEntryBalancingDao ledgerEntryBalancingDao)
ledgerEntryBalancingDao
- The LedgerEntryBalancingDao to set.public void setLedgerBalanceBalancingDao(LedgerBalanceBalancingDao ledgerBalanceBalancingDao)
ledgerBalanceBalancingDao
- The LedgerBalanceBalancingDao to set.public void setLedgerBalanceHistoryBalancingDao(LedgerBalanceHistoryBalancingDao ledgerBalanceHistoryBalancingDao)
ledgerBalanceHistoryBalancingDao
- The LedgerBalanceHistoryBalancingDao to set.public void setLedgerEntryHistoryBalancingDao(LedgerEntryHistoryBalancingDao ledgerEntryHistoryBalancingDao)
ledgerEntryHistoryBalancingDao
- The LedgerEntryHistoryBalancingDao to set.public void setReportWriterService(ReportWriterService reportWriterService)
reportWriterService
- The reportWriterService to set.public void setBatchFileDirectoryName(String batchFileDirectoryName)
batchFileDirectoryName
- The batchFileDirectoryName to set.public void setLedgerEntryBalanceCachingDao(LedgerEntryBalanceCachingDao ledgerEntryBalanceCachingDao)
ledgerEntryBalanceCachingDao
- The ledgerEntryBalanceCachingDao to set.public void setPersistenceStructureService(org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService)
persistenceStructureService
- Copyright © 2004–2015 The Kuali Foundation. All rights reserved.