View Javadoc
1   /*
2    * Copyright (c) 2002-2019, Mairie de 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.atelieraba.business;
35  
36  import java.io.Serializable;
37  
38  import javax.validation.constraints.Size;
39  
40  import org.hibernate.validator.constraints.NotEmpty;
41  
42  /**
43   * This is the business class for the object Cours
44   */
45  public class Cours implements Serializable
46  {
47      private static final long serialVersionUID = 1L;
48  
49      // Variables declarations
50      private int _nId;
51  
52      @NotEmpty( message = "#i18n{atelieraba.validation.cours.Discipline.notEmpty}" )
53      @Size( max = 255 , message = "#i18n{atelieraba.validation.cours.Discipline.size}" )
54      private String _strDiscipline;
55  
56      @NotEmpty( message = "#i18n{atelieraba.validation.cours.TitreAtelier.notEmpty}" )
57      @Size( max = 255 , message = "#i18n{atelieraba.validation.cours.TitreAtelier.size}" )
58      private String _strTitreAtelier;
59  
60      @NotEmpty( message = "#i18n{atelieraba.validation.cours.Creneau.notEmpty}" )
61      @Size( max = 255 , message = "#i18n{atelieraba.validation.cours.Creneau.size}" )
62      private String _strCreneau;
63  
64      private int _nPlacesDisponibles;
65  
66      private int _nPlacesListeAttente;
67  
68      private String _strDescriptionAtelier;
69  
70      private String _strSite;
71  
72      private CoursCounter _coursCounter;
73  
74      /**
75       * Returns the Id
76       * @return The Id
77       */
78      public int getId( )
79      {
80          return _nId;
81      }
82  
83      /**
84       * Sets the Id
85       * @param nId The Id
86       */
87      public void setId( int nId )
88      {
89          _nId = nId;
90      }
91  
92      /**
93       * Returns the Discipline
94       * @return The Discipline
95       */
96      public String getDiscipline( )
97      {
98          return _strDiscipline;
99      }
100 
101     /**
102      * Sets the Discipline
103      * @param strDiscipline The Discipline
104      */
105     public void setDiscipline( String strDiscipline )
106     {
107         _strDiscipline = strDiscipline;
108     }
109 
110     /**
111      * Returns the TitreAtelier
112      * @return The TitreAtelier
113      */
114     public String getTitreAtelier( )
115     {
116         return _strTitreAtelier;
117     }
118 
119     /**
120      * Sets the TitreAtelier
121      * @param strTitreAtelier The TitreAtelier
122      */
123     public void setTitreAtelier( String strTitreAtelier )
124     {
125         _strTitreAtelier = strTitreAtelier;
126     }
127 
128     /**
129      * Returns the Creneau
130      * @return The Creneau
131      */
132     public String getCreneau( )
133     {
134         return _strCreneau;
135     }
136 
137     /**
138      * Sets the Creneau
139      * @param strCreneau The Creneau
140      */
141     public void setCreneau( String strCreneau )
142     {
143         _strCreneau = strCreneau;
144     }
145 
146     /**
147      * Returns the PlacesDisponibles
148      * @return The PlacesDisponibles
149      */
150     public int getPlacesDisponibles( )
151     {
152         return _nPlacesDisponibles;
153     }
154 
155     /**
156      * Sets the PlacesDisponibles
157      * @param nPlacesDisponibles The PlacesDisponibles
158      */
159     public void setPlacesDisponibles( int nPlacesDisponibles )
160     {
161         _nPlacesDisponibles = nPlacesDisponibles;
162     }
163 
164     /**
165      * Returns the PlacesListeAttente
166      * @return The PlacesListeAttente
167      */
168     public int getPlacesListeAttente( )
169     {
170         return _nPlacesListeAttente;
171     }
172 
173     /**
174      * Sets the PlacesListeAttente
175      * @param nPlacesListeAttente The PlacesListeAttente
176      */
177     public void setPlacesListeAttente( int nPlacesListeAttente )
178     {
179         _nPlacesListeAttente = nPlacesListeAttente;
180     }
181 
182     /**
183      * Returns the DescriptionAtelier
184      * @return The DescriptionAtelier
185      */
186     public String getDescriptionAtelier( )
187     {
188         return _strDescriptionAtelier;
189     }
190 
191     /**
192      * Sets the DescriptionAtelier
193      * @param strDescriptionAtelier The DescriptionAtelier
194      */
195     public void setDescriptionAtelier( String strDescriptionAtelier )
196     {
197         _strDescriptionAtelier = strDescriptionAtelier;
198     }
199 
200     /**
201      * Returns the Site
202      * @return The Site
203      */
204     public String getSite( )
205     {
206         return _strSite;
207     }
208 
209     /**
210      * Sets the Site
211      * @param strSite The Site
212      */
213     public void setSite( String strSite )
214     {
215         _strSite = strSite;
216     }
217 
218     /**
219      * Returns the CoursCounter
220      * @return The CoursCounter
221      */
222     public CoursCounter getCoursCounter() {
223         return _coursCounter;
224     }
225 
226     /**
227      * Sets the CoursCounter
228      * @param coursCounter The CoursCounter
229      */
230     public void setCoursCounter(CoursCounter coursCounter) {
231         _coursCounter = coursCounter;
232     }
233 }