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.web.formbean;
35
36 import org.hibernate.validator.constraints.URL;
37
38 import java.io.Serializable;
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 DescriptionFormBean implements Serializable
48 {
49
50 private int _nIdPlugin;
51 private String _strPluginName;
52 private String _strPluginClass;
53 @NotEmpty( message = "pluginwizard.error.plugin.description.notEmpty" )
54 @Size( min = 5, max = 255, message = "pluginwizard.error.plugin.description.size" )
55 private String _strPluginDescription;
56 @NotEmpty( message = "pluginwizard.error.plugin.provider.notEmpty" )
57 @Size( min = 3, max = 255, message = "pluginwizard.error.plugin.provider.size" )
58 private String _strPluginProvider;
59 @NotEmpty( message = "pluginwizard.error.plugin.version.notEmpty" )
60 @Pattern( regexp = "[0-9].[0-9].[0-9]", message = "pluginwizard.error.plugin.version.pattern" )
61 private String _strPluginVersion;
62 @NotEmpty( message = "pluginwizard.error.plugin.copyright.notEmpty" )
63 private String _strPluginCopyright;
64 private String _strPluginIconUrl;
65 @NotEmpty( message = "pluginwizard.error.plugin.urlProvider.notEmpty" )
66 @URL( message = "pluginwizard.error.plugin.urlProvider.url" )
67 private String _strPluginProviderUrl;
68 private String _strPluginDbPoolRequired;
69 private String _strType;
70 private boolean _bIsModule;
71
72
73
74
75 public DescriptionFormBean( )
76 {
77 }
78
79
80
81
82
83
84 public int getIdPlugin( )
85 {
86 return _nIdPlugin;
87 }
88
89
90
91
92
93
94
95 public void setIdPlugin( int nIdPlugin )
96 {
97 _nIdPlugin = nIdPlugin;
98 }
99
100
101
102
103
104
105 public String getPluginName( )
106 {
107 return _strPluginName;
108 }
109
110
111
112
113
114
115
116 public void setPluginName( String strPluginName )
117 {
118 _strPluginName = strPluginName;
119 }
120
121
122
123
124
125
126 public String getPluginClass( )
127 {
128 return _strPluginClass;
129 }
130
131
132
133
134
135
136
137 public void setPluginClass( String strPluginClass )
138 {
139 _strPluginClass = strPluginClass;
140 }
141
142
143
144
145
146
147 public String getPluginDescription( )
148 {
149 return _strPluginDescription;
150 }
151
152
153
154
155
156
157
158 public void setPluginDescription( String strPluginDescription )
159 {
160 _strPluginDescription = strPluginDescription;
161 }
162
163
164
165
166
167
168 public String getPluginVersion( )
169 {
170 return _strPluginVersion;
171 }
172
173
174
175
176
177
178
179 public void setPluginVersion( String strPluginVersion )
180 {
181 _strPluginVersion = strPluginVersion;
182 }
183
184
185
186
187
188
189 public String getPluginCopyright( )
190 {
191 return _strPluginCopyright;
192 }
193
194
195
196
197
198
199
200 public void setPluginCopyright( String strPluginCopyright )
201 {
202 _strPluginCopyright = strPluginCopyright;
203 }
204
205
206
207
208
209
210 public String getPluginIconUrl( )
211 {
212 return _strPluginIconUrl;
213 }
214
215
216
217
218
219
220
221 public void setPluginIconUrl( String strPluginIconUrl )
222 {
223 _strPluginIconUrl = strPluginIconUrl;
224 }
225
226
227
228
229
230
231 public String getPluginProvider( )
232 {
233 return _strPluginProvider;
234 }
235
236
237
238
239
240
241
242 public void setPluginProvider( String strPluginProvider )
243 {
244 _strPluginProvider = strPluginProvider;
245 }
246
247
248
249
250
251
252 public String getPluginProviderUrl( )
253 {
254 return _strPluginProviderUrl;
255 }
256
257
258
259
260
261
262
263 public void setPluginProviderUrl( String strPluginProviderUrl )
264 {
265 _strPluginProviderUrl = strPluginProviderUrl;
266 }
267
268
269
270
271
272
273 public String getPluginDbPoolRequired( )
274 {
275 return _strPluginDbPoolRequired;
276 }
277
278
279
280
281
282
283
284 public void setPluginDbPoolRequired( String strPluginDbPoolRequired )
285 {
286 _strPluginDbPoolRequired = strPluginDbPoolRequired;
287 }
288
289
290
291
292
293
294 public String getType( )
295 {
296 return _strType;
297 }
298
299
300
301
302
303
304 public void setType( String _strType )
305 {
306 this._strType = _strType;
307 }
308
309
310
311
312
313
314 public boolean isModule( )
315 {
316 return _bIsModule;
317 }
318
319
320
321
322
323
324 public boolean getModule( )
325 {
326 return _bIsModule;
327 }
328
329
330
331
332
333
334
335 public void setModule( boolean _bIsModule )
336 {
337 this._bIsModule = _bIsModule;
338 }
339 }