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