1 /*
2 * Copyright (c) 2002-2021, City of Paris
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright notice
10 * and the following disclaimer.
11 *
12 * 2. Redistributions in binary form must reproduce the above copyright notice
13 * and the following disclaimer in the documentation and/or other materials
14 * provided with the distribution.
15 *
16 * 3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17 * contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
31 *
32 * License 1.0
33 */
34 package fr.paris.lutece.plugins.genericalert.business;
35
36 /**
37 *
38 * Class to describe the reminder appointment
39 *
40 */
41 public class ReminderAppointment
42
43 {
44 private int _nIdTask;
45 private int _nIdForm;
46 private int _nRank;
47 private int _nTimeToAlert;
48 private boolean _bEmailNotify;
49 private boolean _bSmsNotify;
50 private String _strEmailAlertMessage;
51 private String _strSmsAlertMessage;
52 private String _strAlertSubject;
53 private String _strEmailCc;
54 private String _strNumberPhone;
55 private int _nIdStateAfter;
56
57 /**
58 * GET id form
59 *
60 * @return id form
61 */
62 public int getIdForm( )
63 {
64 return _nIdForm;
65 }
66
67 /**
68 * SET th id form
69 *
70 * @param nIdForm
71 * the id form
72 */
73 public void setIdForm( int nIdForm )
74 {
75 this._nIdForm = nIdForm;
76 }
77
78 /**
79 * GET the rank
80 *
81 * @return the rank
82 */
83 public int getRank( )
84 {
85 return _nRank;
86 }
87
88 /**
89 * SET the rank
90 *
91 * @param nRank
92 * the rank
93 */
94 public void setRank( int nRank )
95 {
96 this._nRank = nRank;
97 }
98
99 /**
100 * GET the TimeToAlert
101 *
102 * @return TimeToAlert time to alert
103 */
104 public int getTimeToAlert( )
105 {
106 return _nTimeToAlert;
107 }
108
109 /**
110 * SET the time to alert
111 *
112 * @param nTimeToAlert
113 * the TimeToAlert
114 */
115 public void setTimeToAlert( int nTimeToAlert )
116 {
117 this._nTimeToAlert = nTimeToAlert;
118 }
119
120 /**
121 * GET the email notify
122 *
123 * @return if email notify
124 */
125 public boolean isEmailNotify( )
126 {
127 return _bEmailNotify;
128 }
129
130 /**
131 * SET the email notify
132 *
133 * @param bEmailNotify
134 * email notify
135 */
136 public void setEmailNotify( boolean bEmailNotify )
137 {
138 this._bEmailNotify = bEmailNotify;
139 }
140
141 /**
142 * GET sms notify
143 *
144 * @return sms notify
145 */
146 public boolean isSmsNotify( )
147 {
148 return _bSmsNotify;
149 }
150
151 /**
152 * SET SmsNotify
153 *
154 * @param bSmsNotify
155 * the sms notify
156 */
157 public void setSmsNotify( boolean bSmsNotify )
158 {
159 this._bSmsNotify = bSmsNotify;
160 }
161
162 /**
163 * Get alert email message
164 *
165 * @return email alert message
166 */
167 public String getEmailAlertMessage( )
168 {
169 return _strEmailAlertMessage;
170 }
171
172 /**
173 * Sets the email alert message
174 *
175 * @param strAlertEmailMessage
176 * email alert message
177 */
178 public void setEmailAlertMessage( String strAlertEmailMessage )
179 {
180 this._strEmailAlertMessage = strAlertEmailMessage;
181 }
182
183 /**
184 * Get alert sms message
185 *
186 * @return sms message
187 */
188 public String getSmsAlertMessage( )
189 {
190 return _strSmsAlertMessage;
191 }
192
193 /**
194 * Sets the sms alert message
195 *
196 * @param strSmsAlertMessage
197 * alert message
198 */
199 public void setSmsAlertMessage( String strSmsAlertMessage )
200 {
201 this._strSmsAlertMessage = strSmsAlertMessage;
202 }
203
204 /**
205 * Get the subject
206 *
207 * @return the subject
208 */
209 public String getAlertSubject( )
210 {
211 return _strAlertSubject;
212 }
213
214 /**
215 * Set the subject
216 *
217 * @param strAlertSubject
218 * the subject
219 */
220 public void setAlertSubject( String strAlertSubject )
221 {
222 this._strAlertSubject = strAlertSubject;
223 }
224
225 /**
226 * Get emailCc
227 *
228 * @return emailCc
229 */
230 public String getEmailCc( )
231 {
232 return _strEmailCc;
233 }
234
235 /**
236 * Set emailCc
237 *
238 * @param strEmailCc
239 * the email cc
240 */
241
242 public void setEmailCc( String strEmailCc )
243 {
244 this._strEmailCc = strEmailCc;
245 }
246
247 /**
248 * Get the number phone
249 *
250 * @return NumberPhone
251 */
252 public String getNumberPhone( )
253 {
254 return _strNumberPhone;
255 }
256
257 /**
258 * Set the numberPhone
259 *
260 * @param strNumberPhone
261 * the number phone
262 */
263 public void setNumberPhone( String strNumberPhone )
264 {
265 this._strNumberPhone = strNumberPhone;
266 }
267
268 /**
269 * Get the state after
270 *
271 * @return stateAfter the state after
272 */
273 public int getIdStateAfter( )
274 {
275 return _nIdStateAfter;
276 }
277
278 /**
279 * Set the state after
280 *
281 * @param nIdStateAfter
282 * id state after
283 */
284 public void setIdStateAfter( int nIdStateAfter )
285 {
286 this._nIdStateAfter = nIdStateAfter;
287 }
288
289 /**
290 * Get id task
291 *
292 * @return id task
293 */
294 public int getIdTask( )
295 {
296 return _nIdTask;
297 }
298
299 /**
300 * Set the id task
301 *
302 * @param nIdTask
303 * the id task
304 */
305 public void setIdTask( int nIdTask )
306 {
307 this._nIdTask = nIdTask;
308 }
309
310 }