View Javadoc
1   /*
2    * Copyright (c) 2002-2016, 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.myportal.modules.myfavorites.business;
35  
36  import javax.validation.constraints.*;
37  import org.hibernate.validator.constraints.*;
38  import java.io.Serializable;
39  
40  /**
41   * This is the business class for the object MyFavorites
42   */
43  public class MyFavorites implements Serializable
44  {
45      private static final long serialVersionUID = 1L;
46  
47      // Variables declarations
48      private int _nId;
49  
50      @NotEmpty( message = "#i18n{module.myportal.myfavorites.validation.myfavorites.Url.notEmpty}" )
51      @Size( max = 255, message = "#i18n{module.myportal.myfavorites.validation.myfavorites.Url.size}" )
52      private String _strUrl;
53  
54      private int _nIdIcon;
55  
56      @NotEmpty( message = "#i18n{module.myportal.myfavorites.validation.myfavorites.Label.notEmpty}" )
57      @Size( max = 50, message = "#i18n{module.myportal.myfavorites.validation.myfavorites.Label.size}" )
58      private String _strLabel;
59  
60      private String _strIdUser;
61  
62      private int _nOrder;
63  
64      /**
65       * Returns the Id
66       * 
67       * @return The Id
68       */
69      public int getId( )
70      {
71          return _nId;
72      }
73  
74      /**
75       * Sets the Id
76       * 
77       * @param nId
78       *            The Id
79       */
80      public void setId( int nId )
81      {
82          _nId = nId;
83      }
84  
85      /**
86       * Returns the Url
87       * 
88       * @return The Url
89       */
90      public String getUrl( )
91      {
92          return _strUrl;
93      }
94  
95      /**
96       * Sets the Url
97       * 
98       * @param strUrl
99       *            The Url
100      */
101     public void setUrl( String strUrl )
102     {
103         _strUrl = strUrl;
104     }
105 
106     /**
107      * Returns the IdIcon
108      * 
109      * @return The IdIcon
110      */
111     public int getIdIcon( )
112     {
113         return _nIdIcon;
114     }
115 
116     /**
117      * Sets the IdIcon
118      * 
119      * @param nIdIcon
120      *            The IdIcon
121      */
122     public void setIdIcon( int nIdIcon )
123     {
124         _nIdIcon = nIdIcon;
125     }
126 
127     /**
128      * Returns the Label
129      * 
130      * @return The Label
131      */
132     public String getLabel( )
133     {
134         return _strLabel;
135     }
136 
137     /**
138      * Sets the Label
139      * 
140      * @param strLabel
141      *            The Label
142      */
143     public void setLabel( String strLabel )
144     {
145         _strLabel = strLabel;
146     }
147 
148     /**
149      * Returns the IdUser
150      * 
151      * @return The IdUser
152      */
153     public String getIdUser( )
154     {
155         return _strIdUser;
156     }
157 
158     /**
159      * Sets the IdUser
160      * 
161      * @param strIdUser
162      *            The IdUser
163      */
164     public void setIdUser( String strIdUser )
165     {
166         _strIdUser = strIdUser;
167     }
168 
169     /**
170      * Returns the order
171      * 
172      * @return the order
173      */
174     public int getOrder( )
175     {
176         return _nOrder;
177     }
178 
179     /**
180      * Sets the order
181      * 
182      * @param order
183      *            the order to set
184      */
185     public void setOrder( int order )
186     {
187         this._nOrder = order;
188     }
189 }