1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 package fr.paris.lutece.plugins.pluginwizard.business.model;
35
36 import java.io.Serializable;
37 import java.util.ArrayList;
38 import java.util.List;
39
40 import javax.validation.constraints.NotEmpty;
41 import javax.validation.constraints.Pattern;
42 import javax.validation.constraints.Size;
43
44
45
46
47 public class Feature implements Serializable
48 {
49
50
51
52 private static final long serialVersionUID = 1L;
53
54 private List<Integer> _nIdBusinessClasses;
55 private int _nId;
56 @NotEmpty( message = "pluginwizard.error.feature.right.notEmpty" )
57 @Pattern( regexp = "[A-Z][A-Z_]*", message = "pluginwizard.error.feature.right.pattern" )
58 private String _strFeatureRight;
59 @NotEmpty( message = "pluginwizard.error.feature.title.notEmpty" )
60 @Size( min = 6, max = 80, message = "pluginwizard.error.feature.title.size" )
61 private String _strFeatureTitle;
62 private String _strFeatureLevel;
63 @NotEmpty( message = "pluginwizard.error.feature.name.notEmpty" )
64 @Pattern( regexp = "[A-Z][a-zA-Z]*", message = "pluginwizard.error.feature.name.pattern" )
65 private String _strFeatureName;
66 @NotEmpty( message = "pluginwizard.error.feature.description.notEmpty" )
67 @Size( min = 6, max = 255, message = "pluginwizard.error.feature.description.size" )
68 private String _strFeatureDescription;
69 private String _strJspName;
70
71
72
73
74
75
76
77
78
79
80 public int getId( )
81 {
82 return _nId;
83 }
84
85
86
87
88
89
90
91 public void setId( int nId )
92 {
93 _nId = nId;
94 }
95
96
97
98
99
100
101 public String getFeatureRight( )
102 {
103 return _strFeatureRight;
104 }
105
106
107
108
109
110
111
112 public void setFeatureRight( String strFeatureRight )
113 {
114 _strFeatureRight = strFeatureRight;
115 }
116
117
118
119
120
121
122 public String getFeatureTitle( )
123 {
124 return _strFeatureTitle;
125 }
126
127
128
129
130
131
132
133 public void setFeatureTitle( String strFeatureTitle )
134 {
135 _strFeatureTitle = strFeatureTitle;
136 }
137
138
139
140
141
142
143 public String getFeatureLevel( )
144 {
145 return _strFeatureLevel;
146 }
147
148
149
150
151
152
153
154 public void setFeatureLevel( String strFeatureLevel )
155 {
156 _strFeatureLevel = strFeatureLevel;
157 }
158
159
160
161
162
163
164 public String getFeatureName( )
165 {
166 return _strFeatureName;
167 }
168
169
170
171
172
173
174
175 public void setFeatureName( String strFeatureName )
176 {
177 _strFeatureName = strFeatureName;
178 }
179
180
181
182
183
184
185 public String getFeatureDescription( )
186 {
187 return _strFeatureDescription;
188 }
189
190
191
192
193
194
195
196 public void setFeatureDescription( String strFeatureDescription )
197 {
198 _strFeatureDescription = strFeatureDescription;
199 }
200
201
202
203
204
205
206 public String getJspName( )
207 {
208 return _strJspName;
209 }
210
211
212
213
214
215
216
217 public void setJspName( String strJspName )
218 {
219 _strJspName = strJspName;
220 }
221
222
223
224
225
226
227 public List<Integer> getIdBusinessClasses( )
228 {
229 if ( _nIdBusinessClasses != null )
230 {
231 return (List<Integer>) ( ( (ArrayList<Integer>) _nIdBusinessClasses ).clone( ) );
232 }
233 else
234 {
235 return null;
236 }
237 }
238
239
240
241
242
243
244
245 public void setIdBusinessClasses( List<Integer> nIdBusinessClasses )
246 {
247 if ( nIdBusinessClasses != null )
248 {
249 _nIdBusinessClasses = (List<Integer>) ( ( (ArrayList<Integer>) nIdBusinessClasses ).clone( ) );
250 }
251 else
252 {
253 _nIdBusinessClasses = null;
254 }
255 }
256 }