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 public class MailItem implements Serializable
47 {
48 public static final int FORMAT_HTML = 0;
49 public static final int FORMAT_TEXT = 1;
50 public static final int FORMAT_MULTIPART_HTML = 2;
51 public static final int FORMAT_MULTIPART_TEXT = 3;
52 public static final int FORMAT_CALENDAR = 4;
53 private static final long serialVersionUID = 1L;
54
55
56 private String _strRecipientsTo;
57 private String _strRecipientsCc;
58 private String _strRecipientsBcc;
59 private String _strSenderName;
60 private String _strSenderEmail;
61 private String _strSubject;
62 private String _strMessage;
63 private String _strCalendarMessage;
64 private boolean _bCreateEvent;
65 private int _nFormat;
66 private List<UrlAttachment> _listUrlsAttachement;
67 private List<FileAttachment> _listFilesAttachement;
68 private boolean _bUniqueRecipientTo;
69
70
71
72
73
74
75 public String getRecipientsTo( )
76 {
77 return _strRecipientsTo;
78 }
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
107 public void setRecipientsCc( String strRecipient )
108 {
109 _strRecipientsCc = strRecipient;
110 }
111
112
113
114
115
116
117 public String getRecipientsBcc( )
118 {
119 return _strRecipientsBcc;
120 }
121
122
123
124
125
126
127
128 public void setRecipientsBcc( String strRecipient )
129 {
130 _strRecipientsBcc = strRecipient;
131 }
132
133
134
135
136
137
138 public String getSenderName( )
139 {
140 return _strSenderName;
141 }
142
143
144
145
146
147
148
149 public void setSenderName( String strSenderName )
150 {
151 _strSenderName = strSenderName;
152 }
153
154
155
156
157
158
159 public String getSenderEmail( )
160 {
161 return _strSenderEmail;
162 }
163
164
165
166
167
168
169
170 public void setSenderEmail( String strSenderEmail )
171 {
172 _strSenderEmail = strSenderEmail;
173 }
174
175
176
177
178
179
180 public String getSubject( )
181 {
182 return _strSubject;
183 }
184
185
186
187
188
189
190
191 public void setSubject( String strSubject )
192 {
193 _strSubject = strSubject;
194 }
195
196
197
198
199
200
201 public String getMessage( )
202 {
203 return _strMessage;
204 }
205
206
207
208
209
210
211
212 public void setMessage( String strMessage )
213 {
214 _strMessage = strMessage;
215 }
216
217
218
219
220
221
222 public String getCalendarMessage( )
223 {
224 return _strCalendarMessage;
225 }
226
227
228
229
230
231
232
233 public void setCalendarMessage( String strCalendarMessage )
234 {
235 _strCalendarMessage = strCalendarMessage;
236 }
237
238
239
240
241
242
243 public boolean getCreateEvent( )
244 {
245 return _bCreateEvent;
246 }
247
248
249
250
251
252
253
254 public void setCreateEvent( boolean bCreateEvent )
255 {
256 this._bCreateEvent = bCreateEvent;
257 }
258
259
260
261
262
263
264 public int getFormat( )
265 {
266 return _nFormat;
267 }
268
269
270
271
272
273
274
275 public void setFormat( int nFormat )
276 {
277 _nFormat = nFormat;
278 }
279
280
281
282
283
284
285 public List<FileAttachment> getFilesAttachement( )
286 {
287 return _listFilesAttachement;
288 }
289
290
291
292
293
294
295
296 public void setFilesAttachement( List<FileAttachment> fileAttachements )
297 {
298 _listFilesAttachement = fileAttachements;
299 }
300
301
302
303
304
305
306 public List<UrlAttachment> getUrlsAttachement( )
307 {
308 return _listUrlsAttachement;
309 }
310
311
312
313
314
315
316
317 public void setUrlsAttachement( List<UrlAttachment> urlsAttachement )
318 {
319 _listUrlsAttachement = urlsAttachement;
320 }
321
322
323
324
325
326
327
328 public void setUniqueRecipientTo( boolean bUniqueRecipient )
329 {
330 _bUniqueRecipientTo = bUniqueRecipient;
331 }
332
333
334
335
336
337 public boolean isUniqueRecipientTo( )
338 {
339 return _bUniqueRecipientTo;
340 }
341 }