| java.lang.Object org.kuali.module.gl.service.impl.CollectorReportServiceImpl
CollectorReportServiceImpl | public class CollectorReportServiceImpl implements CollectorReportService(Code) | | The base implementation of the CollectorReportService
|
Method Summary | |
protected void | appendAmountCountLine(StringBuilder buf, String countTitle, String count, String amountString) | protected void | appendCollectorHeaderInformation(Document document, CollectorReportData collectorReportData) | protected void | appendDeletedOriginEntryAndDetailReport(Document document, CollectorReportData collectorReportData) | protected void | appendDemergerReport(Document document, CollectorReportData collectorReportData) | protected void | appendDetailChangedAccountReport(Document document, CollectorReportData collectorReportData) | protected void | appendHeaderInformation(StringBuilder buf, CollectorBatch batch) | protected void | appendLedgerReport(Document document, CollectorReportData collectorReportData) | protected StringBuilder | appendPaddingString(StringBuilder buf, char padCharacter, int valueLength, int desiredLength) | protected void | appendScrubberReport(Document document, CollectorReportData collectorReportData) | protected void | appendTotalsInformation(StringBuilder buf, CollectorBatch batch, OriginEntryTotals totals) | protected void | appendValidationStatus(StringBuilder buf, List<String> errorMessages, boolean notifyIfSuccessful, int numLeftPaddingSpaces) | protected List<Summary> | buildDemergerReportSummary(ScrubberReportData scrubberReportData, DemergerReportData demergerReport) Generate the header for the demerger status report. | protected List<Summary> | buildScrubberReportSummary(ScrubberReportData scrubberReport) Generate the header for the scrubber status report. | protected String | createDemergerMessageBody(CollectorBatch batch, CollectorReportData collectorReportData) | protected String | createValidationMessageBody(List<String> errorMessages, CollectorBatch batch, CollectorReportData collectorReportData) | public void | generateCollectorRunReports(CollectorReportData collectorReportData) | protected DateTimeService | getDateTimeService() Gets the dateTimeService attribute. | public String | getDirectoryName() Gets the directoryName attribute. | public MailService | getMailService() Gets the mailService attribute. | protected String | getValidationStatus(List<String> errorMessages, boolean notifyIfSuccessful, int numLeftPaddingSpaces) | protected Document | openPdfWriter(String destinationDirectory, String fileprefix, Date runDate, String title) | protected void | sendDemergerEmail(CollectorBatch batch, CollectorReportData collectorReportData) | public void | sendEmails(CollectorReportData collectorReportData) | protected void | sendValidationEmail(CollectorBatch batch, CollectorReportData collectorReportData) Sends email with results of the batch processing. | public void | setConfigurationService(KualiConfigurationService configurationService) | public void | setDateTimeService(DateTimeService dateTimeService) Sets the dateTimeService attribute value. | public void | setDirectoryName(String directoryName) Sets the directoryName attribute value. | public void | setMailService(MailService mailService) Sets the mailService attribute value. | public void | setParameterService(ParameterService parameterService) | protected List<String> | translateErrorsFromErrorMap(ErrorMap errorMap) Builds actual error message from error key and parameters. |
CollectorReportServiceImpl | public CollectorReportServiceImpl()(Code) | | Constructs a CollectorReportServiceImpl instance
|
appendAmountCountLine | protected void appendAmountCountLine(StringBuilder buf, String countTitle, String count, String amountString)(Code) | | Writes the Amount/Count line of the Collector to a buffer
Parameters: buf - the buffer to write the line to Parameters: countTitle - the title of this part of the report Parameters: count - the Collector count Parameters: amountString - the Collector amount |
appendCollectorHeaderInformation | protected void appendCollectorHeaderInformation(Document document, CollectorReportData collectorReportData) throws DocumentException(Code) | | Appends Collector header information to a given PDF document
Parameters: document - a PDF document to write to Parameters: collectorReportData - data gathered from the run of the Collector throws: DocumentException - thrown if something goes wrong with writing to the PDF document |
appendDeletedOriginEntryAndDetailReport | protected void appendDeletedOriginEntryAndDetailReport(Document document, CollectorReportData collectorReportData) throws DocumentException(Code) | | Writes information about origin entry and details to the report
Parameters: document - a PDF document to write to Parameters: collectorReportData - data gathered from the run of the Collector throws: DocumentException - the exception thrown if the PDF cannot be written to |
appendDemergerReport | protected void appendDemergerReport(Document document, CollectorReportData collectorReportData) throws DocumentException(Code) | | Writes the report of the demerger run against the Collector data
Parameters: document - a PDF document to write to Parameters: collectorReportData - data gathered from the run of the Collector throws: DocumentException - the exception thrown if the PDF cannot be written to |
appendDetailChangedAccountReport | protected void appendDetailChangedAccountReport(Document document, CollectorReportData collectorReportData) throws DocumentException(Code) | | Writes information about what details where changed in the Collector to the report
Parameters: document - a PDF document to write to Parameters: collectorReportData - data gathered from the run of the Collector throws: DocumentException - the exception thrown if the PDF cannot be written to |
appendHeaderInformation | protected void appendHeaderInformation(StringBuilder buf, CollectorBatch batch)(Code) | | Appends header information to the given buffer
Parameters: buf - the buffer where the message should go Parameters: batch - the data from the Collector file |
appendLedgerReport | protected void appendLedgerReport(Document document, CollectorReportData collectorReportData) throws DocumentException(Code) | | Adds the ledger report to this Collector report
Parameters: document - the PDF document that the report is being written to Parameters: collectorReportData - the data from the Collector run throws: DocumentException - thrown if it is impossible to write to the report |
appendPaddingString | protected StringBuilder appendPaddingString(StringBuilder buf, char padCharacter, int valueLength, int desiredLength)(Code) | | Writes some padding to a buffer
Parameters: buf - the buffer to write to Parameters: padCharacter - the character to repeat in the pad Parameters: valueLength - the length of the value being padded Parameters: desiredLength - the length the whole String should be the buffer |
appendScrubberReport | protected void appendScrubberReport(Document document, CollectorReportData collectorReportData) throws DocumentException(Code) | | Writes the results of the Scrubber's run on the Collector data to the report PDF
Parameters: document - the PDF document to write to Parameters: collectorReportData - data gathered from the run of the Collector throws: DocumentException - thrown if the PDF cannot be written to for some reason |
appendTotalsInformation | protected void appendTotalsInformation(StringBuilder buf, CollectorBatch batch, OriginEntryTotals totals)(Code) | | Writes totals information to the report
Parameters: buf - the buffer where the e-mail report is being written Parameters: batch - the data generated by the Collector file upload Parameters: totals - the totals to write |
appendValidationStatus | protected void appendValidationStatus(StringBuilder buf, List<String> errorMessages, boolean notifyIfSuccessful, int numLeftPaddingSpaces)(Code) | | Appends the validation status message to a buffer
Parameters: buf - a StringBuilder to append error messages to Parameters: errorMessages - a List of error messages encountered in the Collector process Parameters: notifyIfSuccessful - true if a special message for the process running successfully should be added, false otherwise Parameters: numLeftPaddingSpaces - the number of spaces to pad on the left |
buildDemergerReportSummary | protected List<Summary> buildDemergerReportSummary(ScrubberReportData scrubberReportData, DemergerReportData demergerReport)(Code) | | Generate the header for the demerger status report.
Parameters: scrubberReportData - the data gathered from the run of the scrubber on the collector data Parameters: demergerReport - the data gathered from the run of the demerger on the collector data list of report summaries to be printed |
buildScrubberReportSummary | protected List<Summary> buildScrubberReportSummary(ScrubberReportData scrubberReport)(Code) | | Generate the header for the scrubber status report.
Parameters: scrubberReport - the data gathered from the run of the scrubber to include in the report list of report summaries to be printed |
createDemergerMessageBody | protected String createDemergerMessageBody(CollectorBatch batch, CollectorReportData collectorReportData)(Code) | | Writes the part of the report about the demerger
Parameters: batch - the data from the Collector file Parameters: collectorReportData - data gathered from the run of the Collector |
createValidationMessageBody | protected String createValidationMessageBody(List<String> errorMessages, CollectorBatch batch, CollectorReportData collectorReportData)(Code) | | Creates a section about validation messages
Parameters: errorMessages - a List of errors that happened during the Collector run Parameters: batch - the data from the Collector file Parameters: collectorReportData - data gathered from the run of the Collector the Validation message body |
getDateTimeService | protected DateTimeService getDateTimeService()(Code) | | Gets the dateTimeService attribute.
Returns the dateTimeService. |
getDirectoryName | public String getDirectoryName()(Code) | | Gets the directoryName attribute.
Returns the directoryName. |
getMailService | public MailService getMailService()(Code) | | Gets the mailService attribute.
Returns the mailService. |
getValidationStatus | protected String getValidationStatus(List<String> errorMessages, boolean notifyIfSuccessful, int numLeftPaddingSpaces)(Code) | | Generates a String that reports on the validation status of the document
Parameters: errorMessages - a List of error messages encountered in the Collector process Parameters: notifyIfSuccessful - true if a special message for the process running successfully should be added, false otherwise Parameters: numLeftPaddingSpaces - the number of spaces to pad on the left a String with the validation status message |
openPdfWriter | protected Document openPdfWriter(String destinationDirectory, String fileprefix, Date runDate, String title)(Code) | | This opens a PDF document to write the report on
Parameters: destinationDirectory - the directory where the report should be written to Parameters: fileprefix - the beginning of the file name Parameters: runDate - the date when the Collector was run (to name the file after) Parameters: title - the title of this report a PDF document to write to |
sendDemergerEmail | protected void sendDemergerEmail(CollectorBatch batch, CollectorReportData collectorReportData)(Code) | | Sends the e-mail about the demerger step
Parameters: batch - the data from the Collector file Parameters: collectorReportData - data gathered from the run of the Collector |
sendValidationEmail | protected void sendValidationEmail(CollectorBatch batch, CollectorReportData collectorReportData)(Code) | | Sends email with results of the batch processing.
Parameters: batch - the Collector data from the file Parameters: collectorReportData - data gathered from the run of the Collector |
setDateTimeService | public void setDateTimeService(DateTimeService dateTimeService)(Code) | | Sets the dateTimeService attribute value.
Parameters: dateTimeService - The dateTimeService to set. |
setDirectoryName | public void setDirectoryName(String directoryName)(Code) | | Sets the directoryName attribute value.
Parameters: directoryName - The directoryName to set. |
setMailService | public void setMailService(MailService mailService)(Code) | | Sets the mailService attribute value.
Parameters: mailService - The mailService to set. |
translateErrorsFromErrorMap | protected List<String> translateErrorsFromErrorMap(ErrorMap errorMap)(Code) | | Builds actual error message from error key and parameters.
Parameters: errorMap - a map of errors List of error message text |
|
|