View Javadoc
1   /*
2    * Copyright (c) 2002-2022, 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.appointment.web.dto;
35  
36  import java.time.LocalDate;
37  import java.time.LocalTime;
38  
39  /**
40   * This is the business class for the object Comment
41   */
42  public class CommentDTO
43  {
44  
45      // Variables declarations
46      private int _nId;
47  
48      private int _nIdForm;
49      private LocalDate _dateStartingValidityDate;
50      private LocalDate _dateEndingValidityDate;
51      private LocalTime _timeStartingValidityTime;
52      private LocalTime _timeEndingValidityTime;
53      private String _strComment;
54  
55      private LocalDate _dateCreationDate;
56      private String _strFormTitle;
57      private String _strUserLastName;
58      private String _strUserFirstName;
59  
60      /**
61       * The User who created the comment (if not created by the user himself)
62       */
63      private String _strCreatorUserConnectId;
64  
65      /**
66       * Returns the Id
67       * 
68       * @return The Id
69       */
70      public int getId( )
71      {
72          return _nId;
73      }
74  
75      /**
76       * Sets the Id
77       * 
78       * @param nId
79       *            The Id
80       */
81      public void setId( int nId )
82      {
83          _nId = nId;
84      }
85  
86      /**
87       * Returns the IdForm
88       * 
89       * @return The IdForm
90       */
91      public int getIdForm( )
92      {
93          return _nIdForm;
94      }
95  
96      /**
97       * Sets the IdForm
98       * 
99       * @param nIdForm
100      *            The IdForm
101      */
102     public void setIdForm( int nIdForm )
103     {
104         _nIdForm = nIdForm;
105     }
106 
107     /**
108      * Returns the StartingValidityDate
109      * 
110      * @return The StartingValidityDate
111      */
112     public LocalDate getStartingValidityDate( )
113     {
114         return _dateStartingValidityDate;
115     }
116 
117     /**
118      * Sets the StartingValidityDate
119      * 
120      * @param dateStartingValidityDate
121      *            The StartingValidityDate
122      */
123     public void setStartingValidityDate( LocalDate dateStartingValidityDate )
124     {
125         _dateStartingValidityDate = dateStartingValidityDate;
126     }
127 
128     /**
129      * Returns the EndingValidityDate
130      * 
131      * @return The EndingValidityDate
132      */
133     public LocalDate getEndingValidityDate( )
134     {
135         return _dateEndingValidityDate;
136     }
137 
138     /**
139      * Sets the EndingValidityDate
140      * 
141      * @param dateEndingValidityDate
142      *            The EndingValidityDate
143      */
144     public void setEndingValidityDate( LocalDate dateEndingValidityDate )
145     {
146         _dateEndingValidityDate = dateEndingValidityDate;
147     }
148 
149     /**
150      * Returns the Comment
151      * 
152      * @return The Comment
153      */
154     public String getComment( )
155     {
156         return _strComment;
157     }
158 
159     /**
160      * Sets the Comment
161      * 
162      * @param strComment
163      *            The Comment
164      */
165     public void setComment( String strComment )
166     {
167         _strComment = strComment;
168     }
169 
170     /**
171      * Returns the CreationDate
172      * 
173      * @return The CreationDate
174      */
175     public LocalDate getCreationDate( )
176     {
177         return _dateCreationDate;
178     }
179 
180     /**
181      * Sets the CreationDate
182      * 
183      * @param dateCreationDate
184      *            The CreationDate
185      */
186     public void setCreationDate( LocalDate dateCreationDate )
187     {
188         _dateCreationDate = dateCreationDate;
189     }
190 
191     /**
192      * UserConnectId
193      * 
194      * @return The _strCreatorUserConnectId
195      */
196     public String getCreatorUserName( )
197     {
198         return _strCreatorUserConnectId;
199     }
200 
201     /**
202      * Sets the strCreatorUserConnectId
203      * 
204      * @param creatorUserConnectId
205      *            The creatorUserConnectId
206      */
207     public void setCreatorUserName( String creatorUserConnectId )
208     {
209         _strCreatorUserConnectId = creatorUserConnectId;
210     }
211 
212     /**
213      * Returns the StartingValidityTime
214      * 
215      * @return The StartingValidityTime
216      */
217     public LocalTime getStartingValidityTime( )
218     {
219         return _timeStartingValidityTime;
220     }
221 
222     /**
223      * Sets the StartingValidityTime
224      * 
225      * @param timeStartingValidityTime
226      *            The StartingValidityTime
227      */
228     public void setStartingValidityTime( LocalTime timeStartingValidityTime )
229     {
230         _timeStartingValidityTime = timeStartingValidityTime;
231     }
232 
233     /**
234      * Returns the EndingValidityTime
235      * 
236      * @return The EndingValidityTime
237      */
238     public LocalTime getEndingValidityTime( )
239     {
240         return _timeEndingValidityTime;
241     }
242 
243     /**
244      * Sets the EndingValidityTime
245      * 
246      * @param timeEndingValidityTime
247      *            The EndingValidityTime
248      */
249     public void setEndingValidityTime( LocalTime timeEndingValidityTime )
250     {
251         _timeEndingValidityTime = timeEndingValidityTime;
252     }
253 
254     /**
255      * Gets the DateCalendarAllDaySlotEnd
256      * 
257      * @return The DateCalendarAllDaySlotEnd
258      */
259     public LocalDate getCalendarAllDaySlotEnd( )
260     {
261         return _dateEndingValidityDate.plusDays( 1 );
262     }
263 
264     /**
265      * Returns the FormTitle
266      * 
267      * @return The FormTitle
268      */
269     public String getFormTitle( )
270     {
271         return _strFormTitle;
272     }
273 
274     /**
275      * Sets the FormTitle
276      * 
277      * @param strFormTitle
278      *            The FormTitle
279      */
280     public void setFormTitle( String strFormTitle )
281     {
282         _strFormTitle = strFormTitle;
283     }
284 
285     /**
286      * Returns the UserLastName
287      * 
288      * @return The UserLastName
289      */
290     public String getUserLastName( )
291     {
292         return _strUserLastName;
293     }
294 
295     /**
296      * Sets the UserLastName
297      * 
298      * @param strUserLastName
299      *            The UserLastName
300      */
301     public void setUserLastName( String strUserLastName )
302     {
303         _strUserLastName = strUserLastName;
304     }
305 
306     /**
307      * Returns the UserFirstName
308      * 
309      * @return The UserFirstName
310      */
311     public String getUserFirstName( )
312     {
313         return _strUserFirstName;
314     }
315 
316     /**
317      * Sets the UserFirstName
318      * 
319      * @param strUserFirstName
320      *            The UserFirstName
321      */
322     public void setUserFirstName( String strUserFirstName )
323     {
324         _strUserFirstName = strUserFirstName;
325     }
326 }