|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.ld.batch.service.impl.LaborPosterServiceImpl
@Transactional public class LaborPosterServiceImpl
The Labor Ledger Poster accepts pending entries generated by Labor Ledger e-docs (such as Salary Expense Transfer and Benefit Expense Transfer), and combines them with entries from external systems. It edits the entries for validity. Invalid entries can be marked for Labor Ledger Error Correction process. The Poster writes valid entries to the Labor Ledger Entry table, updates balances in the Labor Ledger Balance table, and summarizes the entries for posting to the General Ledger.
Constructor Summary | |
---|---|
LaborPosterServiceImpl()
|
Method Summary | |
---|---|
protected Map<String,Integer> |
constructGlEntryReportSummary()
|
protected Map<String,Integer> |
constructPosterReportSummary()
|
protected void |
fillGlEntryReportWriter(Map<String,Integer> glEntryReportSummary)
|
protected void |
fillPosterReportWriter(int lineNumber,
Map<String,Integer> reportSummary,
Map<String,Integer> glEntryReportSummary)
|
List<String> |
getBalanceTypesNotProcessed()
Get a set of the balance type codes that are bypassed by Labor Poster |
List<String> |
getPeriodCodesNotProcessed()
Get a set of the fiscal period codes that are bypassed by Labor Poster |
protected List<Message> |
isPostableForLaborGLEntry(LaborOriginEntry originEntry)
determine if the given origin entry can be posted back to Labor GL entry |
protected String |
postAsLedgerEntry(LaborOriginEntry originEntry,
Date postDate)
post the given entry to the labor entry table |
protected void |
postLaborLedgerEntries(Date runDate)
post the qualified origin entries into Labor Ledger tables |
void |
postMainEntries()
Post the eligible entries into Ledger tables |
protected boolean |
postSingleEntryIntoLaborLedger(LaborOriginEntry originEntry,
Map<String,Integer> reportSummary,
Date runDate,
String line)
post the given entry into the labor ledger tables if the entry is qualified; otherwise report error |
void |
setBatchFileDirectoryName(String batchFileDirectoryName)
Sets the batchFileDirectoryName attribute value. |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute value. |
void |
setErrorListingReportWriterService(ReportWriterService errorListingReportWriterService)
Sets the errorListingReportWriterService |
void |
setLaborGlEntryStatisticsReportWriterService(ReportWriterService laborGlEntryStatisticsReportWriterService)
Sets the laborGlEntryStatisticsReportWriterService attribute value. |
void |
setLaborGLLedgerEntryPoster(PostTransaction laborGLLedgerEntryPoster)
Sets the laborGLLedgerEntryPoster attribute value. |
void |
setLaborLedgerBalancePoster(PostTransaction laborLedgerBalancePoster)
Sets the laborLedgerBalancePoster attribute value. |
void |
setLaborLedgerEntryPoster(PostTransaction laborLedgerEntryPoster)
Sets the laborLedgerEntryPoster attribute value. |
void |
setLaborOriginEntryService(LaborOriginEntryService laborOriginEntryService)
Sets the laborOriginEntryService attribute value. |
void |
setLaborPosterTransactionValidator(VerifyTransaction laborPosterTransactionValidator)
Sets the laborPosterTransactionValidator attribute value. |
void |
setLaborTransactionDescriptionService(LaborTransactionDescriptionService laborTransactionDescriptionService)
Sets the laborTransactionDescriptionService attribute value. |
void |
setLedgerSummaryReportWriterService(ReportWriterService ledgerSummaryReportWriterService)
Sets the ledgerSummaryReportWriterService |
void |
setOriginEntryGroupService(OriginEntryGroupService originEntryGroupService)
Sets the originEntryGroupService attribute value. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value. |
void |
setReportWriterService(ReportWriterService reportWriterService)
Sets the reportWriterService |
protected LaborOriginEntry |
summarizeLaborGLEntries(LaborOriginEntry laborOriginEntry,
LaborLedgerUnitOfWork laborLedgerUnitOfWork,
Date runDate,
int lineNumber,
Map<String,Integer> glEntryReportSummary)
summary the valid origin entries for the General Ledger |
protected String |
updateLedgerBalance(LaborOriginEntry originEntry,
Date postDate)
update the labor ledger balance for the given entry |
protected void |
updateReportSummary(Map<String,Integer> reportSummary,
String destination,
String operation)
|
protected List<Message> |
validateEntry(LaborOriginEntry originEntry)
validate the given entry, and generate an error list if the entry cannot meet the business rules |
protected void |
writeErrorEntry(String line)
|
protected void |
writeLaborGLEntry(LaborOriginEntry laborOriginEntry,
LaborLedgerUnitOfWork laborLedgerUnitOfWork,
Date runDate,
int lineNumber,
Map<String,Integer> glEntryReportSummary)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LaborPosterServiceImpl()
Method Detail |
---|
public void postMainEntries()
LaborPosterService
postMainEntries
in interface LaborPosterService
LaborPosterService.postMainEntries()
protected void postLaborLedgerEntries(Date runDate)
validGroup
- the origin entry group that holds the valid transactionsinvalidGroup
- the origin entry group that holds the invalid transactionsrunDate
- the data when the process is runningprotected boolean postSingleEntryIntoLaborLedger(LaborOriginEntry originEntry, Map<String,Integer> reportSummary, Date runDate, String line)
originEntry
- the given origin entry, a transactionreportSummary
- the report summary object that need to be update when a transaction is postedrunDate
- the data when the process is running
protected List<Message> validateEntry(LaborOriginEntry originEntry)
originEntry
- the given origin entry, a transcation
protected String postAsLedgerEntry(LaborOriginEntry originEntry, Date postDate)
originEntry
- the given origin entry, a transactionpostDate
- the data when the transaction is processes return the operation type of the processprotected String updateLedgerBalance(LaborOriginEntry originEntry, Date postDate)
originEntry
- the given origin entry, a transactionpostDate
- the data when the transaction is processes return the operation type of the processprotected List<Message> isPostableForLaborGLEntry(LaborOriginEntry originEntry)
originEntry
- the given origin entry, atransaction
protected void fillPosterReportWriter(int lineNumber, Map<String,Integer> reportSummary, Map<String,Integer> glEntryReportSummary)
protected Map<String,Integer> constructPosterReportSummary()
protected Map<String,Integer> constructGlEntryReportSummary()
protected void fillGlEntryReportWriter(Map<String,Integer> glEntryReportSummary)
protected LaborOriginEntry summarizeLaborGLEntries(LaborOriginEntry laborOriginEntry, LaborLedgerUnitOfWork laborLedgerUnitOfWork, Date runDate, int lineNumber, Map<String,Integer> glEntryReportSummary)
laborOriginEntry
- the current entry to check for summarizationlaborLedgerUnitOfWork
- the current (in process) summarized entry for the GLrunDate
- the data when the process is runninglineNumber
- the line in the input file (used for error message only)protected void writeLaborGLEntry(LaborOriginEntry laborOriginEntry, LaborLedgerUnitOfWork laborLedgerUnitOfWork, Date runDate, int lineNumber, Map<String,Integer> glEntryReportSummary)
protected void updateReportSummary(Map<String,Integer> reportSummary, String destination, String operation)
protected void writeErrorEntry(String line)
public List<String> getBalanceTypesNotProcessed()
public List<String> getPeriodCodesNotProcessed()
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.public void setLaborLedgerBalancePoster(PostTransaction laborLedgerBalancePoster)
laborLedgerBalancePoster
- The laborLedgerBalancePoster to set.public void setLaborGLLedgerEntryPoster(PostTransaction laborGLLedgerEntryPoster)
laborGLLedgerEntryPoster
- The laborGLLedgerEntryPoster to set.public void setLaborLedgerEntryPoster(PostTransaction laborLedgerEntryPoster)
laborLedgerEntryPoster
- The laborLedgerEntryPoster to set.public void setLaborOriginEntryService(LaborOriginEntryService laborOriginEntryService)
laborOriginEntryService
- The laborOriginEntryService to set.public void setOriginEntryGroupService(OriginEntryGroupService originEntryGroupService)
originEntryGroupService
- The originEntryGroupService to set.public void setLaborTransactionDescriptionService(LaborTransactionDescriptionService laborTransactionDescriptionService)
laborTransactionDescriptionService
- The laborTransactionDescriptionService to set.public void setReportWriterService(ReportWriterService reportWriterService)
reportWriterService
- The reportWriterService to set.public void setErrorListingReportWriterService(ReportWriterService errorListingReportWriterService)
errorListingReportWriterService
- The errorListingReportWriterService to set.public void setLedgerSummaryReportWriterService(ReportWriterService ledgerSummaryReportWriterService)
ledgerSummaryReportWriterService
- The ledgerSummaryReportWriterService to set.public void setLaborPosterTransactionValidator(VerifyTransaction laborPosterTransactionValidator)
laborPosterTransactionValidator
- The laborPosterTransactionValidator to set.public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- The parameterService to set.public void setLaborGlEntryStatisticsReportWriterService(ReportWriterService laborGlEntryStatisticsReportWriterService)
laborGlEntryStatisticsReportWriterService
- The laborGlEntryStatisticsReportWriterService to set.public void setBatchFileDirectoryName(String batchFileDirectoryName)
batchFileDirectoryName
- The batchFileDirectoryName to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |