public class CollectorReportServiceImpl extends Object implements CollectorReportService
Modifier and Type | Class and Description |
---|---|
protected static class |
CollectorReportServiceImpl.KualiDecimalFormatter |
Modifier and Type | Field and Description |
---|---|
protected ReportWriterService |
collectorReportWriterService |
protected org.kuali.rice.core.api.config.property.ConfigurationService |
configurationService |
protected org.kuali.rice.core.api.datetime.DateTimeService |
dateTimeService |
protected org.kuali.rice.krad.service.MailService |
mailService |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
parameterService |
protected PreScrubberService |
preScrubberService |
Constructor and Description |
---|
CollectorReportServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendAmountCountLine(StringBuilder buf,
String countTitle,
String count,
org.kuali.rice.core.api.util.type.KualiDecimal amount)
Writes the Amount/Count line of the Collector to a buffer
|
protected void |
appendCollectorHeaderInformation(CollectorReportData collectorReportData)
Appends Collector header information to the report writer
|
protected void |
appendDeletedOriginEntryAndDetailReport(CollectorReportData collectorReportData)
Writes information about origin entry and details to the report
|
protected void |
appendDemergerReport(CollectorReportData collectorReportData)
Writes the report of the demerger run against the Collector data
|
protected void |
appendDetailChangedAccountReport(CollectorReportData collectorReportData)
Writes information about what details where changed in the Collector to the report
|
protected void |
appendHeaderInformation(StringBuilder buf,
CollectorBatch batch,
CollectorReportData collectorReportData)
Appends header information to the given buffer
|
protected void |
appendLedgerReport(CollectorReportData collectorReportData)
Adds the ledger report to this Collector report
|
protected StringBuilder |
appendPaddingString(StringBuilder buf,
char padCharacter,
int valueLength,
int desiredLength)
Writes some padding to a buffer
|
protected void |
appendPreScrubberReport(CollectorReportData collectorReportData) |
protected void |
appendScrubberReport(CollectorReportData collectorReportData)
Writes the results of the Scrubber's run on the Collector data to the report writer
|
protected void |
appendTotalsInformation(StringBuilder buf,
CollectorBatch batch)
Writes totals information to the report
|
protected void |
appendValidationStatus(StringBuilder buf,
List<String> errorMessages,
boolean notifyIfSuccessful,
int numLeftPaddingSpaces)
Appends the validation status message to a buffer
|
protected List<Summary> |
buildDemergerReportSummary(ScrubberReportData scrubberReportData,
DemergerReportData demergerReport)
Generate the header for the demerger status report.
|
protected String |
createDemergerMessageBody(CollectorBatch batch,
CollectorReportData collectorReportData)
Writes the part of the report about the demerger
|
protected String |
createValidationMessageBody(List<String> errorMessages,
CollectorBatch batch,
CollectorReportData collectorReportData)
Creates a section about validation messages
|
void |
generateCollectorRunReports(CollectorReportData collectorReportData)
Generates the reports about a given Collector run
|
protected String |
getValidationStatus(List<String> errorMessages,
boolean notifyIfSuccessful,
int numLeftPaddingSpaces)
Generates a String that reports on the validation status of the document
|
protected void |
sendDemergerEmail(CollectorBatch batch,
CollectorReportData collectorReportData)
Sends the e-mail about the demerger step
|
void |
sendEmails(CollectorReportData collectorReportData)
Sends out e-mails about the validation and demerger of the Collector run
|
protected void |
sendEmailSendFailureNotice(CollectorReportData collectorReportData)
Sends email message to batch mailing list notifying of email send failures during the collector processing
|
protected void |
sendValidationEmail(CollectorBatch batch,
CollectorReportData collectorReportData)
Sends email with results of the batch processing.
|
void |
setCollectorReportWriterService(ReportWriterService collectorReportWriterService)
Sets the collectorReportWriterService attribute value.
|
void |
setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService configurationService) |
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Sets the dateTimeService attribute value.
|
void |
setMailService(org.kuali.rice.krad.service.MailService mailService) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
void |
setPreScrubberService(PreScrubberService preScrubberService) |
protected List<String> |
translateErrorsFromMessageMap(org.kuali.rice.krad.util.MessageMap messageMap)
Builds actual error message from error key and parameters.
|
protected org.kuali.rice.core.api.datetime.DateTimeService dateTimeService
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
protected org.kuali.rice.core.api.config.property.ConfigurationService configurationService
protected org.kuali.rice.krad.service.MailService mailService
protected PreScrubberService preScrubberService
protected ReportWriterService collectorReportWriterService
public CollectorReportServiceImpl()
public void sendEmails(CollectorReportData collectorReportData)
sendEmails
in interface CollectorReportService
collectorReportData
- data gathered from the run of the CollectorCollectorReportService.sendEmails(org.kuali.ole.gl.report.CollectorReportData)
public void generateCollectorRunReports(CollectorReportData collectorReportData)
generateCollectorRunReports
in interface CollectorReportService
collectorReportData
- data gathered from the run of the CollectorCollectorReportService.generateCollectorRunReports(org.kuali.ole.gl.report.CollectorReportData)
protected void appendCollectorHeaderInformation(CollectorReportData collectorReportData)
collectorReportData
- data gathered from the run of the Collectorprotected void appendHeaderInformation(StringBuilder buf, CollectorBatch batch, CollectorReportData collectorReportData)
buf
- the buffer where the message should gobatch
- the data from the Collector fileprotected void appendTotalsInformation(StringBuilder buf, CollectorBatch batch)
buf
- the buffer where the e-mail report is being writtenbatch
- the data generated by the Collector file uploadtotals
- the totals to writeprotected void appendAmountCountLine(StringBuilder buf, String countTitle, String count, org.kuali.rice.core.api.util.type.KualiDecimal amount)
buf
- the buffer to write the line tocountTitle
- the title of this part of the reportcount
- the Collector countamountString
- the Collector amountprotected StringBuilder appendPaddingString(StringBuilder buf, char padCharacter, int valueLength, int desiredLength)
buf
- the buffer to write topadCharacter
- the character to repeat in the padvalueLength
- the length of the value being paddeddesiredLength
- the length the whole String should beprotected void appendPreScrubberReport(CollectorReportData collectorReportData)
protected void appendScrubberReport(CollectorReportData collectorReportData)
collectorReportData
- data gathered from the run of the Collectorprotected void appendDemergerReport(CollectorReportData collectorReportData)
collectorReportData
- data gathered from the run of the CollectorDocumentException
- the exception thrown if the PDF cannot be written toprotected void appendDeletedOriginEntryAndDetailReport(CollectorReportData collectorReportData)
collectorReportData
- data gathered from the run of the CollectorDocumentException
- the exception thrown if the PDF cannot be written toprotected void appendDetailChangedAccountReport(CollectorReportData collectorReportData)
collectorReportData
- data gathered from the run of the CollectorDocumentException
- the exception thrown if the PDF cannot be written topublic void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.protected List<Summary> buildDemergerReportSummary(ScrubberReportData scrubberReportData, DemergerReportData demergerReport)
scrubberReportData
- the data gathered from the run of the scrubber on the collector datademergerReport
- the data gathered from the run of the demerger on the collector dataprotected void appendLedgerReport(CollectorReportData collectorReportData)
collectorReportData
- the data from the Collector runDocumentException
- thrown if it is impossible to write to the reportprotected List<String> translateErrorsFromMessageMap(org.kuali.rice.krad.util.MessageMap messageMap)
errorMap
- a map of errorsprotected void sendValidationEmail(CollectorBatch batch, CollectorReportData collectorReportData)
batch
- the Collector data from the filecollectorReportData
- data gathered from the run of the Collectorprotected void sendDemergerEmail(CollectorBatch batch, CollectorReportData collectorReportData)
batch
- the data from the Collector filecollectorReportData
- data gathered from the run of the Collectorprotected void sendEmailSendFailureNotice(CollectorReportData collectorReportData)
collectorReportData
- - data from collector runprotected String createValidationMessageBody(List<String> errorMessages, CollectorBatch batch, CollectorReportData collectorReportData)
errorMessages
- a List of errors that happened during the Collector runbatch
- the data from the Collector filecollectorReportData
- data gathered from the run of the Collectorprotected String getValidationStatus(List<String> errorMessages, boolean notifyIfSuccessful, int numLeftPaddingSpaces)
errorMessages
- a List of error messages encountered in the Collector processnotifyIfSuccessful
- true if a special message for the process running successfully should be added, false otherwisenumLeftPaddingSpaces
- the number of spaces to pad on the leftprotected void appendValidationStatus(StringBuilder buf, List<String> errorMessages, boolean notifyIfSuccessful, int numLeftPaddingSpaces)
buf
- a StringBuilder to append error messages toerrorMessages
- a List of error messages encountered in the Collector processnotifyIfSuccessful
- true if a special message for the process running successfully should be added, false otherwisenumLeftPaddingSpaces
- the number of spaces to pad on the leftprotected String createDemergerMessageBody(CollectorBatch batch, CollectorReportData collectorReportData)
batch
- the data from the Collector filecollectorReportData
- data gathered from the run of the Collectorpublic void setMailService(org.kuali.rice.krad.service.MailService mailService)
public void setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService configurationService)
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
public void setCollectorReportWriterService(ReportWriterService collectorReportWriterService)
collectorReportWriterService
- The collectorReportWriterService to set.public void setPreScrubberService(PreScrubberService preScrubberService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.