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.appstore.business;
35
36 import fr.paris.lutece.portal.service.resource.IExtendableResource;
37
38
39
40
41 public class Application implements IExtendableResource
42 {
43 public static final String RESOURCE_TYPE = "APP";
44 public static final String RESOURCE_TYPE_DESCRIPTION = "Appstore Application";
45
46
47 public static final int NOT_PUBLISHED = 0;
48 public static final int PUBLISHED = 1;
49 public static final int PUBLISHED_NEW = 2;
50 private int _nIdApplication;
51 private String _strTitle;
52 private String _strDescription;
53 private int _nIdCategory;
54 private String _strCategory;
55 private int _nOrder;
56 private int _nIdIcon;
57 private String _strPomUrl;
58 private String _strWebappUrl;
59 private String _strSqlScriptUrl;
60 private String _strArtifactId;
61 private String _strPresentation;
62 private String _strInstallation;
63 private String _strVersion;
64 private int _nBuildStatus;
65 private int _nPublishStatus;
66
67
68
69
70
71
72 public int getId( )
73 {
74 return _nIdApplication;
75 }
76
77
78
79
80
81
82
83 public void setId( int nIdApplication )
84 {
85 _nIdApplication = nIdApplication;
86 }
87
88
89
90
91
92
93 public String getTitle( )
94 {
95 return _strTitle;
96 }
97
98
99
100
101
102
103
104 public void setTitle( String strTitle )
105 {
106 _strTitle = strTitle;
107 }
108
109
110
111
112
113
114 public String getDescription( )
115 {
116 return _strDescription;
117 }
118
119
120
121
122
123
124
125 public void setDescription( String strDescription )
126 {
127 _strDescription = strDescription;
128 }
129
130
131
132
133
134
135 public int getIdCategory( )
136 {
137 return _nIdCategory;
138 }
139
140
141
142
143
144
145
146 public void setIdCategory( int nIdCategory )
147 {
148 _nIdCategory = nIdCategory;
149 }
150
151
152
153
154
155
156 public String getCategory( )
157 {
158 return _strCategory;
159 }
160
161
162
163
164
165
166
167 public void setCategory( String strCategory )
168 {
169 _strCategory = strCategory;
170 }
171
172
173
174
175
176
177 public int getOrder( )
178 {
179 return _nOrder;
180 }
181
182
183
184
185
186
187
188 public void setOrder( int nApplicationOrder )
189 {
190 _nOrder = nApplicationOrder;
191 }
192
193
194
195
196
197
198 public int getIdIcon( )
199 {
200 return _nIdIcon;
201 }
202
203
204
205
206
207
208
209 public void setIdIcon( int nIdIcon )
210 {
211 _nIdIcon = nIdIcon;
212 }
213
214
215
216
217
218
219 public String getPomUrl( )
220 {
221 return _strPomUrl;
222 }
223
224
225
226
227
228
229
230 public void setPomUrl( String strPomUrl )
231 {
232 _strPomUrl = strPomUrl;
233 }
234
235
236
237
238
239
240 public String getWebappUrl( )
241 {
242 return _strWebappUrl;
243 }
244
245
246
247
248
249
250
251 public void setWebappUrl( String strWebappUrl )
252 {
253 _strWebappUrl = strWebappUrl;
254 }
255
256
257
258
259
260
261 public String getSqlScriptUrl( )
262 {
263 return _strSqlScriptUrl;
264 }
265
266
267
268
269
270
271
272 public void setSqlScriptUrl( String strSqlScriptUrl )
273 {
274 _strSqlScriptUrl = strSqlScriptUrl;
275 }
276
277
278
279
280
281
282 public String getArtifactId( )
283 {
284 return _strArtifactId;
285 }
286
287
288
289
290
291
292
293 public void setArtifactId( String strArtifactId )
294 {
295 _strArtifactId = strArtifactId;
296 }
297
298
299
300
301
302
303 public String getPresentation( )
304 {
305 return _strPresentation;
306 }
307
308
309
310
311
312
313
314 public void setPresentation( String strPresentation )
315 {
316 _strPresentation = strPresentation;
317 }
318
319
320
321
322
323
324 public String getInstallation( )
325 {
326 return _strInstallation;
327 }
328
329
330
331
332
333
334
335 public void setInstallation( String strInstallation )
336 {
337 _strInstallation = strInstallation;
338 }
339
340
341
342
343
344
345 public String getVersion( )
346 {
347 return _strVersion;
348 }
349
350
351
352
353
354
355
356 public void setVersion( String strVersion )
357 {
358 _strVersion = strVersion;
359 }
360
361
362
363
364
365
366 public int getBuildStatus( )
367 {
368 return _nBuildStatus;
369 }
370
371
372
373
374
375
376
377 public void setBuildStatus( int nBuildStatus )
378 {
379 _nBuildStatus = nBuildStatus;
380 }
381
382
383
384
385
386
387 public int getPublishStatus( )
388 {
389 return _nPublishStatus;
390 }
391
392
393
394
395
396
397
398 public void setPublishStatus( int nPublishStatus )
399 {
400 _nPublishStatus = nPublishStatus;
401 }
402
403 @Override
404 public String getIdExtendableResource( )
405 {
406 return Integer.toString( _nIdApplication );
407 }
408
409 @Override
410 public String getExtendableResourceType( )
411 {
412 return RESOURCE_TYPE;
413 }
414
415 @Override
416 public String getExtendableResourceName( )
417 {
418 return _strTitle;
419 }
420
421 @Override
422 public String getExtendableResourceDescription( )
423 {
424 return _strDescription;
425 }
426
427 @Override
428 public String getExtendableResourceImageUrl( )
429 {
430 return "image?resource_type=appstore_icon_img&id=" + _nIdIcon;
431 }
432 }