|
||||||||||
| 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.CollectorReportServiceImpl
public class CollectorReportServiceImpl
The base implementation of the CollectorReportService
| Nested Class Summary | |
|---|---|
protected class |
CollectorReportServiceImpl.KualiDecimalFormatter
|
| Constructor Summary | |
|---|---|
CollectorReportServiceImpl()
Constructs a CollectorReportServiceImpl instance |
|
| Method Summary | |
|---|---|
protected void |
appendAmountCountLine(StringBuilder buf,
String countTitle,
String count,
org.kuali.rice.kns.util.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)
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 org.kuali.rice.kns.service.DateTimeService |
getDateTimeService()
Gets the dateTimeService attribute. |
org.kuali.rice.kns.service.MailService |
getMailService()
Gets the mailService attribute. |
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.kns.service.KualiConfigurationService configurationService)
|
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute value. |
void |
setMailService(org.kuali.rice.kns.service.MailService mailService)
Sets the mailService attribute value. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
void |
setPreScrubberService(PreScrubberService preScrubberService)
|
protected List<String> |
translateErrorsFromErrorMap(org.kuali.rice.kns.util.MessageMap errorMap)
Builds actual error message from error key and parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectorReportServiceImpl()
| Method Detail |
|---|
public void sendEmails(CollectorReportData collectorReportData)
sendEmails in interface CollectorReportServicecollectorReportData - data gathered from the run of the CollectorCollectorReportService.sendEmails(org.kuali.kfs.gl.report.CollectorReportData)public void generateCollectorRunReports(CollectorReportData collectorReportData)
generateCollectorRunReports in interface CollectorReportServicecollectorReportData - data gathered from the run of the CollectorCollectorReportService.generateCollectorRunReports(org.kuali.kfs.gl.report.CollectorReportData)protected void appendCollectorHeaderInformation(CollectorReportData collectorReportData)
collectorReportData - data gathered from the run of the Collector
protected void appendHeaderInformation(StringBuilder buf,
CollectorBatch batch)
buf - the buffer where the message should gobatch - the data from the Collector file
protected 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 write
protected void appendAmountCountLine(StringBuilder buf,
String countTitle,
String count,
org.kuali.rice.kns.util.KualiDecimal amount)
buf - the buffer to write the line tocountTitle - the title of this part of the reportcount - the Collector countamountString - the Collector amount
protected 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 be
protected 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 Collector
DocumentException - the exception thrown if the PDF cannot be written toprotected void appendDeletedOriginEntryAndDetailReport(CollectorReportData collectorReportData)
collectorReportData - data gathered from the run of the Collector
DocumentException - the exception thrown if the PDF cannot be written toprotected void appendDetailChangedAccountReport(CollectorReportData collectorReportData)
collectorReportData - data gathered from the run of the Collector
DocumentException - the exception thrown if the PDF cannot be written toprotected org.kuali.rice.kns.service.DateTimeService getDateTimeService()
public void setDateTimeService(org.kuali.rice.kns.service.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 data
protected void appendLedgerReport(CollectorReportData collectorReportData)
collectorReportData - the data from the Collector run
DocumentException - thrown if it is impossible to write to the reportprotected List<String> translateErrorsFromErrorMap(org.kuali.rice.kns.util.MessageMap errorMap)
errorMap - a map of errors
protected void sendValidationEmail(CollectorBatch batch,
CollectorReportData collectorReportData)
batch - the Collector data from the filecollectorReportData - data gathered from the run of the Collector
protected 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 run
protected 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 Collector
protected 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 left
protected 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 left
protected String createDemergerMessageBody(CollectorBatch batch,
CollectorReportData collectorReportData)
batch - the data from the Collector filecollectorReportData - data gathered from the run of the Collector
public org.kuali.rice.kns.service.MailService getMailService()
public void setMailService(org.kuali.rice.kns.service.MailService mailService)
mailService - The mailService to set.public void setConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService configurationService)
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
public void setCollectorReportWriterService(ReportWriterService collectorReportWriterService)
collectorReportWriterService - The collectorReportWriterService to set.public void setPreScrubberService(PreScrubberService preScrubberService)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||