|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.gl.batch.service.impl.BalancingServiceBaseImpl<EntryHistory,BalanceHistory>
org.kuali.kfs.gl.batch.service.impl.BalancingServiceImpl
@Transactional public class BalancingServiceImpl
Service implementation of BalancingService of GL balancing
| Field Summary | |
|---|---|
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
|
| Constructor Summary | |
|---|---|
BalancingServiceImpl()
|
|
| Method Summary | |
|---|---|
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.kns.util.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)
|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public BalancingServiceImpl()
| Method Detail |
|---|
public boolean runBalancing()
BalancingService
runBalancing in interface BalancingServicerunBalancing in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>BalancingService.runBalancing()public File getPosterInputFile()
getPosterInputFile in interface BalancingServiceBalancingService.getPosterInputFile()public File getPosterErrorOutputFile()
getPosterErrorOutputFile in interface BalancingServiceBalancingService.getPosterErrorOutputFile()public File getReversalInputFile()
getReversalInputFile in interface BalancingServiceBalancingService.getReversalInputFile()public File getReversalErrorOutputFile()
getReversalErrorOutputFile in interface BalancingServiceBalancingService.getReversalErrorOutputFile()public File getICRInputFile()
getICRInputFile in interface BalancingServiceBalancingService.getICRInputFile()public File getICRErrorOutputFile()
getICRErrorOutputFile in interface BalancingServiceBalancingService.getICRErrorOutputFile()
public File getFile(String fileName,
String fileExtension)
public int getPastFiscalYearsToConsider()
getPastFiscalYearsToConsider in interface BalancingServiceBalancingService.getPastFiscalYearsToConsider()public int getComparisonFailuresToPrintPerReport()
getComparisonFailuresToPrintPerReport in interface BalancingServiceBalancingService.getComparisonFailuresToPrintPerReport()public String getShortTableLabel(String businessObjectName)
getShortTableLabel in interface BalancingServicebusinessObjectName - name of the BO for which to return the label
BalancingService.getShortTableLabel(java.lang.String)
public OriginEntryInformation getOriginEntry(String inputLine,
int lineNumber)
BalancingService
getOriginEntry in interface BalancingServiceinputLine - line that was read from getPosterInputFilenamelineNumber - line number we are currently reading from getPosterInputFilename
BalancingService.getOriginEntry(java.lang.String, int)
public void updateEntryHistory(Integer postMode,
OriginEntryInformation originEntry)
BalancingService
updateEntryHistory in interface BalancingServiceoriginEntry - representing the update detailsorg.kuali.kfs.gl.batch.service.BalancingService#updateEntryHistory(org.kuali.kfs.gl.businessobject.OriginEntryInformation),
org.kuali.kfs.gl.batch.service.impl.PostEntry#post(org.kuali.kfs.gl.businessobject.Transaction, int, java.util.Date)
public void updateBalanceHistory(Integer postMode,
OriginEntryInformation originEntry)
BalancingService
updateBalanceHistory in interface BalancingServiceoriginEntry - representing the update detailsorg.kuali.kfs.gl.batch.service.BalancingService#updateBalanceHistory(org.kuali.kfs.gl.businessobject.OriginEntryInformation),
org.kuali.kfs.gl.batch.service.impl.PostBalance#post(org.kuali.kfs.gl.businessobject.Transaction, int, java.util.Date)public Balance getBalance(LedgerBalanceHistory ledgerBalanceHistory)
BalancingService
getBalance in interface BalancingServiceledgerBalanceHistory - to retrieve the Balance object for
BalancingService.getBalance(org.kuali.kfs.gl.businessobject.LedgerBalanceHistory)public void clearPosterFileCache()
BalancingService
clearPosterFileCache in interface BalancingServiceBalancingService.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 year
BalancingServiceBaseImpl.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.kfs.gl.batch.service.impl.BalancingServiceBaseImpl#updateCustomHistory(org.kuali.kfs.gl.businessobject.OriginEntryInformation)protected void updateAccountBalanceHistory(OriginEntryInformation originEntry)
originEntry - representing the update detailsorg.kuali.kfs.gl.batch.service.impl.PostAccountBalance#post(org.kuali.kfs.gl.businessobject.Transaction, int, java.util.Date)public void clearHistories()
BalancingService
clearHistories in interface BalancingServiceorg.kuali.kfs.gl.batch.service.BalancingService#clearBalanceHistory()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.kfs.gl.batch.service.impl.PostEncumbrance#post(org.kuali.kfs.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.kfs.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.kns.util.KualiDecimal convertBigDecimalToKualiDecimal(BigDecimal biggy)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||