|
||||||||||
| 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<LaborEntryHistory,LaborBalanceHistory>
org.kuali.kfs.module.ld.batch.service.impl.LaborBalancingServiceImpl
@Transactional public class LaborBalancingServiceImpl
Service implementation of BalancingService for Labor balancing
| Field Summary | |
|---|---|
protected File |
laborPosterErrorOutputFile
|
protected File |
laborPosterInputFile
|
| Constructor Summary | |
|---|---|
LaborBalancingServiceImpl()
|
|
| Method Summary | |
|---|---|
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 LaborBalanceHistory |
createBalanceFromMap(Map<String,Object> map)
|
protected LaborEntryHistory |
createEntryHistoryFromMap(Map<String,Object> map)
|
Balance |
getBalance(LedgerBalanceHistory ledgerBalanceHistory)
Returns a Balance object for the parameters of the passed in LedgerBalanceHistory. |
int |
getComparisonFailuresToPrintPerReport()
|
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)
|
void |
updateBalanceHistory(Integer postMode,
OriginEntryInformation originEntry)
Updates the balance history table |
void |
updateEntryHistory(Integer postMode,
OriginEntryInformation originEntry)
Update the entry history table |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.kuali.kfs.gl.batch.service.BalancingService |
|---|
runBalancing |
| Field Detail |
|---|
protected File laborPosterInputFile
protected File laborPosterErrorOutputFile
| Constructor Detail |
|---|
public LaborBalancingServiceImpl()
| Method Detail |
|---|
public File getPosterInputFile()
getPosterInputFile in interface BalancingServiceBalancingService.getPosterInputFile()public File getPosterErrorOutputFile()
getPosterErrorOutputFile in interface BalancingServiceBalancingService.getPosterErrorOutputFile()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)
protected int updateHistoriesHelper(Integer postMode,
Integer startUniversityFiscalYear,
File inputFile,
File errorFile)
BalancingServiceBaseImpl
updateHistoriesHelper in class BalancingServiceBaseImpl<LaborEntryHistory,LaborBalanceHistory>startUniversityFiscalYear - fiscal year for which to accept the earlier parsed lines from the input file
BalancingServiceBaseImpl.updateHistoriesHelper(java.lang.Integer, java.lang.Integer, java.io.File, java.io.File)
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.module.ld.batch.service.impl.LaborPosterServiceImpl#postAsLedgerEntry(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.module.ld.batch.service.impl.LaborPosterServiceImpl#updateLedgerBalance(org.kuali.kfs.gl.businessobject.Transaction, int, java.util.Date)protected Integer compareBalanceHistory()
compareBalanceHistory in class BalancingServiceBaseImpl<LaborEntryHistory,LaborBalanceHistory>protected Integer compareEntryHistory()
compareEntryHistory in class BalancingServiceBaseImpl<LaborEntryHistory,LaborBalanceHistory>public void clearHistories()
BalancingService
clearHistories in interface BalancingServiceorg.kuali.kfs.gl.batch.service.BalancingService#clearBalanceHistory()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()protected LaborBalanceHistory createBalanceFromMap(Map<String,Object> map)
protected LaborEntryHistory createEntryHistoryFromMap(Map<String,Object> map)
protected org.kuali.rice.kns.util.KualiDecimal convertBigDecimalToKualiDecimal(BigDecimal biggy)
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||