...
Panel |
---|
1. IntroductionThe CSF Email Service is a module in CSF to handle various functions related to sending emails to a single or group of recipients. The implementation will include all the methods in the existing EmailServiceImpl in CSF common-legacy. New methods are added |
Panel | ||||||
---|---|---|---|---|---|---|
2. Dependencies2.1 CSF baseWe will utilize CSF base module to
2.2 CSF testWe will utilize CSF test module to facilitate the unit tests created for the email module 2.3 CSF ormWe will utilize CSF orm module to facilitate the IO operations of its dao. |
Panel |
---|
3. Object Model3.1 Class DiagramA new domain class EmailModel will be created to hold all the fields in an email message. 3.2 Class Description.3.2.1 EmailModelThis is the domain class that represents an Email Message object. It contains the following fields:
|
Panel | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4. Service Modules
4.1 Class Diagram4.2 Class Descriptions.4.2.1 EmailCentralService InterfaceThis is the interface that defines the methods available for the other web applications to utilize when they are required
4.2.3 EmailCentralService ImplementationThis is the implementation class for the EmailCentralService. It contains an EmailService object (in csf common-legacy module) to 4.2.3.1 sendBulkEmail
4.2.3.2 sendBulkEmailWithTemplateThis method obtains an EmailModel Object, a velocity template name and a map that contains the values for the variables in the template. 4.2.3.3 sendBulkEmailWithCountsThis method obtains an EmailModel Object. It will call the sendBulkEmail method to send the email message and the summary report to intended 4.2.3.4 generateEmailPreviewWithTemplateThis method obtains an EmailModel Object, a string to specify the type of preview, a velocity template name, and a Map that contains the values 4.2.3.5 generateSummaryReportPreviewThis private method adds the objects/attributes necessary to create a preview of the summary report. The objects to be added are as follows:
4.2.3.6 newEmailThese sets of methods are the same public methods available in the EmailService in the CSF common-legacy module. 4.2.3.7 prepareThese 3 methods are static public methods available in the EmailService in the CSF common-legacy module. 4.2.3.8 getMessageQueueThis method is a public method migrated over from the EmailServiceImpl in common-legacy module. 4.2.3.9 batchSendThis method is a public method migrated over from the EmailServiceImpl in common-legacy module. 4.2.3.10 createReportRecipientContentThis method is a public method migrated over from the EmailServiceImpl in common-legacy module. 4.2.3.11 createMessageThis method is a public method migrated over from the EmailServiceImpl in common-legacy module. 4.2.3.12 sendMessageThese methods are public methods that are migrated over from the EmailServiceImpl in common-legacy module. 4.2.3.13 validateEmailAddressThis method takes an input of email address in String and validate if the email address is valid. If the email address is valid, it will return
|