1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.core.mail; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.HashSet; |
20 | |
import java.util.Set; |
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
public class MailMessage implements Serializable { |
27 | |
private String fromAddress; |
28 | 0 | private Set toAddresses = new HashSet(); |
29 | 0 | private Set ccAddresses = new HashSet(); |
30 | 0 | private Set bccAddresses = new HashSet(); |
31 | 0 | private String subject = ""; |
32 | 0 | private String message = ""; |
33 | |
|
34 | |
public MailMessage() { |
35 | 0 | super(); |
36 | 0 | } |
37 | |
|
38 | |
public String getFromAddress() { |
39 | 0 | return fromAddress; |
40 | |
} |
41 | |
|
42 | |
public void setFromAddress(String fromAddress) { |
43 | 0 | this.fromAddress = fromAddress; |
44 | 0 | } |
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
public Set getBccAddresses() { |
50 | 0 | return bccAddresses; |
51 | |
} |
52 | |
|
53 | |
public void addBccAddress(String addr) { |
54 | 0 | bccAddresses.add(addr); |
55 | 0 | } |
56 | |
|
57 | |
public void removeBccAddress(String addr) { |
58 | 0 | bccAddresses.remove(addr); |
59 | 0 | } |
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
public void setBccAddresses(Set bccAddresses) { |
65 | 0 | this.bccAddresses = bccAddresses; |
66 | 0 | } |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
public Set getCcAddresses() { |
72 | 0 | return ccAddresses; |
73 | |
} |
74 | |
|
75 | |
public void addCcAddress(String addr) { |
76 | 0 | ccAddresses.add(addr); |
77 | 0 | } |
78 | |
|
79 | |
public void removeCcAddress(String addr) { |
80 | 0 | ccAddresses.remove(addr); |
81 | 0 | } |
82 | |
|
83 | |
|
84 | |
|
85 | |
|
86 | |
public void setCcAddresses(Set ccAddresses) { |
87 | 0 | this.ccAddresses = ccAddresses; |
88 | 0 | } |
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
public String getMessage() { |
94 | 0 | return message; |
95 | |
} |
96 | |
|
97 | |
|
98 | |
|
99 | |
|
100 | |
public void setMessage(String message) { |
101 | 0 | this.message = message; |
102 | 0 | } |
103 | |
|
104 | |
|
105 | |
|
106 | |
|
107 | |
public String getSubject() { |
108 | 0 | return subject; |
109 | |
} |
110 | |
|
111 | |
|
112 | |
|
113 | |
|
114 | |
public void setSubject(String subject) { |
115 | 0 | this.subject = subject; |
116 | 0 | } |
117 | |
|
118 | |
|
119 | |
|
120 | |
|
121 | |
public Set getToAddresses() { |
122 | 0 | return toAddresses; |
123 | |
} |
124 | |
|
125 | |
public void addToAddress(String addr) { |
126 | 0 | toAddresses.add(addr); |
127 | 0 | } |
128 | |
|
129 | |
public void removeToAddress(String addr) { |
130 | 0 | toAddresses.remove(addr); |
131 | 0 | } |
132 | |
|
133 | |
|
134 | |
|
135 | |
|
136 | |
public void setToAddresses(Set toAddresses) { |
137 | 0 | this.toAddresses = toAddresses; |
138 | 0 | } |
139 | |
} |