@Transactional public class BalancingServiceImpl extends BalancingServiceBaseImpl<EntryHistory,BalanceHistory> implements BalancingService
Modifier and Type | Field and Description |
---|---|
protected AccountBalanceDao |
accountBalanceDao |
protected BalancingDao |
balancingDao |
protected EncumbranceDao |
encumbranceDao |
protected File |
icrErrorOutputFile |
protected File |
icrInputFile |
protected File |
posterErrorOutputFile |
protected File |
posterInputFile |
protected File |
reversalErrorOutputFile |
protected File |
reversalInputFile |
balanceHistoryPersistentClass, batchFileDirectoryName, businessObjectService, dateTimeService, entryHistoryPersistentClass, kualiConfigurationService, ledgerBalanceBalancingDao, ledgerBalanceHistoryBalancingDao, ledgerBalancingDao, ledgerEntryBalanceCachingDao, ledgerEntryBalancingDao, ledgerEntryHistoryBalancingDao, parameterService, persistenceStructureService, reportWriterService, universityDateService
Constructor and Description |
---|
BalancingServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected Integer |
accountBalanceCompareHistory()
Does comparision, error printing and returns failure count for account balances
|
void |
clearHistories()
Removes the data from the History tables.
|
void |
clearPosterFileCache()
In order to avoid file system scans this class caches poster input and poster error filenames.
|
protected Integer |
compareBalanceHistory()
Compares entries in the Balance and BalanceHistory tables to ensure the amounts match.
|
protected Integer |
compareEntryHistory()
Compares entries in the Entry and EntryHistory tables to ensure the amounts match.
|
protected org.kuali.rice.core.api.util.type.KualiDecimal |
convertBigDecimalToKualiDecimal(BigDecimal biggy) |
protected AccountBalanceHistory |
createAccountBalanceHistoryFromMap(Map<String,Object> map) |
protected BalanceHistory |
createBalanceFromMap(Map<String,Object> map) |
protected EncumbranceHistory |
createEncumbranceHistoryFromMap(Map<String,Object> map) |
protected EntryHistory |
createEntryHistoryFromMap(Map<String,Object> map) |
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 boolean |
doesCustomHistoryExist(Integer fiscalYear)
Possible override if sub class has additional history tables.
|
protected Integer |
encumbranceCompareHistory()
Does comparision, error printing and returns failure count for encumbrances
|
Balance |
getBalance(LedgerBalanceHistory ledgerBalanceHistory)
Returns a Balance object for the parameters of the passed in LedgerBalanceHistory.
|
int |
getComparisonFailuresToPrintPerReport() |
File |
getFile(String fileName,
String fileExtension) |
String |
getFilenames()
Returns filenames used by process.
|
File |
getICRErrorOutputFile() |
File |
getICRInputFile() |
OriginEntryInformation |
getOriginEntry(String inputLine,
int lineNumber)
Gets an OriginEntryInformation for the parsed line.
|
int |
getPastFiscalYearsToConsider() |
File |
getPosterErrorOutputFile() |
File |
getPosterInputFile() |
File |
getReversalErrorOutputFile() |
File |
getReversalInputFile() |
String |
getShortTableLabel(String businessObjectName) |
boolean |
runBalancing()
Handle for batch processes to kick off balancing
|
void |
setAccountBalanceDao(AccountBalanceDao accountBalanceDao)
Sets the AccountBalanceDao
|
void |
setBalancingDao(BalancingDao balancingDao)
Sets the BalancingDao
|
void |
setEncumbranceDao(EncumbranceDao encumbranceDao)
Sets the EncumbranceDao
|
protected void |
updateAccountBalanceHistory(OriginEntryInformation originEntry)
Update the account balance history table
|
void |
updateBalanceHistory(Integer postMode,
OriginEntryInformation originEntry)
Updates the balance history table
|
protected void |
updateCustomHistory(Integer postMode,
OriginEntryInformation originEntry)
Possible override if sub class has additional history tables.
|
protected void |
updateEncumbranceHistory(OriginEntryInformation originEntry)
Update the encumbrance history table
|
void |
updateEntryHistory(Integer postMode,
OriginEntryInformation originEntry)
Update the entry history table
|
deleteHistory, getFiscalYear, getHistoryCount, isFilesReady, setBatchFileDirectoryName, setBusinessObjectService, setConfigurationService, setDateTimeService, setLedgerBalanceBalancingDao, setLedgerBalanceHistoryBalancingDao, setLedgerBalancingDao, setLedgerEntryBalanceCachingDao, setLedgerEntryBalancingDao, setLedgerEntryHistoryBalancingDao, setParameterService, setPersistenceStructureService, setReportWriterService, setUniversityDateService, updateHistoriesHelper
protected BalancingDao balancingDao
protected AccountBalanceDao accountBalanceDao
protected EncumbranceDao encumbranceDao
protected File posterInputFile
protected File posterErrorOutputFile
protected File reversalInputFile
protected File reversalErrorOutputFile
protected File icrInputFile
protected File icrErrorOutputFile
public BalancingServiceImpl()
public boolean runBalancing()
BalancingService
runBalancing
in interface BalancingService
runBalancing
in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>
BalancingService.runBalancing()
public File getPosterInputFile()
getPosterInputFile
in interface BalancingService
BalancingService.getPosterInputFile()
public File getPosterErrorOutputFile()
getPosterErrorOutputFile
in interface BalancingService
BalancingService.getPosterErrorOutputFile()
public File getReversalInputFile()
getReversalInputFile
in interface BalancingService
BalancingService.getReversalInputFile()
public File getReversalErrorOutputFile()
getReversalErrorOutputFile
in interface BalancingService
BalancingService.getReversalErrorOutputFile()
public File getICRInputFile()
getICRInputFile
in interface BalancingService
BalancingService.getICRInputFile()
public File getICRErrorOutputFile()
getICRErrorOutputFile
in interface BalancingService
BalancingService.getICRErrorOutputFile()
public int getPastFiscalYearsToConsider()
getPastFiscalYearsToConsider
in interface BalancingService
BalancingService.getPastFiscalYearsToConsider()
public int getComparisonFailuresToPrintPerReport()
getComparisonFailuresToPrintPerReport
in interface BalancingService
BalancingService.getComparisonFailuresToPrintPerReport()
public String getShortTableLabel(String businessObjectName)
getShortTableLabel
in interface BalancingService
businessObjectName
- name of the BO for which to return the labelBalancingService.getShortTableLabel(java.lang.String)
public OriginEntryInformation getOriginEntry(String inputLine, int lineNumber)
BalancingService
getOriginEntry
in interface BalancingService
inputLine
- line that was read from getPosterInputFilenamelineNumber
- line number we are currently reading from getPosterInputFilenameBalancingService.getOriginEntry(java.lang.String, int)
public void updateEntryHistory(Integer postMode, OriginEntryInformation originEntry)
BalancingService
updateEntryHistory
in interface BalancingService
originEntry
- representing the update detailsorg.kuali.ole.gl.batch.service.BalancingService#updateEntryHistory(org.kuali.ole.gl.businessobject.OriginEntryInformation)
,
org.kuali.ole.gl.batch.service.impl.PostEntry#post(org.kuali.ole.gl.businessobject.Transaction, int, java.util.Date)
public void updateBalanceHistory(Integer postMode, OriginEntryInformation originEntry)
BalancingService
updateBalanceHistory
in interface BalancingService
originEntry
- representing the update detailsorg.kuali.ole.gl.batch.service.BalancingService#updateBalanceHistory(org.kuali.ole.gl.businessobject.OriginEntryInformation)
,
org.kuali.ole.gl.batch.service.impl.PostBalance#post(org.kuali.ole.gl.businessobject.Transaction, int, java.util.Date)
public Balance getBalance(LedgerBalanceHistory ledgerBalanceHistory)
BalancingService
getBalance
in interface BalancingService
ledgerBalanceHistory
- to retrieve the Balance object forBalancingService.getBalance(org.kuali.ole.gl.businessobject.LedgerBalanceHistory)
public void clearPosterFileCache()
BalancingService
clearPosterFileCache
in interface BalancingService
BalancingService.clearPosterFileCache()
public void customPopulateHistoryTables(Integer fiscalYear)
BalancingServiceBaseImpl
customPopulateHistoryTables
in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>
fiscalYear
- fiscal year populate should start fromBalancingServiceBaseImpl.customPopulateHistoryTables(java.lang.Integer)
protected boolean doesCustomHistoryExist(Integer fiscalYear)
BalancingServiceBaseImpl
doesCustomHistoryExist
in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>
fiscalYear
- given fiscal yearBalancingServiceBaseImpl.doesCustomHistoryExist(java.lang.Integer)
protected void deleteCustomHistory(Integer fiscalYear)
BalancingServiceBaseImpl
deleteCustomHistory
in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>
fiscalYear
- given fiscal yearBalancingServiceBaseImpl.deleteCustomHistory(java.lang.Integer)
protected void updateCustomHistory(Integer postMode, OriginEntryInformation originEntry)
BalancingServiceBaseImpl
updateCustomHistory
in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>
originEntry
- representing the update detailsorg.kuali.ole.gl.batch.service.impl.BalancingServiceBaseImpl#updateCustomHistory(org.kuali.ole.gl.businessobject.OriginEntryInformation)
protected void updateAccountBalanceHistory(OriginEntryInformation originEntry)
originEntry
- representing the update detailsorg.kuali.ole.gl.batch.service.impl.PostAccountBalance#post(org.kuali.ole.gl.businessobject.Transaction, int, java.util.Date)
public void clearHistories()
BalancingService
clearHistories
in interface BalancingService
org.kuali.ole.gl.batch.service.BalancingService#clearBalanceHistory()
public String getFilenames()
BalancingService
getFilenames
in interface BalancingService
BalancingService.getFilenames()
protected Integer compareBalanceHistory()
compareBalanceHistory
in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>
protected Integer compareEntryHistory()
compareEntryHistory
in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>
protected void updateEncumbranceHistory(OriginEntryInformation originEntry)
originEntry
- representing the update detailsorg.kuali.ole.gl.batch.service.impl.PostEncumbrance#post(org.kuali.ole.gl.businessobject.Transaction, int, java.util.Date)
protected Map<String,Integer> customCompareHistory()
BalancingServiceBaseImpl
customCompareHistory
in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>
BalancingServiceBaseImpl.customCompareHistory()
protected Integer accountBalanceCompareHistory()
protected Integer encumbranceCompareHistory()
protected void customPrintRowCountHistory(Integer fiscalYear)
BalancingServiceBaseImpl
customPrintRowCountHistory
in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>
fiscalYear
- starting from which fiscal year the comparision should take placeorg.kuali.ole.gl.batch.service.impl.BalancingServiceBaseImpl#customPrintRowCountHistory()
public void setBalancingDao(BalancingDao balancingDao)
balancingDao
- The BalancingDao to set.public void setAccountBalanceDao(AccountBalanceDao accountBalanceDao)
accountBalanceDao
- The AccountBalanceDao to set.public void setEncumbranceDao(EncumbranceDao encumbranceDao)
encumbranceDao
- The EncumbranceDao to set.protected BalanceHistory createBalanceFromMap(Map<String,Object> map)
protected EntryHistory createEntryHistoryFromMap(Map<String,Object> map)
protected AccountBalanceHistory createAccountBalanceHistoryFromMap(Map<String,Object> map)
protected EncumbranceHistory createEncumbranceHistoryFromMap(Map<String,Object> map)
protected org.kuali.rice.core.api.util.type.KualiDecimal convertBigDecimalToKualiDecimal(BigDecimal biggy)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.