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.initializer.business;
35  
36  import javax.validation.constraints.Size;
37  import org.hibernate.validator.constraints.NotEmpty;
38  import java.io.Serializable;
39  
40  /**
41   * This is the business class for the object StarterComponent
42   */
43  public class StarterComponent implements Serializable
44  {
45      private static final long serialVersionUID = 1L;
46  
47      // Variables declarations
48      private int _nId;
49  
50      @Size( max = 255, message = "#i18n{initializer.validation.startercomponent.ArtifactId.size}" )
51      private String _strArtifactId;
52  
53      private String _strCodeCategory;
54  
55      @Size( max = 255, message = "#i18n{initializer.validation.startercomponent.LabelKey.size}" )
56      private String _strLabelKey;
57  
58      private String _strLabelDefault;
59  
60      @Size( max = 255, message = "#i18n{initializer.validation.startercomponent.DescriptionKey.size}" )
61      private String _strDescriptionKey;
62  
63      private String _strDescriptionDefault;
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 ArtifactId
88       * 
89       * @return The ArtifactId
90       */
91      public String getArtifactId( )
92      {
93          return _strArtifactId;
94      }
95  
96      /**
97       * Sets the ArtifactId
98       * 
99       * @param strArtifactId
100      *            The ArtifactId
101      */
102     public void setArtifactId( String strArtifactId )
103     {
104         _strArtifactId = strArtifactId;
105     }
106 
107     /**
108      * Returns the CodeCategory
109      * 
110      * @return The CodeCategory
111      */
112     public String getCodeCategory( )
113     {
114         return _strCodeCategory;
115     }
116 
117     /**
118      * Sets the CodeCategory
119      * 
120      * @param strCodeCategory
121      *            The CodeCategory
122      */
123     public void setCodeCategory( String strCodeCategory )
124     {
125         _strCodeCategory = strCodeCategory;
126     }
127 
128     /**
129      * Returns the LabelKey
130      * 
131      * @return The LabelKey
132      */
133     public String getLabelKey( )
134     {
135         return _strLabelKey;
136     }
137 
138     /**
139      * Sets the LabelKey
140      * 
141      * @param strLabelKey
142      *            The LabelKey
143      */
144     public void setLabelKey( String strLabelKey )
145     {
146         _strLabelKey = strLabelKey;
147     }
148 
149     /**
150      * Returns the LabelDefault
151      * 
152      * @return The LabelDefault
153      */
154     public String getLabelDefault( )
155     {
156         return _strLabelDefault;
157     }
158 
159     /**
160      * Sets the LabelDefault
161      * 
162      * @param strLabelDefault
163      *            The LabelDefault
164      */
165     public void setLabelDefault( String strLabelDefault )
166     {
167         _strLabelDefault = strLabelDefault;
168     }
169 
170     /**
171      * Returns the DescriptionKey
172      * 
173      * @return The DescriptionKey
174      */
175     public String getDescriptionKey( )
176     {
177         return _strDescriptionKey;
178     }
179 
180     /**
181      * Sets the DescriptionKey
182      * 
183      * @param strDescriptionKey
184      *            The DescriptionKey
185      */
186     public void setDescriptionKey( String strDescriptionKey )
187     {
188         _strDescriptionKey = strDescriptionKey;
189     }
190 
191     /**
192      * Returns the DescriptionDefault
193      * 
194      * @return The DescriptionDefault
195      */
196     public String getDescriptionDefault( )
197     {
198         return _strDescriptionDefault;
199     }
200 
201     /**
202      * Sets the DescriptionDefault
203      * 
204      * @param strDescriptionDefault
205      *            The DescriptionDefault
206      */
207     public void setDescriptionDefault( String strDescriptionDefault )
208     {
209         _strDescriptionDefault = strDescriptionDefault;
210     }
211 
212 }