01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: // Created on Jan 18, 2007
18: package edu.iu.uis.eden.mail;
19:
20: /**
21: * Class representing customizable content of an email message
22: * TODO: supercede this with Spring framework and/or JavaMail mail classes
23: * @author Aaron Hamid (arh14 at cornell dot edu)
24: */
25: public class EmailContent {
26: private String subject;
27: private String body;
28: private boolean html;
29:
30: public EmailContent() {
31: }
32:
33: public EmailContent(String subject, String body) {
34: this .subject = subject;
35: this .body = body;
36: }
37:
38: public EmailContent(String subject, String body, boolean html) {
39: this .subject = subject;
40: this .body = body;
41: this .html = html;
42: }
43:
44: public void setSubject(String subject) {
45: this .subject = subject;
46: }
47:
48: public String getSubject() {
49: return subject;
50: }
51:
52: public void setBody(String body, boolean html) {
53: this .body = body;
54: this .html = html;
55: }
56:
57: public String getBody() {
58: return body;
59: }
60:
61: public boolean isHtml() {
62: return html;
63: }
64:
65: public String toString() {
66: return "[EmailContent: subject=" + subject + ", body=" + body
67: + ", html=" + html + "]";
68: }
69: }
|