@Transactional public class LaborPosterServiceImpl extends Object implements LaborPosterService
Constructor and Description |
---|
LaborPosterServiceImpl() |
Modifier and Type | Method and Description |
---|---|
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) |
Collection<String> |
getBalanceTypesNotProcessed()
Get a set of the balance type codes that are bypassed by Labor Poster
|
Collection<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.core.api.datetime.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.coreservice.framework.parameter.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) |
public LaborPosterServiceImpl()
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 runningprotected List<Message> validateEntry(LaborOriginEntry originEntry)
originEntry
- the given origin entry, a transcationprotected 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, atransactionprotected 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 Collection<String> getBalanceTypesNotProcessed()
public Collection<String> getPeriodCodesNotProcessed()
public void setDateTimeService(org.kuali.rice.core.api.datetime.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.coreservice.framework.parameter.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.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.