1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.labs;
17
18 import org.apache.commons.lang.StringUtils;
19 import org.kuali.rice.kim.api.identity.Person;
20 import org.kuali.rice.kim.api.services.KimApiServiceLocator;
21 import org.kuali.rice.krad.demo.uif.form.UIInactivatableTestObject;
22 import org.kuali.rice.krad.demo.uif.form.UITestObject;
23 import org.kuali.rice.krad.file.FileMetaBlob;
24 import org.kuali.rice.krad.file.FileMeta;
25 import org.kuali.rice.krad.labs.fileUploads.FileWithDetails;
26 import org.kuali.rice.krad.web.form.UifFormBase;
27
28 import java.util.ArrayList;
29 import java.util.Date;
30 import java.util.List;
31
32
33
34
35
36
37 public class KradLabsForm extends UifFormBase {
38 private static final long serialVersionUID = -7525378097732916418L;
39 private String themeName;
40 private String exampleShown;
41 private String currentExampleIndex;
42
43
44
45
46 private String inputField1;
47 private String inputField2 = "02/13/2014";
48 private String inputField3;
49 private String inputField4;
50 private String inputField5;
51 private String inputField6;
52 private String inputField7;
53 private String inputField8;
54 private String inputField9;
55 private String inputField10;
56 private String inputField11;
57 private String inputField12 = "testing";
58 private String inputField13;
59 private String inputField14;
60 private String inputField15;
61 private String inputField16;
62 private String inputField17;
63 private String inputField18;
64 private String inputField19;
65 private String inputField20;
66 private String inputField21;
67 private String inputField22;
68 private String inputField23;
69 private String inputField24;
70 private String inputField25;
71
72 private boolean booleanField1 = false;
73 private boolean booleanField2 = false;
74 private boolean booleanField3 = false;
75
76 private List<String> checkboxesField1;
77 private List<String> checkboxesField2;
78 private List<String> checkboxesField3;
79 private List<String> checkboxesField4;
80 private List<String> multiSelectField1;
81 private List<String> multiSelectField2;
82
83 private String testPersonId;
84 private Person testPerson;
85
86 private String testGroupId;
87
88 private String testPrincipalId1 = "eric";
89 private String testPrincipalId2 = "erin";
90 private String testPrincipalId3= "test1";
91 private String testPrincipalId4= "edna";
92 private String testPrincipalName1 = "eric";
93 private String testPrincipalName2 = "erin";
94 private String testPrincipalName3 = "test1";
95 private String testPrincipalName4 = "edna";
96
97 private String testGroupId1 = "2005";
98 private String testGroupId2 = "2001";
99 private String testGroupId3 = "2000";
100 private String testGroupId4 = "2005";
101 private String testGroupId5 = "2005";
102 private String testGroupNamespaceCode1 = "KUALI";
103 private String testGroupNamespaceCode2 = "KUALI";
104 private String testGroupNamespaceCode3 = "KR-WKFLW";
105 private String testGroupNamespaceCode4 = "KUALI";
106 private String testGroupNamespaceCode5 = "KUALI";
107 private String testGroupName1 = "Group1";
108 private String testGroupName2 = "TestGroup1";
109 private String testGroupName3 = "NotificationAdmin";
110 private String testGroupName4 = "Group1";
111 private String testGroupName5 = "Group1";
112
113 private String testRoleId1 = "KRSAP10005";
114 private String testRoleId2 = "KR1000";
115 private String testRoleId3 = "67";
116 private String testRoleId4 = "KR1000";
117 private String testRoleId5 = "KR1000";
118 private String testRoleNamespaceCode1 = "KR-SAP";
119 private String testRoleNamespaceCode2 = "KUALI";
120 private String testRoleNamespaceCode3 = "KR-WKFLW";
121 private String testRoleNamespaceCode4 = "KUALI";
122 private String testRoleNamespaceCode5 = "KUALI";
123 private String testRoleName1 = "Travel Approver";
124 private String testRoleName2 = "GuestRole";
125 private String testRoleName3 = "Router";
126 private String testRoleName4 = "GuestRole";
127 private String testRoleName5 = "GuestRole";
128
129
130 private String dataField1 = "1001";
131 private String dataField2 = "";
132 private String dataField3 = "My Book Title";
133 private String dataField4 = "My Book Title";
134 private String dataField5 = "Option 2";
135 private String dataField6 = "Some text";
136 private String dataField7 = "Book Title";
137 private String dataField8 = "My Book Title";
138 private String dataField9 = "My Other Book Title";
139 private String dataField10 = "My Other Book Title";
140
141
142 private String messageField1;
143 private String richMessageField = "[color=green][b]Message[/b][/color]";
144
145
146 private UITestObject nestedObject1;
147
148
149 private List<UITestObject> collection1 = new ArrayList<UITestObject>();
150 private List<UITestObject> collection1_2 = new ArrayList<UITestObject>();
151 private List<UITestObject> collection1_3 = new ArrayList<UITestObject>();
152 private List<UITestObject> collection1_4 = new ArrayList<UITestObject>();
153 private List<UITestObject> collection1_5 = new ArrayList<UITestObject>();
154 private List<UITestObject> collection1_6 = new ArrayList<UITestObject>();
155 private List<UITestObject> collection1_7 = new ArrayList<UITestObject>();
156 private List<UITestObject> collection1_8 = new ArrayList<UITestObject>();
157 private List<UITestObject> collection1_9 = new ArrayList<UITestObject>();
158 private List<UITestObject> collection2 = new ArrayList<UITestObject>();
159 private List<UITestObject> collection3 = new ArrayList<UITestObject>();
160 private List<UITestObject> collection4 = new ArrayList<UITestObject>();
161 private List<UITestObject> collection5 = new ArrayList<UITestObject>();
162
163 private List<UITestObject> emptyCollection = new ArrayList<UITestObject>();
164
165 private List<UITestObject> mediumCollection1 = new ArrayList<UITestObject>();
166 private List<UITestObject> mediumCollection2 = new ArrayList<UITestObject>();
167
168 private List<UIInactivatableTestObject> inactivatableCollection = new ArrayList<UIInactivatableTestObject>();
169 private List<UIInactivatableTestObject> inactivatableCollection2 = new ArrayList<UIInactivatableTestObject>();
170
171 private List<UITestObject> groupedCollection1 = new ArrayList<UITestObject>();
172 private List<UITestObject> groupedCollection2 = new ArrayList<UITestObject>();
173 private List<UITestObject> groupedCollection3 = new ArrayList<UITestObject>();
174 private List<UITestObject> doubleGroupedCollection = new ArrayList<UITestObject>();
175
176 private String fakeTotal = "123(server value)";
177
178 private List<FileMeta> files = new ArrayList<FileMeta>();
179 private List<FileWithDetails> files2 = new ArrayList<FileWithDetails>();
180
181 private String backdoorId;
182
183 public KradLabsForm() {
184 super();
185
186 messageField1 = "fruits";
187
188 getCollection1().add(new UITestObject("13", "14", "15", "16"));
189 getCollection1().add(new UITestObject("17", "18", "19", "20"));
190 getCollection1().add(new UITestObject("5", "6", "7", "8"));
191 getCollection1().add(new UITestObject("1", "2", "3", "4"));
192 getCollection1().add(new UITestObject("9", "10", "11", "12"));
193 getCollection1().add(new UITestObject("13", "14", "15", "16"));
194 getCollection1().add(new UITestObject("213", "143", "151", "126"));
195 getCollection1().add(new UITestObject("133", "144", "155", "156"));
196 getCollection1().add(new UITestObject("25", "14", "15", "15"));
197 getCollection1().add(new UITestObject("1", "5", "5", "4"));
198 getCollection1().add(new UITestObject("5", "5", "5", "5"));
199 getCollection1().add(new UITestObject("5", "7", "3", "1"));
200
201 for (int i = 0; i < 20; i++) {
202 List<UITestObject> mediumSubCollection1 = new ArrayList<UITestObject>();
203 List<UITestObject> mediumSubCollection2 = new ArrayList<UITestObject>();
204
205 for (int j = 0; j < 5; j++) {
206 mediumSubCollection1.add(new UITestObject("ab extra", "ab extra", "ab extra", "ab extra", "ab extra",
207 "ab extra", "ab extra", "ab extra"));
208
209 mediumSubCollection2.add(new UITestObject("ab extra", "ab extra", "ab extra", "ab extra", "ab extra",
210 "ab extra", "ab extra", "ab extra"));
211 }
212
213 UITestObject line = new UITestObject("ab extra", "ab extra", "ab extra", "ab extra", "ab extra", "ab extra",
214 "ab extra", "ab extra");
215 line.setSubList(mediumSubCollection1);
216
217 UITestObject line2 = new UITestObject("ab extra", "ab extra", "ab extra", "ab extra", "ab extra",
218 "ab extra", "ab extra", "ab extra");
219 line2.setSubList(mediumSubCollection2);
220
221 mediumCollection1.add(line);
222 mediumCollection2.add(line2);
223 }
224
225 collection1_2.addAll(collection1);
226 collection1_3.addAll(collection1);
227 collection1_4.addAll(collection1);
228 collection1_5.addAll(collection1);
229 collection1_6.addAll(collection1);
230 collection1_7.addAll(collection1);
231 collection1_8.addAll(collection1);
232 collection1_9.addAll(collection1);
233
234 getCollection2().add(new UITestObject("A", "B", "C", "D"));
235 getCollection2().add(new UITestObject("1", "2", "3", "4"));
236 getCollection2().add(new UITestObject("W", "X", "Y", "Z"));
237 collection2.add(new UITestObject("a", "b", "c", "d"));
238 collection2.add(new UITestObject("a", "s", "d", "f"));
239
240 collection3.add(new UITestObject("A", "B", "C", "D"));
241 collection3.get(0).getSubList().add(new UITestObject("A", "B", "C", "D"));
242 collection3.get(0).getSubList().add(new UITestObject("1", "2", "3", "4"));
243 collection3.get(0).getSubList().add(new UITestObject("W", "X", "Y", "Z"));
244 collection3.add(new UITestObject("1", "2", "3", "4"));
245 collection3.get(1).getSubList().add(new UITestObject("A", "B", "C", "D"));
246 collection3.get(1).getSubList().add(new UITestObject("1", "2", "3", "4"));
247 collection3.add(new UITestObject("W", "X", "Y", "Z"));
248 collection3.get(2).getSubList().add(new UITestObject("W", "X", "Y", "Z"));
249
250 collection4.add(new UITestObject("A", "B", "C", "D"));
251 collection4.get(0).getSubList().add(new UITestObject("A", "B", "C", "D"));
252 collection4.get(0).getSubList().add(new UITestObject("1", "2", "3", "4"));
253 collection4.get(0).getSubList().add(new UITestObject("W", "X", "Y", "Z"));
254 collection4.add(new UITestObject("1", "2", "3", "4"));
255 collection4.get(1).getSubList().add(new UITestObject("a", "b", "C", "D"));
256 collection4.get(1).getSubList().add(new UITestObject("a", "s", "D", "F"));
257
258
259 collection5.add(new UITestObject("a", "a", "a", "a"));
260 collection5.get(0).getSubList().add(new UITestObject("A", "B", "C", "D"));
261 collection5.get(0).getSubList().get(0).getSubList().add(new UITestObject("a3", "3", "3", "3"));
262 collection5.get(0).getSubList().get(0).getSubList().add(new UITestObject("a3", "3", "3", "3"));
263 collection5.get(0).getSubList().add(new UITestObject("1", "2", "3", "4"));
264 collection5.get(0).getSubList().get(1).getSubList().add(new UITestObject("b3", "3", "3", "3"));
265 collection5.get(0).getSubList().get(1).getSubList().add(new UITestObject("b3", "3", "3", "3"));
266 collection5.get(0).getSubList().get(1).getSubList().add(new UITestObject("b3", "3", "3", "3"));
267 collection5.add(new UITestObject("b", "b", "b", "b"));
268 collection5.get(1).getSubList().add(new UITestObject("a", "b", "C", "D"));
269 collection5.get(1).getSubList().get(0).getSubList().add(new UITestObject("a23", "3", "3", "3"));
270 collection5.get(1).getSubList().get(0).getSubList().add(new UITestObject("a23", "3", "3", "3"));
271 collection5.get(1).getSubList().add(new UITestObject("a", "s", "D", "F"));
272 collection5.get(1).getSubList().get(1).getSubList().add(new UITestObject("b23", "3", "3", "3"));
273 collection5.get(1).getSubList().get(1).getSubList().add(new UITestObject("b23", "3", "3", "3"));
274
275 inactivatableCollection.add(new UIInactivatableTestObject("A", "100", "200", "300", true));
276 inactivatableCollection.add(new UIInactivatableTestObject("B", "100", "200", "300", true));
277 inactivatableCollection.add(new UIInactivatableTestObject("b3", "3", "3", "3", false));
278 inactivatableCollection.add(new UIInactivatableTestObject("a", "b", "C", "D", true));
279 inactivatableCollection.add(new UIInactivatableTestObject("W", "X", "Y", "Z", false));
280 inactivatableCollection.add(new UIInactivatableTestObject("a", "s", "d", "f", true));
281 inactivatableCollection.add(new UIInactivatableTestObject("Fall", "2002", "AAA123", "3", false));
282
283 inactivatableCollection2.addAll(inactivatableCollection);
284
285 groupedCollection1.add(new UITestObject("A", "100", "200", "300"));
286 groupedCollection1.add(new UITestObject("A", "101", "200", "300"));
287 groupedCollection1.add(new UITestObject("A", "102", "200", "300"));
288 groupedCollection1.add(new UITestObject("A", "103", "200", "300"));
289 groupedCollection1.add(new UITestObject("A", "104", "200", "300"));
290
291 groupedCollection1.add(new UITestObject("B", "100", "200", "300"));
292 groupedCollection1.add(new UITestObject("B", "101", "200", "300"));
293 groupedCollection1.add(new UITestObject("B", "102", "200", "300"));
294
295 groupedCollection1.add(new UITestObject("C", "100", "200", "300"));
296 groupedCollection1.add(new UITestObject("C", "101", "200", "300"));
297 groupedCollection1.add(new UITestObject("C", "102", "200", "300"));
298 groupedCollection1.add(new UITestObject("C", "103", "200", "300"));
299
300 groupedCollection1.add(new UITestObject("D", "100", "200", "300"));
301 groupedCollection1.add(new UITestObject("D", "101", "200", "300"));
302 groupedCollection1.add(new UITestObject("D", "102", "200", "300"));
303 groupedCollection1.add(new UITestObject("D", "103", "200", "300"));
304 groupedCollection1.add(new UITestObject("D", "100", "200", "300"));
305 groupedCollection1.add(new UITestObject("D", "101", "200", "300"));
306 groupedCollection1.add(new UITestObject("D", "102", "200", "300"));
307 groupedCollection1.add(new UITestObject("D", "103", "200", "300"));
308 groupedCollection1.add(new UITestObject("D", "100", "200", "300"));
309 groupedCollection1.add(new UITestObject("D", "101", "200", "300"));
310 groupedCollection1.add(new UITestObject("D", "102", "200", "300"));
311 groupedCollection1.add(new UITestObject("D", "103", "200", "300"));
312 groupedCollection1.add(new UITestObject("D", "100", "200", "300"));
313 groupedCollection1.add(new UITestObject("D", "101", "200", "300"));
314 groupedCollection1.add(new UITestObject("D", "102", "200", "300"));
315 groupedCollection1.add(new UITestObject("D", "103", "200", "300"));
316 groupedCollection1.add(new UITestObject("D", "100", "200", "300"));
317 groupedCollection1.add(new UITestObject("D", "101", "200", "300"));
318 groupedCollection1.add(new UITestObject("D", "102", "200", "300"));
319 groupedCollection1.add(new UITestObject("D", "103", "200", "300"));
320 groupedCollection1.add(new UITestObject("D", "100", "200", "300"));
321 groupedCollection1.add(new UITestObject("D", "101", "200", "300"));
322 groupedCollection1.add(new UITestObject("D", "102", "200", "300"));
323 groupedCollection1.add(new UITestObject("D", "103", "200", "300"));
324
325 groupedCollection2.addAll(groupedCollection1);
326 groupedCollection3.addAll(groupedCollection1);
327
328 doubleGroupedCollection.add(new UITestObject("Fall", "2001", "AAA123", "2"));
329 doubleGroupedCollection.add(new UITestObject("Fall", "2001", "BBB123", "3"));
330 doubleGroupedCollection.add(new UITestObject("Fall", "2001", "CCC123", "4"));
331 doubleGroupedCollection.add(new UITestObject("Fall", "2001", "DDD123", "3"));
332
333 doubleGroupedCollection.add(new UITestObject("Fall", "2002", "AAA123", "3"));
334 doubleGroupedCollection.add(new UITestObject("Fall", "2002", "BBB123", "2"));
335 doubleGroupedCollection.add(new UITestObject("Fall", "2002", "CCC123", "3"));
336
337 doubleGroupedCollection.add(new UITestObject("Fall", "2003", "AAA123", "3"));
338 doubleGroupedCollection.add(new UITestObject("Fall", "2003", "CCC123", "3"));
339
340 doubleGroupedCollection.add(new UITestObject("Spring", "2001", "AAA123", "3"));
341 doubleGroupedCollection.add(new UITestObject("Spring", "2001", "BBB123", "3"));
342 doubleGroupedCollection.add(new UITestObject("Spring", "2001", "CCC123", "3"));
343
344 doubleGroupedCollection.add(new UITestObject("Spring", "2002", "AAA123", "4"));
345 doubleGroupedCollection.add(new UITestObject("Spring", "2002", "BBB123", "4"));
346 doubleGroupedCollection.add(new UITestObject("Spring", "2002", "CCC123", "2"));
347
348 doubleGroupedCollection.add(new UITestObject("Spring", "2003", "AAA123", "4"));
349 doubleGroupedCollection.add(new UITestObject("Spring", "2003", "BBB123", "3"));
350 doubleGroupedCollection.add(new UITestObject("Spring", "2003", "CCC123", "3"));
351 doubleGroupedCollection.add(new UITestObject("Spring", "2003", "DDD123", "2"));
352 }
353
354
355
356
357
358
359 public String getThemeName() {
360 return themeName;
361 }
362
363
364
365
366 public void setThemeName(String themeName) {
367 this.themeName = themeName;
368 }
369
370
371
372
373
374
375 public String getExampleShown() {
376 return exampleShown;
377 }
378
379
380
381
382
383
384 public void setExampleShown(String exampleShown) {
385 this.exampleShown = exampleShown;
386 }
387
388
389
390
391
392
393 public String getCurrentExampleIndex() {
394 return currentExampleIndex;
395 }
396
397
398
399
400
401
402 public void setCurrentExampleIndex(String currentExampleIndex) {
403 this.currentExampleIndex = currentExampleIndex;
404 }
405
406
407
408
409
410 public String getDataField1() {
411 return dataField1;
412 }
413
414 public void setDataField1(String dataField1) {
415 this.dataField1 = dataField1;
416 }
417
418 public String getDataField2() {
419 return dataField2;
420 }
421
422 public void setDataField2(String dataField2) {
423 this.dataField2 = dataField2;
424 }
425
426 public String getDataField3() {
427 return dataField3;
428 }
429
430 public void setDataField3(String dataField3) {
431 this.dataField3 = dataField3;
432 }
433
434 public String getDataField4() {
435 return dataField4;
436 }
437
438 public void setDataField4(String dataField4) {
439 this.dataField4 = dataField4;
440 }
441
442 public void setDataField5(String dataField5) {
443 this.dataField5 = dataField5;
444 }
445
446 public String getDataField5() {
447 return dataField5;
448 }
449
450 public String getDataField6() {
451 return dataField6;
452 }
453
454 public void setDataField6(String dataField6) {
455 this.dataField6 = dataField6;
456 }
457
458 public String getDataField7() {
459 return dataField7;
460 }
461
462 public void setDataField7(String dataField7) {
463 this.dataField7 = dataField7;
464 }
465
466 public String getDataField8() {
467 return dataField8;
468 }
469
470 public void setDataField8(String dataField8) {
471 this.dataField8 = dataField8;
472 }
473
474 public String getDataField9() {
475 return dataField9;
476 }
477
478 public void setDataField9(String dataField9) {
479 this.dataField9 = dataField9;
480 }
481
482 public String getInputField1() {
483 return inputField1;
484 }
485
486 public void setInputField1(String inputField1) {
487 this.inputField1 = inputField1;
488 }
489
490 public String getInputField2() {
491 return inputField2;
492 }
493
494 public void setInputField2(String inputField2) {
495 this.inputField2 = inputField2;
496 }
497
498 public String getInputField3() {
499
500 return inputField3;
501 }
502
503 public void setInputField3(String inputField3) {
504 this.inputField3 = inputField3;
505 }
506
507 public String getInputField4() {
508 return inputField4;
509 }
510
511 public void setInputField4(String inputField4) {
512 this.inputField4 = inputField4;
513 }
514
515 public String getInputField5() {
516 return inputField5;
517 }
518
519 public void setInputField5(String inputField5) {
520 this.inputField5 = inputField5;
521 }
522
523 public String getInputField6() {
524 return inputField6;
525 }
526
527 public void setInputField6(String inputField6) {
528 this.inputField6 = inputField6;
529 }
530
531 public String getInputField7() {
532 return inputField7;
533 }
534
535 public void setInputField7(String inputField7) {
536 this.inputField7 = inputField7;
537 }
538
539 public String getInputField8() {
540 return inputField8;
541 }
542
543 public void setInputField8(String inputField8) {
544 this.inputField8 = inputField8;
545 }
546
547 public String getInputField9() {
548 return inputField9;
549 }
550
551 public void setInputField9(String inputField9) {
552 this.inputField9 = inputField9;
553 }
554
555 public String getInputField10() {
556 return inputField10;
557 }
558
559 public void setInputField10(String inputField10) {
560 this.inputField10 = inputField10;
561 }
562
563 public String getInputField11() {
564 return inputField11;
565 }
566
567 public void setInputField11(String inputField11) {
568 this.inputField11 = inputField11;
569 }
570
571 public String getInputField12() {
572 return inputField12;
573 }
574
575 public void setInputField12(String inputField12) {
576 this.inputField12 = inputField12;
577 }
578
579 public String getInputField13() {
580 return inputField13;
581 }
582
583 public void setInputField13(String inputField13) {
584 this.inputField13 = inputField13;
585 }
586
587 public String getInputField14() {
588 return inputField14;
589 }
590
591 public void setInputField14(String inputField14) {
592 this.inputField14 = inputField14;
593 }
594
595 public String getInputField15() {
596 return inputField15;
597 }
598
599 public void setInputField15(String inputField15) {
600 this.inputField15 = inputField15;
601 }
602
603 public String getInputField16() {
604 return inputField16;
605 }
606
607 public void setInputField16(String inputField16) {
608 this.inputField16 = inputField16;
609 }
610
611 public String getInputField17() {
612 return inputField17;
613 }
614
615 public void setInputField17(String inputField17) {
616 this.inputField17 = inputField17;
617 }
618
619 public String getInputField18() {
620 return inputField18;
621 }
622
623 public void setInputField18(String inputField18) {
624 this.inputField18 = inputField18;
625 }
626
627 public String getInputField19() {
628 return inputField19;
629 }
630
631 public void setInputField19(String inputField19) {
632 this.inputField19 = inputField19;
633 }
634
635 public String getInputField20() {
636 return inputField20;
637 }
638
639 public void setInputField20(String inputField20) {
640 this.inputField20 = inputField20;
641 }
642
643 public String getInputField21() {
644 return inputField21;
645 }
646
647 public void setInputField21(String inputField21) {
648 this.inputField21 = inputField21;
649 }
650
651 public String getInputField22() {
652 return inputField22;
653 }
654
655 public void setInputField22(String inputField22) {
656 this.inputField22 = inputField22;
657 }
658
659 public String getInputField23() {
660 return inputField23;
661 }
662
663 public void setInputField23(String inputField23) {
664 this.inputField23 = inputField23;
665 }
666
667 public String getInputField24() {
668 return inputField24;
669 }
670
671 public void setInputField24(String inputField24) {
672 this.inputField24 = inputField24;
673 }
674
675 public String getInputField25() {
676 return inputField25;
677 }
678
679 public void setInputField25(String inputField25) {
680 this.inputField25 = inputField25;
681 }
682
683 public String getMessageField1() {
684 return messageField1;
685 }
686
687 public void setMessageField1(String messageField1) {
688 this.messageField1 = messageField1;
689 }
690
691 public String getTestPersonId() {
692 return testPersonId;
693 }
694
695 public void setTestPersonId(String testPersonId) {
696 this.testPersonId = testPersonId;
697 }
698
699 public Person getTestPerson() {
700 if ((testPerson == null) || !StringUtils.equals(testPerson.getPrincipalId(), getTestPersonId())) {
701 testPerson = KimApiServiceLocator.getPersonService().getPerson(getTestPersonId());
702
703 if (testPerson == null) {
704 try {
705 testPerson = KimApiServiceLocator.getPersonService().getPersonImplementationClass().newInstance();
706 } catch (Exception e) {
707 throw new RuntimeException(e);
708 }
709 }
710 }
711
712 return testPerson;
713 }
714
715 public void setTestPerson(Person testPerson) {
716 this.testPerson = testPerson;
717 }
718
719 public String getTestGroupId() {
720 return testGroupId;
721 }
722
723 public void setTestGroupId(String testGroupId) {
724 this.testGroupId = testGroupId;
725 }
726
727 public String getTestPrincipalId1() {
728 return testPrincipalId1;
729 }
730
731 public void setTestPrincipalId1(String testPrincipalId1) {
732 this.testPrincipalId1 = testPrincipalId1;
733 }
734
735 public String getTestPrincipalId2() {
736 return testPrincipalId2;
737 }
738
739 public void setTestPrincipalId2(String testPrincipalId2) {
740 this.testPrincipalId2 = testPrincipalId2;
741 }
742
743 public String getTestPrincipalId3() {
744 return testPrincipalId3;
745 }
746
747 public void setTestPrincipalId3(String testPrincipalId3) {
748 this.testPrincipalId3 = testPrincipalId3;
749 }
750
751 public String getTestPrincipalId4() {
752 return testPrincipalId4;
753 }
754
755 public void setTestPrincipalId4(String testPrincipalId4) {
756 this.testPrincipalId4 = testPrincipalId4;
757 }
758
759 public String getTestPrincipalName1() {
760 return testPrincipalName1;
761 }
762
763 public void setTestPrincipalName1(String testPrincipalName1) {
764 this.testPrincipalName1 = testPrincipalName1;
765 }
766
767 public String getTestPrincipalName2() {
768 return testPrincipalName2;
769 }
770
771 public void setTestPrincipalName2(String testPrincipalName2) {
772 this.testPrincipalName2 = testPrincipalName2;
773 }
774
775 public String getTestPrincipalName3() {
776 return testPrincipalName3;
777 }
778
779 public void setTestPrincipalName3(String testPrincipalName3) {
780 this.testPrincipalName3 = testPrincipalName3;
781 }
782
783 public String getTestPrincipalName4() {
784 return testPrincipalName4;
785 }
786
787 public void setTestPrincipalName4(String testPrincipalName4) {
788 this.testPrincipalName4 = testPrincipalName4;
789 }
790
791 public String getTestGroupId1() {
792 return testGroupId1;
793 }
794
795 public void setTestGroupId1(String testGroupId1) {
796 this.testGroupId1 = testGroupId1;
797 }
798
799 public String getTestGroupId2() {
800 return testGroupId2;
801 }
802
803 public void setTestGroupId2(String testGroupId2) {
804 this.testGroupId2 = testGroupId2;
805 }
806
807 public String getTestGroupId3() {
808 return testGroupId3;
809 }
810
811 public void setTestGroupId3(String testGroupId3) {
812 this.testGroupId3 = testGroupId3;
813 }
814
815 public String getTestGroupId4() {
816 return testGroupId4;
817 }
818
819 public void setTestGroupId4(String testGroupId4) {
820 this.testGroupId4 = testGroupId4;
821 }
822
823 public String getTestGroupId5() {
824 return testGroupId5;
825 }
826
827 public void setTestGroupId5(String testGroupId5) {
828 this.testGroupId5 = testGroupId5;
829 }
830
831 public String getTestGroupNamespaceCode1() {
832 return testGroupNamespaceCode1;
833 }
834
835 public void setTestGroupNamespaceCode1(String testGroupNamespaceCode1) {
836 this.testGroupNamespaceCode1 = testGroupNamespaceCode1;
837 }
838
839 public String getTestGroupNamespaceCode2() {
840 return testGroupNamespaceCode2;
841 }
842
843 public void setTestGroupNamespaceCode2(String testGroupNamespaceCode2) {
844 this.testGroupNamespaceCode2 = testGroupNamespaceCode2;
845 }
846
847 public String getTestGroupNamespaceCode3() {
848 return testGroupNamespaceCode3;
849 }
850
851 public void setTestGroupNamespaceCode3(String testGroupNamespaceCode3) {
852 this.testGroupNamespaceCode3 = testGroupNamespaceCode3;
853 }
854
855 public String getTestGroupNamespaceCode4() {
856 return testGroupNamespaceCode4;
857 }
858
859 public void setTestGroupNamespaceCode4(String testGroupNamespaceCode4) {
860 this.testGroupNamespaceCode4 = testGroupNamespaceCode4;
861 }
862
863 public String getTestGroupNamespaceCode5() {
864 return testGroupNamespaceCode5;
865 }
866
867 public void setTestGroupNamespaceCode5(String testGroupNamespaceCode5) {
868 this.testGroupNamespaceCode5 = testGroupNamespaceCode5;
869 }
870
871 public String getTestGroupName1() {
872 return testGroupName1;
873 }
874
875 public void setTestGroupName1(String testGroupName1) {
876 this.testGroupName1 = testGroupName1;
877 }
878
879 public String getTestGroupName2() {
880 return testGroupName2;
881 }
882
883 public void setTestGroupName2(String testGroupName2) {
884 this.testGroupName2 = testGroupName2;
885 }
886
887 public String getTestGroupName3() {
888 return testGroupName3;
889 }
890
891 public void setTestGroupName3(String testGroupName3) {
892 this.testGroupName3 = testGroupName3;
893 }
894
895 public String getTestGroupName4() {
896 return testGroupName4;
897 }
898
899 public void setTestGroupName4(String testGroupName4) {
900 this.testGroupName4 = testGroupName4;
901 }
902
903 public String getTestGroupName5() {
904 return testGroupName5;
905 }
906
907 public void setTestGroupName5(String testGroupName5) {
908 this.testGroupName5 = testGroupName5;
909 }
910
911 public String getTestRoleId1() {
912 return testRoleId1;
913 }
914
915 public void setTestRoleId1(String testRoleId1) {
916 this.testRoleId1 = testRoleId1;
917 }
918
919 public String getTestRoleId2() {
920 return testRoleId2;
921 }
922
923 public void setTestRoleId2(String testRoleId2) {
924 this.testRoleId2 = testRoleId2;
925 }
926
927 public String getTestRoleId3() {
928 return testRoleId3;
929 }
930
931 public void setTestRoleId3(String testRoleId3) {
932 this.testRoleId3 = testRoleId3;
933 }
934
935 public String getTestRoleId4() {
936 return testRoleId4;
937 }
938
939 public void setTestRoleId4(String testRoleId4) {
940 this.testRoleId4 = testRoleId4;
941 }
942
943 public String getTestRoleId5() {
944 return testRoleId5;
945 }
946
947 public void setTestRoleId5(String testRoleId5) {
948 this.testRoleId5 = testRoleId5;
949 }
950
951 public String getTestRoleNamespaceCode1() {
952 return testRoleNamespaceCode1;
953 }
954
955 public void setTestRoleNamespaceCode1(String testRoleNamespaceCode1) {
956 this.testRoleNamespaceCode1 = testRoleNamespaceCode1;
957 }
958
959 public String getTestRoleNamespaceCode2() {
960 return testRoleNamespaceCode2;
961 }
962
963 public void setTestRoleNamespaceCode2(String testRoleNamespaceCode2) {
964 this.testRoleNamespaceCode2 = testRoleNamespaceCode2;
965 }
966
967 public String getTestRoleNamespaceCode3() {
968 return testRoleNamespaceCode3;
969 }
970
971 public void setTestRoleNamespaceCode3(String testRoleNamespaceCode3) {
972 this.testRoleNamespaceCode3 = testRoleNamespaceCode3;
973 }
974
975 public String getTestRoleNamespaceCode4() {
976 return testRoleNamespaceCode4;
977 }
978
979 public void setTestRoleNamespaceCode4(String testRoleNamespaceCode4) {
980 this.testRoleNamespaceCode4 = testRoleNamespaceCode4;
981 }
982
983 public String getTestRoleNamespaceCode5() {
984 return testRoleNamespaceCode5;
985 }
986
987 public void setTestRoleNamespaceCode5(String testRoleNamespaceCode5) {
988 this.testRoleNamespaceCode5 = testRoleNamespaceCode5;
989 }
990
991 public String getTestRoleName1() {
992 return testRoleName1;
993 }
994
995 public void setTestRoleName1(String testRoleName1) {
996 this.testRoleName1 = testRoleName1;
997 }
998
999 public String getTestRoleName2() {
1000 return testRoleName2;
1001 }
1002
1003 public void setTestRoleName2(String testRoleName2) {
1004 this.testRoleName2 = testRoleName2;
1005 }
1006
1007 public String getTestRoleName3() {
1008 return testRoleName3;
1009 }
1010
1011 public void setTestRoleName3(String testRoleName3) {
1012 this.testRoleName3 = testRoleName3;
1013 }
1014
1015 public String getTestRoleName4() {
1016 return testRoleName4;
1017 }
1018
1019 public void setTestRoleName4(String testRoleName4) {
1020 this.testRoleName4 = testRoleName4;
1021 }
1022
1023 public String getTestRoleName5() {
1024 return testRoleName5;
1025 }
1026
1027 public void setTestRoleName5(String testRoleName5) {
1028 this.testRoleName5 = testRoleName5;
1029 }
1030
1031 public List<UITestObject> getEmptyCollection() {
1032 return emptyCollection;
1033 }
1034
1035 public void setEmptyCollection(List<UITestObject> emptyCollection) {
1036 this.emptyCollection = emptyCollection;
1037 }
1038
1039 public UITestObject getNestedObject1() {
1040 return nestedObject1;
1041 }
1042
1043 public void setNestedObject1(UITestObject nestedObject1) {
1044 this.nestedObject1 = nestedObject1;
1045 }
1046
1047 public List<UITestObject> getCollection1() {
1048 return collection1;
1049 }
1050
1051 public void setCollection1(List<UITestObject> collection1) {
1052 this.collection1 = collection1;
1053 }
1054
1055 public List<UITestObject> getCollection1_2() {
1056 return collection1_2;
1057 }
1058
1059 public void setCollection1_2(List<UITestObject> collection1_2) {
1060 this.collection1_2 = collection1_2;
1061 }
1062
1063 public List<UITestObject> getCollection1_3() {
1064 return collection1_3;
1065 }
1066
1067 public void setCollection1_3(List<UITestObject> collection1_3) {
1068 this.collection1_3 = collection1_3;
1069 }
1070
1071 public List<UITestObject> getCollection1_4() {
1072 return collection1_4;
1073 }
1074
1075 public void setCollection1_4(List<UITestObject> collection1_4) {
1076 this.collection1_4 = collection1_4;
1077 }
1078
1079 public List<UITestObject> getCollection1_5() {
1080 return collection1_5;
1081 }
1082
1083 public void setCollection1_5(List<UITestObject> collection1_5) {
1084 this.collection1_5 = collection1_5;
1085 }
1086
1087 public List<UITestObject> getCollection1_6() {
1088 return collection1_6;
1089 }
1090
1091 public void setCollection1_6(List<UITestObject> collection1_6) {
1092 this.collection1_6 = collection1_6;
1093 }
1094
1095 public List<UITestObject> getCollection1_7() {
1096 return collection1_7;
1097 }
1098
1099 public void setCollection1_7(List<UITestObject> collection1_7) {
1100 this.collection1_7 = collection1_7;
1101 }
1102
1103 public List<UITestObject> getCollection1_8() {
1104 return collection1_8;
1105 }
1106
1107 public void setCollection1_8(List<UITestObject> collection1_8) {
1108 this.collection1_8 = collection1_8;
1109 }
1110
1111 public List<UITestObject> getCollection1_9() {
1112 return collection1_9;
1113 }
1114
1115 public void setCollection1_9(List<UITestObject> collection1_9) {
1116 this.collection1_9 = collection1_9;
1117 }
1118
1119 public List<UITestObject> getCollection2() {
1120 return collection2;
1121 }
1122
1123 public void setCollection2(List<UITestObject> collection2) {
1124 this.collection2 = collection2;
1125 }
1126
1127 public List<UITestObject> getCollection3() {
1128 return collection3;
1129 }
1130
1131 public void setCollection3(List<UITestObject> collection3) {
1132 this.collection3 = collection3;
1133 }
1134
1135 public List<UITestObject> getCollection4() {
1136 return collection4;
1137 }
1138
1139 public void setCollection4(List<UITestObject> collection4) {
1140 this.collection4 = collection4;
1141 }
1142
1143 public List<UITestObject> getCollection5() {
1144 return collection5;
1145 }
1146
1147 public void setCollection5(List<UITestObject> collection5) {
1148 this.collection5 = collection5;
1149 }
1150
1151 public List<UIInactivatableTestObject> getInactivatableCollection() {
1152 return inactivatableCollection;
1153 }
1154
1155 public void setInactivatableCollection(List<UIInactivatableTestObject> inactivatableCollection) {
1156 this.inactivatableCollection = inactivatableCollection;
1157 }
1158
1159 public List<UIInactivatableTestObject> getInactivatableCollection2() {
1160 return inactivatableCollection2;
1161 }
1162
1163 public void setInactivatableCollection2(List<UIInactivatableTestObject> inactivatableCollection2) {
1164 this.inactivatableCollection2 = inactivatableCollection2;
1165 }
1166
1167 public List<UITestObject> getGroupedCollection1() {
1168 return groupedCollection1;
1169 }
1170
1171 public void setGroupedCollection1(List<UITestObject> groupedCollection1) {
1172 this.groupedCollection1 = groupedCollection1;
1173 }
1174
1175 public List<UITestObject> getGroupedCollection2() {
1176 return groupedCollection2;
1177 }
1178
1179 public void setGroupedCollection2(List<UITestObject> groupedCollection2) {
1180 this.groupedCollection2 = groupedCollection2;
1181 }
1182
1183 public List<UITestObject> getGroupedCollection3() {
1184 return groupedCollection3;
1185 }
1186
1187 public void setGroupedCollection3(List<UITestObject> groupedCollection3) {
1188 this.groupedCollection3 = groupedCollection3;
1189 }
1190
1191 public List<UITestObject> getDoubleGroupedCollection() {
1192 return doubleGroupedCollection;
1193 }
1194
1195 public void setDoubleGroupedCollection(List<UITestObject> doubleGroupedCollection) {
1196 this.doubleGroupedCollection = doubleGroupedCollection;
1197 }
1198
1199 public String getFakeTotal() {
1200 return fakeTotal;
1201 }
1202
1203 public void setFakeTotal(String fakeTotal) {
1204 this.fakeTotal = fakeTotal;
1205 }
1206
1207 public String getRichMessageField() {
1208 return richMessageField;
1209 }
1210
1211 public void setRichMessageField(String richMessageField) {
1212 this.richMessageField = richMessageField;
1213 }
1214
1215 public List<String> getCheckboxesField1() {
1216 return checkboxesField1;
1217 }
1218
1219 public void setCheckboxesField1(List<String> checkboxesField1) {
1220 this.checkboxesField1 = checkboxesField1;
1221 }
1222
1223 public List<String> getCheckboxesField2() {
1224 return checkboxesField2;
1225 }
1226
1227 public void setCheckboxesField2(List<String> checkboxesField2) {
1228 this.checkboxesField2 = checkboxesField2;
1229 }
1230
1231 public List<String> getCheckboxesField3() {
1232 return checkboxesField3;
1233 }
1234
1235 public void setCheckboxesField3(List<String> checkboxesField3) {
1236 this.checkboxesField3 = checkboxesField3;
1237 }
1238
1239 public List<String> getCheckboxesField4() {
1240 return checkboxesField4;
1241 }
1242
1243 public void setCheckboxesField4(List<String> checkboxesField4) {
1244 this.checkboxesField4 = checkboxesField4;
1245 }
1246
1247 public List<String> getMultiSelectField1() {
1248 return multiSelectField1;
1249 }
1250
1251 public void setMultiSelectField1(List<String> multiSelectField1) {
1252 this.multiSelectField1 = multiSelectField1;
1253 }
1254
1255 public List<String> getMultiSelectField2() {
1256 return multiSelectField2;
1257 }
1258
1259 public void setMultiSelectField2(List<String> multiSelectField2) {
1260 this.multiSelectField2 = multiSelectField2;
1261 }
1262
1263 public boolean isBooleanField1() {
1264 return booleanField1;
1265 }
1266
1267 public void setBooleanField1(boolean booleanField1) {
1268 this.booleanField1 = booleanField1;
1269 }
1270
1271 public boolean isBooleanField2() {
1272 return booleanField2;
1273 }
1274
1275 public void setBooleanField2(boolean booleanField2) {
1276 this.booleanField2 = booleanField2;
1277 }
1278
1279 public boolean isBooleanField3() {
1280 return booleanField3;
1281 }
1282
1283 public void setBooleanField3(boolean booleanField3) {
1284 this.booleanField3 = booleanField3;
1285 }
1286
1287 public void setSessionTimeoutInterval(int interval) {
1288 this.sessionTimeoutInterval = interval;
1289 }
1290
1291 public List<UITestObject> getMediumCollection1() {
1292 return mediumCollection1;
1293 }
1294
1295 public void setMediumCollection1(List<UITestObject> mediumCollection1) {
1296 this.mediumCollection1 = mediumCollection1;
1297 }
1298
1299 public List<UITestObject> getMediumCollection2() {
1300 return mediumCollection2;
1301 }
1302
1303 public void setMediumCollection2(List<UITestObject> mediumCollection2) {
1304 this.mediumCollection2 = mediumCollection2;
1305 }
1306
1307 public List<FileMeta> getFiles() {
1308 return files;
1309 }
1310
1311
1312 public void setFiles(List<FileMeta> files) {
1313 this.files = files;
1314 }
1315
1316 public List<FileWithDetails> getFiles2() {
1317 return files2;
1318 }
1319
1320 public void setFiles2(List<FileWithDetails> files2) {
1321 this.files2 = files2;
1322 }
1323
1324 public String getBackdoorId() {
1325 return backdoorId;
1326 }
1327
1328 public void setBackdoorId(String backdoorId) {
1329 this.backdoorId = backdoorId;
1330 }
1331
1332 public List<FileMetaBlob> getFiles(String propertyPath) {
1333 System.out.println("KradLabsForm, get files => " + propertyPath);
1334 List<FileMetaBlob> returnObjects = new ArrayList<FileMetaBlob>();
1335
1336
1337 FileMetaBlob fakeFile = new FileMetaBlob();
1338 fakeFile.setName(propertyPath + "_fakeName1.png");
1339 fakeFile.setSize(5000000L);
1340 fakeFile.setDateUploaded(new Date());
1341
1342 returnObjects.add(fakeFile);
1343
1344 fakeFile = new FileMetaBlob();
1345 fakeFile.setName(propertyPath + "_fakeName2.png");
1346 fakeFile.setSize(5000000L);
1347 fakeFile.setDateUploaded(new Date());
1348 returnObjects.add(fakeFile);
1349
1350 return returnObjects;
1351 }
1352 }