1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 package fr.paris.lutece.portal.service.mail;
35
36 import fr.paris.lutece.util.mail.FileAttachment;
37 import fr.paris.lutece.util.mail.UrlAttachment;
38
39 import java.io.Serializable;
40
41 import java.util.List;
42
43
44
45
46
47 public class MailItem implements Serializable
48 {
49 public static final int FORMAT_HTML = 0;
50 public static final int FORMAT_TEXT = 1;
51 public static final int FORMAT_MULTIPART_HTML = 2;
52 public static final int FORMAT_MULTIPART_TEXT = 3;
53 public static final int FORMAT_CALENDAR = 4;
54 private static final long serialVersionUID = 1L;
55
56
57 private String _strRecipientsTo;
58 private String _strRecipientsCc;
59 private String _strRecipientsBcc;
60 private String _strSenderName;
61 private String _strSenderEmail;
62 private String _strSubject;
63 private String _strMessage;
64 private String _strCalendarMessage;
65 private boolean _bCreateEvent;
66 private int _nFormat;
67 private List<UrlAttachment> _listUrlsAttachement;
68 private List<FileAttachment> _listFilesAttachement;
69 private boolean _bUniqueRecipientTo;
70
71
72
73
74
75
76 public String getRecipientsTo( )
77 {
78 return _strRecipientsTo;
79 }
80
81
82
83
84
85
86 public void setRecipientsTo( String strRecipient )
87 {
88 _strRecipientsTo = strRecipient;
89 }
90
91
92
93
94
95
96 public String getRecipientsCc( )
97 {
98 return _strRecipientsCc;
99 }
100
101
102
103
104
105
106 public void setRecipientsCc( String strRecipient )
107 {
108 _strRecipientsCc = strRecipient;
109 }
110
111
112
113
114
115
116 public String getRecipientsBcc( )
117 {
118 return _strRecipientsBcc;
119 }
120
121
122
123
124
125
126 public void setRecipientsBcc( String strRecipient )
127 {
128 _strRecipientsBcc = strRecipient;
129 }
130
131
132
133
134
135
136 public String getSenderName( )
137 {
138 return _strSenderName;
139 }
140
141
142
143
144
145
146 public void setSenderName( String strSenderName )
147 {
148 _strSenderName = strSenderName;
149 }
150
151
152
153
154
155
156 public String getSenderEmail( )
157 {
158 return _strSenderEmail;
159 }
160
161
162
163
164
165
166 public void setSenderEmail( String strSenderEmail )
167 {
168 _strSenderEmail = strSenderEmail;
169 }
170
171
172
173
174
175
176 public String getSubject( )
177 {
178 return _strSubject;
179 }
180
181
182
183
184
185
186 public void setSubject( String strSubject )
187 {
188 _strSubject = strSubject;
189 }
190
191
192
193
194
195
196 public String getMessage( )
197 {
198 return _strMessage;
199 }
200
201
202
203
204
205
206 public void setMessage( String strMessage )
207 {
208 _strMessage = strMessage;
209 }
210
211
212
213
214
215
216 public String getCalendarMessage( )
217 {
218 return _strCalendarMessage;
219 }
220
221
222
223
224
225
226 public void setCalendarMessage( String strCalendarMessage )
227 {
228 _strCalendarMessage = strCalendarMessage;
229 }
230
231
232
233
234
235
236
237 public boolean getCreateEvent( )
238 {
239 return _bCreateEvent;
240 }
241
242
243
244
245
246 public void setCreateEvent( boolean bCreateEvent )
247 {
248 this._bCreateEvent = bCreateEvent;
249 }
250
251
252
253
254
255
256 public int getFormat( )
257 {
258 return _nFormat;
259 }
260
261
262
263
264
265
266 public void setFormat( int nFormat )
267 {
268 _nFormat = nFormat;
269 }
270
271
272
273
274
275
276 public List<FileAttachment> getFilesAttachement( )
277 {
278 return _listFilesAttachement;
279 }
280
281
282
283
284
285
286 public void setFilesAttachement( List<FileAttachment> fileAttachements )
287 {
288 _listFilesAttachement = fileAttachements;
289 }
290
291
292
293
294
295 public List<UrlAttachment> getUrlsAttachement( )
296 {
297 return _listUrlsAttachement;
298 }
299
300
301
302
303
304 public void setUrlsAttachement( List<UrlAttachment> urlsAttachement )
305 {
306 _listUrlsAttachement = urlsAttachement;
307 }
308
309
310
311
312
313 public void setUniqueRecipientTo( boolean bUniqueRecipient )
314 {
315 _bUniqueRecipientTo = bUniqueRecipient;
316 }
317
318
319
320
321
322 public boolean isUniqueRecipientTo( )
323 {
324 return _bUniqueRecipientTo;
325 }
326 }