Java Doc for CollectorReportServiceImpl.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » module » gl » service » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » Kuali Financial System » org.kuali.module.gl.service.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.kuali.module.gl.service.impl.CollectorReportServiceImpl

CollectorReportServiceImpl
public class CollectorReportServiceImpl implements CollectorReportService(Code)
The base implementation of the CollectorReportService



Constructor Summary
public  CollectorReportServiceImpl()
    

Method Summary
protected  voidappendAmountCountLine(StringBuilder buf, String countTitle, String count, String amountString)
    
protected  voidappendCollectorHeaderInformation(Document document, CollectorReportData collectorReportData)
    
protected  voidappendDeletedOriginEntryAndDetailReport(Document document, CollectorReportData collectorReportData)
    
protected  voidappendDemergerReport(Document document, CollectorReportData collectorReportData)
    
protected  voidappendDetailChangedAccountReport(Document document, CollectorReportData collectorReportData)
    
protected  voidappendHeaderInformation(StringBuilder buf, CollectorBatch batch)
    
protected  voidappendLedgerReport(Document document, CollectorReportData collectorReportData)
    
protected  StringBuilderappendPaddingString(StringBuilder buf, char padCharacter, int valueLength, int desiredLength)
    
protected  voidappendScrubberReport(Document document, CollectorReportData collectorReportData)
    
protected  voidappendTotalsInformation(StringBuilder buf, CollectorBatch batch, OriginEntryTotals totals)
    
protected  voidappendValidationStatus(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  StringcreateDemergerMessageBody(CollectorBatch batch, CollectorReportData collectorReportData)
    
protected  StringcreateValidationMessageBody(List<String> errorMessages, CollectorBatch batch, CollectorReportData collectorReportData)
    
public  voidgenerateCollectorRunReports(CollectorReportData collectorReportData)
    
protected  DateTimeServicegetDateTimeService()
     Gets the dateTimeService attribute.
public  StringgetDirectoryName()
     Gets the directoryName attribute.
public  MailServicegetMailService()
     Gets the mailService attribute.
protected  StringgetValidationStatus(List<String> errorMessages, boolean notifyIfSuccessful, int numLeftPaddingSpaces)
    
protected  DocumentopenPdfWriter(String destinationDirectory, String fileprefix, Date runDate, String title)
    
protected  voidsendDemergerEmail(CollectorBatch batch, CollectorReportData collectorReportData)
    
public  voidsendEmails(CollectorReportData collectorReportData)
    
protected  voidsendValidationEmail(CollectorBatch batch, CollectorReportData collectorReportData)
     Sends email with results of the batch processing.
public  voidsetConfigurationService(KualiConfigurationService configurationService)
    
public  voidsetDateTimeService(DateTimeService dateTimeService)
     Sets the dateTimeService attribute value.
public  voidsetDirectoryName(String directoryName)
     Sets the directoryName attribute value.
public  voidsetMailService(MailService mailService)
     Sets the mailService attribute value.
public  voidsetParameterService(ParameterService parameterService)
    
protected  List<String>translateErrorsFromErrorMap(ErrorMap errorMap)
     Builds actual error message from error key and parameters.


Constructor Detail
CollectorReportServiceImpl
public CollectorReportServiceImpl()(Code)
Constructs a CollectorReportServiceImpl instance




Method Detail
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



generateCollectorRunReports
public void generateCollectorRunReports(CollectorReportData collectorReportData)(Code)
Generates the reports about a given Collector run
Parameters:
  collectorReportData - data gathered from the run of the Collector
See Also:   org.kuali.module.gl.service.CollectorReportService.generateCollectorRunReports(org.kuali.module.gl.util.CollectorReportData)



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



sendEmails
public void sendEmails(CollectorReportData collectorReportData)(Code)
Sends out e-mails about the validation and demerger of the Collector run
Parameters:
  collectorReportData - data gathered from the run of the Collector
See Also:   org.kuali.module.gl.service.CollectorReportService.sendEmails(org.kuali.module.gl.util.CollectorReportData)



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



setConfigurationService
public void setConfigurationService(KualiConfigurationService configurationService)(Code)



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.



setParameterService
public void setParameterService(ParameterService parameterService)(Code)



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



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.