3. Object Model3.1 Class DiagramThe following domain classes are created to represent (1) EmailModel is A new domain class EmailModel will be created to hold all the fields in an email message. This . It is used by other web application to pass data of the email to be sent to the EmailService. The following diagram represents the domain class EmailModel. 
(2) EmailEvent is a persistent object created to represent the persist object for each email that is queued or sent. Besides from address, to address, the cc and bcc list, it will also hold the full email text (i.e. content after translating the velocity template), a status (queued or sent), create date and a reference to the EmailAttachment persistent object if the email sent has attachment(s). (3) EmailAttachment is a persistent object created to save the attachment associated with email events. The following diagram represents the domain class EmailEvent and EmailAttachment and their relationship: 3.2 Class Description.3.2.1 EmailModelThis is the domain class that represents an Email Message object. It contains the following fields: - emailFrom – the email address of the sender
- emailSubject – the subject of the email
- emailTos – the list of email addresses of those who will be sent a copy of the email
- emailCC – the list of email addresses of those will get a cc copy of the email.
- emailBcc – the list of email addresses of those will get a bcc copy of the email.
- emailReportRecipient – the list of email addresses of those who will get a copy of the summary report.
- emailText – the content of the email.
|