View Javadoc
1   /*
2    * Copyright (c) 2002-2023, 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.broadcastproxy.business;
35  
36  import javax.validation.constraints.Size;
37  import javax.validation.constraints.NotEmpty;
38  import java.io.Serializable;
39  /**
40   * This is the business class for the object SubscriptionLink
41   */ 
42  public class SubscriptionLink implements Serializable
43  {
44      private static final long serialVersionUID = 1L;
45  
46      // Variables declarations 
47      private int _nId;
48      
49      @NotEmpty( message = "#i18n{broadcastproxy.validation.subscriptionlink.Label.notEmpty}" )
50      @Size( max = 255 , message = "#i18n{broadcastproxy.validation.subscriptionlink.Label.size}" ) 
51      private String _strLabel;
52      
53      private String _strPictogramme;
54      
55      @NotEmpty( message = "#i18n{broadcastproxy.validation.subscriptionlink.Description.notEmpty}" )
56      private String _strDescription;
57      
58      private String _strFrequency;
59      
60      private String _strGroup;
61      
62      private int _nGroupId;
63      
64      private int _nSubscriptionId;
65      
66      private int _nInterestId;
67      
68      private boolean _nEnabled;
69      
70      /**
71       * Returns the Id
72       * @return The Id
73       */
74      public int getId( )
75      {
76          return _nId;
77      }
78  
79      /**
80       * Sets the Id
81       * @param nId The Id
82       */ 
83      public void setId( int nId )
84      {
85          _nId = nId;
86      }
87  
88      /**
89       * Returns the Label
90       * @return The Label
91       */
92      public String getLabel( )
93      {
94          return _strLabel;
95      }
96  
97      /**
98       * Sets the Label
99       * @param strLabel The Label
100      */ 
101     public void setLabel( String strLabel )
102     {
103         _strLabel = strLabel;
104     }
105     
106     
107     /**
108      * Returns the Pictogramme
109      * @return The Pictogramme
110      */
111     public String getPictogramme( )
112     {
113         return _strPictogramme;
114     }
115 
116     /**
117      * Sets the Pictogramme
118      * @param strPictogramme The Pictogramme
119      */ 
120     public void setPictogramme( String strPictogramme )
121     {
122         _strPictogramme = strPictogramme;
123     }
124     
125     
126     /**
127      * Returns the Description
128      * @return The Description
129      */
130     public String getDescription( )
131     {
132         return _strDescription;
133     }
134 
135     /**
136      * Sets the Description
137      * @param strDescription The Description
138      */ 
139     public void setDescription( String strDescription )
140     {
141         _strDescription = strDescription;
142     }
143 
144     /**
145      * @return the _strFrequency
146      */
147     public String getFrequency( )
148     {
149         return _strFrequency;
150     }
151 
152     /**
153      * @param strFrequency the _strFrequency to set
154      */
155     public void setFrequency( String strFrequency )
156     {
157         this._strFrequency = strFrequency;
158     }
159 
160     /**
161      * Returns the Group
162      * @return The Group
163      */
164     public String getGroup( )
165     {
166         return _strGroup;
167     }
168 
169     /**
170      * Sets the Group
171      * @param nCategoryId The Group
172      */ 
173     public void setGroup( String strGroup )
174     {
175         _strGroup = strGroup;
176     }
177     
178     /**
179      * @return the _nGroupId
180      */
181     public int getGroupId( )
182     {
183         return _nGroupId;
184     }
185 
186     /**
187      * @param _nGroupId the _nGroupId to set
188      */
189     public void setGroupId( int _nGroupId )
190     {
191         this._nGroupId = _nGroupId;
192     }
193 
194     /**
195      * Returns the SubscriptionId
196      * @return The SubscriptionId
197      */
198     public int getSubscriptionId( )
199     {
200         return _nSubscriptionId;
201     }
202 
203     /**
204      * Sets the SubscriptionId
205      * @param nSubscriptionId The SubscriptionId
206      */ 
207     public void setSubscriptionId( int nSubscriptionId )
208     {
209         _nSubscriptionId = nSubscriptionId;
210     }
211 
212     
213     /**
214      * @return the _nInterestId
215      */
216     public int getInterestId( )
217     {
218         return _nInterestId;
219     }
220 
221     /**
222      * @param nInterestId the _nInterestId to set
223      */
224     public void setInterestId( int nInterestId )
225     {
226         this._nInterestId = nInterestId;
227     }
228 
229     /**
230      * @return the _nEnabled
231      */
232     public boolean isEnabled( )
233     {
234         return _nEnabled;
235     }
236 
237     /**
238      * @param nEnabled the _nEnabled to set
239      */
240     public void setEnabled( boolean nEnabled )
241     {
242         this._nEnabled = nEnabled;
243     }
244     
245 }