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.openagenda.api.mapping.v2;
35  
36  import java.util.Collections;
37  import java.util.List;
38  
39  import com.fasterxml.jackson.annotation.JsonProperty;
40  
41  /**
42   * 
43   * This is the business class for the EventData
44   *
45   */
46  public class EventData
47  {
48  
49      @JsonProperty( "uid" )
50      private int _nUid;
51  
52      @JsonProperty( "title" )
53      private Multilingue _title;
54  
55  
56      @JsonProperty( "description" )
57      private Multilingue _description;
58  
59      @JsonProperty( "longDescription" )
60      private Multilingue _longDescription;
61  
62      @JsonProperty( "conditions" )
63      private Multilingue _conditions;
64  
65      @JsonProperty( "keywords" )
66      private Keywords _keywords;
67      
68  	@JsonProperty( "dateRange" )
69  	private Multilingue _dateRange;
70  
71      @JsonProperty( "image" )
72      private Image _image;
73  
74      @JsonProperty( "imageCredits" )
75      private String _strImageCredits;
76  
77      @JsonProperty( "registration" )
78      private List<Registration> _listRegistration = Collections.emptyList( );
79  
80      @JsonProperty( "accessibility" )
81      private Accessibility _accessibility;
82  
83      @JsonProperty( "timings" )
84      private List<Timings> _listTimings = Collections.emptyList( );
85  
86      @JsonProperty( "age" )
87      private Age _age;
88  
89      @JsonProperty( "locationUid" )
90      private int _nLocationUid;
91  
92      @JsonProperty( "attendanceMode" )
93      private int _nAttendanceMode;
94  
95      @JsonProperty( "onlineAccessLink" )
96      private String _strOnlineAccessLink;
97  
98      @JsonProperty( "links" )
99      private List<Links> _listLinks = Collections.emptyList( );
100 
101     @JsonProperty( "timezone" )
102     private String _strTimezone;
103 
104     @JsonProperty( "state" )
105     private int _nState;
106 
107     @JsonProperty( "createdAt" )
108     private String _strCreatedAt;
109 
110     @JsonProperty( "updatedAt" )
111     private String _strUpdatedAt;
112 
113     @JsonProperty( "location" )
114     private LocationData _location;
115 
116     @JsonProperty( "slug" )
117     private String _strSlug;
118 
119     @JsonProperty( "originAgenda" )
120     private AgendaData _originAgenda;
121 
122     /**
123      * @return the uid
124      */
125     public int getUid( )
126     {
127         return _nUid;
128     }
129 
130     /**
131      * @param nUid
132      *            the uid to set
133      */
134     public void setUid( int nUid )
135     {
136         this._nUid = nUid;
137     }
138 
139     /**
140      * @return the title
141      */
142     public Multilingue getTitle( )
143     {
144         return _title;
145     }
146 
147     /**
148      * @param title
149      *            the title to set
150      */
151     public void setTitle( Multilingue title )
152     {
153         this._title = title;
154     }
155 
156     /**
157      * @return the description
158      */
159     public Multilingue getDescription( )
160     {
161         return _description;
162     }
163 
164     /**
165      * @param description
166      *            the description to set
167      */
168     public void setDescription( Multilingue description )
169     {
170         this._description = description;
171     }
172 
173     /**
174      * @return the longDescription
175      */
176     public Multilingue getLongDescription( )
177     {
178         return _longDescription;
179     }
180 
181     /**
182      * @param longDescription
183      *            the longDescription to set
184      */
185     public void setLongDescription( Multilingue longDescription )
186     {
187         this._longDescription = longDescription;
188     }
189 
190     /**
191      * @return the conditions
192      */
193     public Multilingue getConditions( )
194     {
195         return _conditions;
196     }
197 
198     /**
199      * @param conditions
200      *            the conditions to set
201      */
202     public void setConditions( Multilingue conditions )
203     {
204         this._conditions = conditions;
205     }
206 
207     /**
208      * @return the keywords
209      */
210     public Keywords getKeywords( )
211     {
212         return _keywords;
213     }
214 
215     /**
216      * @param keywords
217      *            the keywords to set
218      */
219     public void setKeywords( Keywords keywords )
220     {
221         this._keywords = keywords;
222     }
223     
224 	/**
225 	 * @return the _dateRange
226 	 */
227 	public Multilingue getDateRange( )
228 	{
229 		return _dateRange;
230 	}
231 
232 	/**
233 	 * @param _dateRange the _dateRange to set
234 	 */
235 	public void setDateRange( Multilingue dateRange )
236 	{
237 		this._dateRange = dateRange;
238 	}
239 
240     /**
241      * @return the image
242      */
243     public Image getImage( )
244     {
245         return _image;
246     }
247 
248     /**
249      * @param image
250      *            the image to set
251      */
252     public void setImage( Image image )
253     {
254         this._image = image;
255     }
256 
257     /**
258      * @return the imageCredits
259      */
260     public String getImageCredits( )
261     {
262         return _strImageCredits;
263     }
264 
265     /**
266      * @param strImageCredits
267      *            the imageCredits to set
268      */
269     public void setImageCredits( String strImageCredits )
270     {
271         this._strImageCredits = strImageCredits;
272     }
273 
274     /**
275      * @return the registration
276      */
277     public List<Registration> getRegistration( )
278     {
279         return Collections.unmodifiableList( _listRegistration );
280     }
281 
282     /**
283      * @param listRegistration
284      *            the registration to set
285      */
286     public void setRegistration( List<Registration> listRegistration )
287     {
288         this._listRegistration = Collections.unmodifiableList( listRegistration );
289     }
290 
291     /**
292      * @return the accessibility
293      */
294     public Accessibility getAccessibility( )
295     {
296         return _accessibility;
297     }
298 
299     /**
300      * @param accessibility
301      *            the accessibility to set
302      */
303     public void setAccessibility( Accessibility accessibility )
304     {
305         this._accessibility = accessibility;
306     }
307 
308     /**
309      * @return the timings
310      */
311     public List<Timings> getTimings( )
312     {
313         return Collections.unmodifiableList( _listTimings );
314     }
315 
316     /**
317      * @param listTimings
318      *            the timings to set
319      */
320     public void setTimings( List<Timings> listTimings )
321     {
322         this._listTimings = Collections.unmodifiableList( listTimings );
323     }
324 
325     /**
326      * @return the age
327      */
328     public Age getAge( )
329     {
330         return _age;
331     }
332 
333     /**
334      * @param age
335      *            the age to set
336      */
337     public void setAge( Age age )
338     {
339         this._age = age;
340     }
341 
342     /**
343      * @return the locationUid
344      */
345     public int getLocationUid( )
346     {
347         return _nLocationUid;
348     }
349 
350     /**
351      * @param nLocationUid
352      *            the locationUid to set
353      */
354     public void setLocationUid( int nLocationUid )
355     {
356         this._nLocationUid = nLocationUid;
357     }
358 
359     /**
360      * @return the attendanceMode
361      */
362     public int getAttendanceMode( )
363     {
364         return _nAttendanceMode;
365     }
366 
367     /**
368      * @param nAttendanceMode
369      *            the attendanceMode to set
370      */
371     public void setAttendanceMode( int nAttendanceMode )
372     {
373         this._nAttendanceMode = nAttendanceMode;
374     }
375 
376     /**
377      * @return the onlineAccessLink
378      */
379     public String getOnlineAccessLink( )
380     {
381         return _strOnlineAccessLink;
382     }
383 
384     /**
385      * @param strOnlineAccessLink
386      *            the onlineAccessLink to set
387      */
388     public void setOnlineAccessLink( String strOnlineAccessLink )
389     {
390         this._strOnlineAccessLink = strOnlineAccessLink;
391     }
392 
393     /**
394      * @return the links
395      */
396     public List<Links> getLinks( )
397     {
398         return Collections.unmodifiableList( _listLinks );
399     }
400 
401     /**
402      * @param listLinks
403      *            the links to set
404      */
405     public void setLinks( List<Links> listLinks )
406     {
407         this._listLinks = Collections.unmodifiableList( listLinks );
408     }
409 
410     /**
411      * @return the timezone
412      */
413     public String getTimezone( )
414     {
415         return _strTimezone;
416     }
417 
418     /**
419      * @param strTimezone
420      *            the timezone to set
421      */
422     public void setTimezone( String strTimezone )
423     {
424         this._strTimezone = strTimezone;
425     }
426 
427     /**
428      * @return the state
429      */
430     public int getState( )
431     {
432         return _nState;
433     }
434 
435     /**
436      * @param nState
437      *            the state to set
438      */
439     public void setState( int nState )
440     {
441         this._nState = nState;
442     }
443 
444     /**
445      * @return the createdAt
446      */
447     public String getCreatedAt( )
448     {
449         return _strCreatedAt;
450     }
451 
452     /**
453      * @param strCreatedAt
454      *            the createdAt to set
455      */
456     public void setCreatedAt( String strCreatedAt )
457     {
458         this._strCreatedAt = strCreatedAt;
459     }
460 
461     /**
462      * @return the updatedAt
463      */
464     public String getUpdatedAt( )
465     {
466         return _strUpdatedAt;
467     }
468 
469     /**
470      * @param strUpdatedAt
471      *            the updatedAt to set
472      */
473     public void setUpdatedAt( String strUpdatedAt )
474     {
475         this._strUpdatedAt = strUpdatedAt;
476     }
477 
478     /**
479      * @return the location
480      */
481     public LocationData getLocation( )
482     {
483         return _location;
484     }
485 
486     /**
487      * @param location
488      *            the location to set
489      */
490     public void setLocation( LocationData location )
491     {
492         this._location = location;
493     }
494 
495     /**
496      * @return the slug
497      */
498     public String getSlug( )
499     {
500         return _strSlug;
501     }
502 
503     /**
504      * @param strSlug
505      *            the slug to set
506      */
507     public void setSlug( String strSlug )
508     {
509         this._strSlug = strSlug;
510     }
511 
512     /**
513      * @return the originAgenda
514      */
515     public AgendaData getOriginAgenda( )
516     {
517         return _originAgenda;
518     }
519 
520     /**
521      * @param originAgenda
522      *            the originAgenda to set
523      */
524     public void setOriginAgenda( AgendaData originAgenda )
525     {
526         this._originAgenda = originAgenda;
527     }
528 
529 }