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.directory.business;
35
36 import fr.paris.lutece.portal.business.regularexpression.RegularExpression;
37 import fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource;
38
39 import java.util.Date;
40 import java.util.List;
41
42
43
44
45
46
47 public class Field implements AdminWorkgroupResource
48 {
49 public static final String ATTRIBUTE_FIELD_TITLE = "title";
50 public static final String ATTRIBUTE_FIELD_ID = "id";
51 private int _nIdField;
52 private IEntry _entry;
53 private String _strTitle;
54 private String _strValue;
55 private int _nHeight;
56 private int _nWidth;
57 private int _nMaxSizeEnter;
58 private int _nPosition;
59 private boolean _bShownInResultList;
60 private boolean _bShownInResultRecord;
61 private boolean _bDefaultValue;
62 private Date _tValueTypeDate;
63 private List<RegularExpression> _listRegularExpressionList;
64 private String _strRoleKey;
65 private String _strWorkgroupKey;
66 private String _strImageType;
67
68
69
70
71
72 public int getIdField( )
73 {
74 return _nIdField;
75 }
76
77
78
79
80
81
82
83 public void setIdField( int idField )
84 {
85 _nIdField = idField;
86 }
87
88
89
90
91
92 public int getPosition( )
93 {
94 return _nPosition;
95 }
96
97
98
99
100
101
102
103 public void setPosition( int position )
104 {
105 _nPosition = position;
106 }
107
108
109
110
111
112 public IEntry getEntry( )
113 {
114 return _entry;
115 }
116
117
118
119
120
121
122
123 public void setEntry( IEntry entry )
124 {
125 _entry = entry;
126 }
127
128
129
130
131
132 public List<RegularExpression> getRegularExpressionList( )
133 {
134 return _listRegularExpressionList;
135 }
136
137
138
139
140
141
142
143 public void setRegularExpressionList( List<RegularExpression> regularExpressionList )
144 {
145 _listRegularExpressionList = regularExpressionList;
146 }
147
148
149
150
151
152 public String getTitle( )
153 {
154 return _strTitle;
155 }
156
157
158
159
160
161
162
163 public void setTitle( String title )
164 {
165 _strTitle = title;
166 }
167
168
169
170
171
172 public String getValue( )
173 {
174 return _strValue;
175 }
176
177
178
179
180
181
182
183 public void setValue( String value )
184 {
185 _strValue = value;
186 }
187
188
189
190
191
192 public int getWidth( )
193 {
194 return _nWidth;
195 }
196
197
198
199
200
201
202
203 public void setWidth( int width )
204 {
205 this._nWidth = width;
206 }
207
208
209
210
211
212 public int getHeight( )
213 {
214 return _nHeight;
215 }
216
217
218
219
220
221
222
223 public void setHeight( int height )
224 {
225 _nHeight = height;
226 }
227
228
229
230
231
232 public boolean isDefaultValue( )
233 {
234 return _bDefaultValue;
235 }
236
237
238
239
240
241
242
243 public void setDefaultValue( boolean defaultValue )
244 {
245 _bDefaultValue = defaultValue;
246 }
247
248
249
250
251
252 public boolean isShownInResultList( )
253 {
254 return _bShownInResultList;
255 }
256
257
258
259
260
261
262
263 public void setShownInResultList( boolean bShown )
264 {
265 _bShownInResultList = bShown;
266 }
267
268
269
270
271
272 public boolean isShownInResultRecord( )
273 {
274 return _bShownInResultRecord;
275 }
276
277
278
279
280
281
282
283 public void setShownInResultRecord( boolean bShown )
284 {
285 _bShownInResultRecord = bShown;
286 }
287
288
289
290
291
292 public int getMaxSizeEnter( )
293 {
294 return _nMaxSizeEnter;
295 }
296
297
298
299
300
301
302
303 public void setMaxSizeEnter( int maxSizeEnter )
304 {
305 _nMaxSizeEnter = maxSizeEnter;
306 }
307
308
309
310
311
312 public Date getValueTypeDate( )
313 {
314 return _tValueTypeDate;
315 }
316
317
318
319
320
321
322
323 public void setValueTypeDate( Date defaultValueTypeDate )
324 {
325 _tValueTypeDate = defaultValueTypeDate;
326 }
327
328
329
330
331
332
333
334 public String getRoleKey( )
335 {
336 return _strRoleKey;
337 }
338
339
340
341
342
343
344
345
346 public void setRoleKey( String strRole )
347 {
348 _strRoleKey = strRole;
349 }
350
351
352
353
354 @Override
355 public String getWorkgroup( )
356 {
357 return _strWorkgroupKey;
358 }
359
360
361
362
363
364
365
366 public void setWorkgroup( String workGroup )
367 {
368 _strWorkgroupKey = workGroup;
369 }
370
371
372
373
374
375
376
377 public String getImageType( )
378 {
379 return _strImageType;
380 }
381
382
383
384
385
386
387
388
389 public void setImageType( String strImageType )
390 {
391 _strImageType = strImageType;
392 }
393 }