View Javadoc
1   /**
2    * Copyright 2005-2014 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.demo.uif.form;
17  
18  import java.io.Serializable;
19  import java.security.GeneralSecurityException;
20  import java.util.ArrayList;
21  import java.util.Arrays;
22  import java.util.Collections;
23  import java.util.List;
24  
25  import edu.sampleu.travel.dataobject.TravelAuthorizationDocument;
26  import edu.sampleu.travel.dataobject.TravelDestination;
27  
28  import org.apache.commons.lang.StringUtils;
29  import org.kuali.rice.core.api.CoreApiServiceLocator;
30  import org.kuali.rice.core.api.criteria.QueryByCriteria;
31  import org.kuali.rice.core.api.encryption.EncryptionService;
32  import org.kuali.rice.core.api.util.tree.Node;
33  import org.kuali.rice.core.api.util.tree.Tree;
34  import org.kuali.rice.kew.api.document.search.DocumentSearchCriteria;
35  import org.kuali.rice.kew.api.document.search.DocumentSearchResult;
36  import org.kuali.rice.kew.api.exception.WorkflowException;
37  import org.kuali.rice.kew.docsearch.service.DocumentSearchService;
38  import org.kuali.rice.kim.api.identity.Person;
39  import org.kuali.rice.kim.api.services.KimApiServiceLocator;
40  import org.kuali.rice.krad.demo.travel.dataobject.TravelAccount;
41  import org.kuali.rice.krad.document.Document;
42  import org.kuali.rice.krad.file.FileMetaBlob;
43  import org.kuali.rice.krad.service.KRADServiceLocator;
44  import org.kuali.rice.krad.service.KRADServiceLocatorWeb;
45  import org.kuali.rice.krad.web.form.UifFormBase;
46  
47  /**
48   * Basic form for the KRAD sample application
49   *
50   * @author Kuali Rice Team (rice.collab@kuali.org)
51   */
52  public class KradSampleAppForm extends UifFormBase implements Serializable {
53      private static final long serialVersionUID = -7525378097732916418L;
54      private String themeName;
55      private String exampleShown;
56      private String currentExampleIndex;
57  
58      //Fields separated by demonstration type below:
59  
60      //InputField
61      private String inputField1;
62      private String inputField2;
63      private String inputField3;
64      private String inputField4;
65      private String inputField5;
66      private String inputField6;
67      private String inputField7;
68      private String inputField8;
69      private String inputField9;
70      private String inputField10;
71      private String inputField11;
72      private String inputField12;
73      private String inputField13;
74      private String inputField14;
75      private String inputField15;
76      private String inputField16;
77      private String inputField17;
78      private String inputField18;
79      private String inputField19;
80      private String inputField20;
81      private String inputField21;
82      private String inputField22;
83      private String inputField23;
84      private String inputField24;
85      private String inputField25;
86      private String inputField26;
87      private String inputField27;
88      private String inputField28;
89      private String inputField29;
90      private String inputField30;
91  
92      private boolean booleanField1 = false;
93      private boolean booleanField2 = false;
94      private boolean booleanField3 = false;
95  
96      private List<String> checkboxesField1;
97      private List<String> checkboxesField2;
98      private List<String> checkboxesField3;
99      private List<String> checkboxesField4;
100     private List<String> checkboxesField5;
101 
102     private List<String> multiSelectField1;
103 
104     private String testPersonId;
105     private Person testPerson;
106 
107     private String testGroupId;
108 
109     private String testPrincipalId1 = "eric";
110     private String testPrincipalId2 = "erin";
111     private String testPrincipalId3= "test1";
112     private String testPrincipalId4= "edna";
113     private String testPrincipalName1 = "eric";
114     private String testPrincipalName2 = "erin";
115     private String testPrincipalName3 = "test1";
116     private String testPrincipalName4 = "edna";
117 
118     private String testGroupId1 = "2005";
119     private String testGroupId2 = "2001";
120     private String testGroupId3 = "2000";
121     private String testGroupId4 = "2005";
122     private String testGroupId5 = "2005";
123     private String testGroupNamespaceCode1 = "KUALI";
124     private String testGroupNamespaceCode2 = "KUALI";
125     private String testGroupNamespaceCode3 = "KR-WKFLW";
126     private String testGroupNamespaceCode4 = "KUALI";
127     private String testGroupNamespaceCode5 = "KUALI";
128     private String testGroupName1 = "Group1";
129     private String testGroupName2 = "TestGroup1";
130     private String testGroupName3 = "NotificationAdmin";
131     private String testGroupName4 = "Group1";
132     private String testGroupName5 = "Group1";
133 
134     private String testRoleId1 = "KRSAP10005";
135     private String testRoleId2 = "KR1000";
136     private String testRoleId3 = "67";
137     private String testRoleId4 = "KR1000";
138     private String testRoleId5 = "KR1000";
139     private String testRoleNamespaceCode1 = "KR-SAP";
140     private String testRoleNamespaceCode2 = "KUALI";
141     private String testRoleNamespaceCode3 = "KR-WKFLW";
142     private String testRoleNamespaceCode4 = "KUALI";
143     private String testRoleNamespaceCode5 = "KUALI";
144     private String testRoleName1 = "Travel Approver";
145     private String testRoleName2 = "GuestRole";
146     private String testRoleName3 = "Router";
147     private String testRoleName4 = "GuestRole";
148     private String testRoleName5 = "GuestRole";
149 
150 
151     private UITestObject uiTestObject1;
152     private UITestObject uiTestObject2;
153 
154     //DataField
155     private String dataField1 = "1001";
156     private String dataField2;
157     private String dataField3 = "My Book Title";
158     private String dataField4;
159     private String dataField5 = "Book Title";
160     private String dataField6 = "My Book Title";
161     private String dataField7 = "Option 3";
162     private String dataField8 = "My Second Book Title";
163     private String dataField9 = "Book Author";
164     private String dataField10 = "Book Category";
165     private String dataField11 = "My Third Book Title";
166     private String dataField12 = "A Book Title";
167 
168     //MessageField
169     private String messageField1;
170     private String richMessageField = "[color=green][b]Message[/b][/color]";
171 
172     // Collections
173     private List<UITestObject> collection1 = new ArrayList<UITestObject>();
174     private List<UITestObject> collection1_2 = new ArrayList<UITestObject>();
175     private List<UITestObject> collection1_3 = new ArrayList<UITestObject>();
176     private List<UITestObject> collection1_4 = new ArrayList<UITestObject>();
177     private List<UITestObject> collection1_5 = new ArrayList<UITestObject>();
178     private List<UITestObject> collection1_6 = new ArrayList<UITestObject>();
179     private List<UITestObject> collection1_7 = new ArrayList<UITestObject>();
180     private List<UITestObject> collection1_8 = new ArrayList<UITestObject>();
181     private List<UITestObject> collection1_9 = new ArrayList<UITestObject>();
182     private List<UITestObject> collection2 = new ArrayList<UITestObject>();
183     private List<UITestObject> collection3 = new ArrayList<UITestObject>();
184     private List<UITestObject> collection4 = new ArrayList<UITestObject>();
185     private List<UITestObject> collection5 = new ArrayList<UITestObject>();
186     private List<UITestObject> collection6 = new ArrayList<UITestObject>();
187     private List<UITestObject> collection7 = new ArrayList<UITestObject>();
188 
189     private List<UIInactivatableTestObject> inactivatableCollection = new ArrayList<UIInactivatableTestObject>();
190 
191     private List<UITestObject> groupedCollection1 = new ArrayList<UITestObject>();
192     private List<UITestObject> groupedCollection2 = new ArrayList<UITestObject>();
193     private List<UITestObject> groupedCollection3 = new ArrayList<UITestObject>();
194     private List<UITestObject> doubleGroupedCollection = new ArrayList<UITestObject>();
195 
196     private List<UITestObject> emptyCollection = new ArrayList<UITestObject>();
197     private List<UITestObject> emptyCollection1 = new ArrayList<UITestObject>();
198     private List<UITestObject> emptyCollection2 = new ArrayList<UITestObject>();
199 
200     private List<UITestObject> names = new ArrayList<UITestObject>();
201 
202     private Tree<String, String> tree1 = new Tree<String, String>();
203     private Tree<UITestObject, String> tree2 = new Tree<UITestObject, String>();
204 
205     private List<UITestObject> subList = new ArrayList<UITestObject>();
206 
207     private String fakeTotal = "123(server value)";
208 
209     // ProgressBar
210     private String barStep = "4";
211     private int barPercent = 40;
212 
213     //preset fields
214     private List<String> optionListSelection = Arrays.asList("2", "4");
215 
216     private String codeSample = ""
217             + "        if ((testPerson == null) || !StringUtils.equals(testPerson.getPrincipalId(), getTestPersonId())) {\n"
218             + "            testPerson = KimApiServiceLocator.getPersonService().getPerson(getTestPersonId());\n"
219             + "\n"
220             + "            if (testPerson == null) {\n"
221             + "                try {\n"
222             + "                    testPerson = KimApiServiceLocator.getPersonService().getPersonImplementationClass().newInstance();\n"
223             + "                } catch (Exception e) {\n"
224             + "                    throw new RuntimeException(e);\n"
225             + "                }\n"
226             + "            }\n"
227             + "        }";
228 
229     private String documentNumber;
230 
231     private List<TravelAccount> travelAccounts = new ArrayList<TravelAccount>();
232 
233     private List<FileMetaBlob> files = new ArrayList<FileMetaBlob>();
234     private List<FileMetaBlob> files1 = new ArrayList<FileMetaBlob>();
235     private List<FileMetaBlob> files2 = new ArrayList<FileMetaBlob>();
236     private List<FileMetaBlob> files3 = new ArrayList<FileMetaBlob>();
237 
238     public KradSampleAppForm() {
239         super();
240 
241         // added to test multiselect control
242         this.multiSelectField1 = new ArrayList();
243         this.multiSelectField1.add("2");
244         this.multiSelectField1.add("4");
245 
246         uiTestObject1 = new UITestObject("Foo", "FooBar", "FooBear", "FooRacket");
247         uiTestObject2 = new UITestObject("Foo", "FooBar2", "FooBear", "FooRacket2");
248 
249         messageField1 = "fruits";
250 
251         getCollection1().add(new UITestObject("13", "14", "15", "16", "17", "18"));
252         getCollection1().add(new UITestObject("19", "20", "21", "22", "23", "24"));
253         getCollection1().add(new UITestObject("7", "8", "9", "10", "11", "12"));
254         getCollection1().add(new UITestObject("1", "2", "3", "4", "5", "6"));
255         getCollection1().add(new UITestObject("13", "14", "15", "16", "17", "18"));
256         getCollection1().add(new UITestObject("19", "20", "21", "22", "23", "24"));
257         getCollection1().add(new UITestObject("213", "143", "151", "126", "137", "164"));
258         getCollection1().add(new UITestObject("133", "144", "155", "166", "177", "188"));
259         getCollection1().add(new UITestObject("25", "14", "15", "15", "17", "17"));
260         getCollection1().add(new UITestObject("1", "5", "5", "4", "6", "6"));
261         getCollection1().add(new UITestObject("5", "5", "5", "5", "5", "5"));
262         getCollection1().add(new UITestObject("5", "7", "3", "1", "9", "11"));
263         getCollection1().add(new UITestObject("13", "14", "15", "16", "17", "18"));
264         getCollection1().add(new UITestObject("19", "20", "21", "22", "23", "24"));
265         getCollection1().add(new UITestObject("7", "8", "9", "10", "11", "12"));
266         getCollection1().add(new UITestObject("1", "2", "3", "4", "5", "6"));
267         getCollection1().add(new UITestObject("13", "14", "15", "16", "17", "18"));
268         getCollection1().add(new UITestObject("19", "20", "21", "22", "23", "24"));
269         getCollection1().add(new UITestObject("213", "143", "151", "126", "137", "164"));
270         getCollection1().add(new UITestObject("133", "144", "155", "166", "177", "188"));
271         getCollection1().add(new UITestObject("25", "14", "15", "15", "17", "17"));
272         getCollection1().add(new UITestObject("1", "5", "5", "4", "6", "6"));
273         getCollection1().add(new UITestObject("5", "5", "5", "5", "5", "5"));
274         getCollection1().add(new UITestObject("5", "7", "3", "1", "9", "11"));
275         getCollection1().add(new UITestObject("13", "14", "15", "16", "17", "18"));
276         getCollection1().add(new UITestObject("19", "20", "21", "22", "23", "24"));
277         getCollection1().add(new UITestObject("7", "8", "9", "10", "11", "12"));
278         getCollection1().add(new UITestObject("1", "2", "3", "4", "5", "6"));
279         getCollection1().add(new UITestObject("13", "14", "15", "16", "17", "18"));
280         getCollection1().add(new UITestObject("19", "20", "21", "22", "23", "24"));
281         getCollection1().add(new UITestObject("213", "143", "151", "126", "137", "164"));
282         getCollection1().add(new UITestObject("133", "144", "155", "166", "177", "188"));
283         getCollection1().add(new UITestObject("25", "14", "15", "15", "17", "17"));
284         getCollection1().add(new UITestObject("1", "5", "5", "4", "6", "6"));
285         getCollection1().add(new UITestObject("5", "5", "5", "5", "5", "5"));
286         getCollection1().add(new UITestObject("5", "7", "3", "1", "9", "11"));
287 
288         // populate checkboxesField5 to test bindToForm
289         this.checkboxesField5 = new ArrayList<>();
290         for (UITestObject to : this.getCollection1()) {
291             this.checkboxesField5.add("check" + to.getField3());
292         }
293 
294         collection1_2.addAll(collection1);
295         collection1_3.addAll(collection1);
296         collection1_4.addAll(collection1);
297         collection1_5.addAll(collection1);
298         collection1_6.addAll(collection1);
299         collection1_7.addAll(collection1);
300         collection1_8.addAll(collection1);
301         collection1_9.addAll(collection1);
302 
303         getCollection2().add(new UITestObject("A", "B", "C", "D"));
304         getCollection2().add(new UITestObject("1", "2", "3", "4"));
305         getCollection2().add(new UITestObject("W", "X", "Y", "Z"));
306         collection2.add(new UITestObject("a", "b", "c", "d"));
307         collection2.add(new UITestObject("a", "s", "d", "f"));
308 
309         collection3.add(new UITestObject("A", "B", "C", "D"));
310         collection3.get(0).getSubList().add(new UITestObject("A", "B", "C", "D"));
311         collection3.get(0).getSubList().add(new UITestObject("1", "2", "3", "4"));
312         collection3.get(0).getSubList().add(new UITestObject("W", "X", "Y", "Z"));
313         collection3.add(new UITestObject("1", "2", "3", "4"));
314         collection3.get(1).getSubList().add(new UITestObject("A", "B", "C", "D"));
315         collection3.get(1).getSubList().add(new UITestObject("1", "2", "3", "4"));
316         collection3.add(new UITestObject("W", "X", "Y", "Z"));
317         collection3.get(2).getSubList().add(new UITestObject("W", "X", "Y", "Z"));
318 
319         collection4.add(new UITestObject("A", "B", "C", "D"));
320         collection4.get(0).getSubList().add(new UITestObject("A", "B", "C", "D"));
321         collection4.get(0).getSubList().add(new UITestObject("1", "2", "3", "4"));
322         collection4.get(0).getSubList().add(new UITestObject("W", "X", "Y", "Z"));
323         collection4.add(new UITestObject("1", "2", "3", "4"));
324         collection4.get(1).getSubList().add(new UITestObject("a", "b", "C", "D"));
325         collection4.get(1).getSubList().add(new UITestObject("a", "s", "D", "F"));
326 
327         //triple nesting
328         collection5.add(new UITestObject("a", "a", "a", "a"));
329         collection5.get(0).getSubList().add(new UITestObject("A", "B", "C", "D"));
330         collection5.get(0).getSubList().get(0).getSubList().add(new UITestObject("a3", "3", "3", "3"));
331         collection5.get(0).getSubList().get(0).getSubList().add(new UITestObject("a3", "3", "3", "3"));
332         collection5.get(0).getSubList().add(new UITestObject("1", "2", "3", "4"));
333         collection5.get(0).getSubList().get(1).getSubList().add(new UITestObject("b3", "3", "3", "3"));
334         collection5.get(0).getSubList().get(1).getSubList().add(new UITestObject("b3", "3", "3", "3"));
335         collection5.get(0).getSubList().get(1).getSubList().add(new UITestObject("b3", "3", "3", "3"));
336         collection5.add(new UITestObject("b", "b", "b", "b"));
337         collection5.get(1).getSubList().add(new UITestObject("a", "b", "C", "D"));
338         collection5.get(1).getSubList().get(0).getSubList().add(new UITestObject("a23", "3", "3", "3"));
339         collection5.get(1).getSubList().get(0).getSubList().add(new UITestObject("a23", "3", "3", "3"));
340         collection5.get(1).getSubList().add(new UITestObject("a", "s", "D", "F"));
341         collection5.get(1).getSubList().get(1).getSubList().add(new UITestObject("b23", "3", "3", "3"));
342         collection5.get(1).getSubList().get(1).getSubList().add(new UITestObject("b23", "3", "3", "3"));
343 
344         collection6.add(new UITestObject("1", "2", "3", "4"));
345         collection6.add(new UITestObject("5", "6", "7", "8"));
346         collection6.add(new UITestObject("9", "10", "11", "12"));
347 
348         collection7.add(new UITestObject("A", "B", "C", "D"));
349         collection7.get(0).getSubList().add(new UITestObject("A", "B", "C", "D"));
350         collection7.get(0).getSubList().add(new UITestObject("1", "2", "3", "7"));
351         collection7.get(0).getSubList().add(new UITestObject("W", "X", "Y", "Z"));
352         collection7.add(new UITestObject("1", "2", "3", "7"));
353         collection7.get(1).getSubList().add(new UITestObject("a", "b", "C", "D"));
354         collection7.get(1).getSubList().add(new UITestObject("a", "s", "D", "F"));
355 
356         inactivatableCollection.add(new UIInactivatableTestObject("A", "100", "200", "300", true));
357         inactivatableCollection.add(new UIInactivatableTestObject("B", "100", "200", "300", true));
358         inactivatableCollection.add(new UIInactivatableTestObject("b3", "3", "3", "3", false));
359         inactivatableCollection.add(new UIInactivatableTestObject("a", "b", "C", "D", true));
360         inactivatableCollection.add(new UIInactivatableTestObject("W", "X", "Y", "Z", false));
361         inactivatableCollection.add(new UIInactivatableTestObject("a", "s", "d", "f", true));
362         inactivatableCollection.add(new UIInactivatableTestObject("Fall", "2002", "AAA123", "3", false));
363 
364         // groupedCollection1
365         groupedCollection1.add(new UITestObject("A", "100", "200", "300"));
366         groupedCollection1.add(new UITestObject("A", "101", "200", "300"));
367         groupedCollection1.add(new UITestObject("A", "102", "200", "300"));
368         groupedCollection1.add(new UITestObject("A", "103", "200", "300"));
369         groupedCollection1.add(new UITestObject("A", "104", "200", "300"));
370         groupedCollection1.add(new UITestObject("B", "100", "200", "300"));
371         groupedCollection1.add(new UITestObject("B", "101", "200", "300"));
372         groupedCollection1.add(new UITestObject("B", "102", "200", "300"));
373         groupedCollection1.add(new UITestObject("C", "100", "200", "300"));
374         groupedCollection1.add(new UITestObject("C", "101", "200", "300"));
375         groupedCollection1.add(new UITestObject("C", "102", "200", "300"));
376         groupedCollection1.add(new UITestObject("C", "103", "200", "300"));
377 
378         // groupedCollection2
379         groupedCollection2.addAll(groupedCollection1);
380         groupedCollection2.add(new UITestObject("D", "100", "200", "300"));
381         groupedCollection2.add(new UITestObject("D", "101", "200", "300"));
382         groupedCollection2.add(new UITestObject("D", "102", "200", "300"));
383         groupedCollection2.add(new UITestObject("D", "103", "200", "300"));
384         groupedCollection2.add(new UITestObject("D", "100", "200", "300"));
385         groupedCollection2.add(new UITestObject("D", "101", "200", "300"));
386         groupedCollection2.add(new UITestObject("D", "102", "200", "300"));
387         groupedCollection2.add(new UITestObject("D", "103", "200", "300"));
388         groupedCollection2.add(new UITestObject("D", "100", "200", "300"));
389         groupedCollection2.add(new UITestObject("D", "101", "200", "300"));
390         groupedCollection2.add(new UITestObject("D", "102", "200", "300"));
391         groupedCollection2.add(new UITestObject("D", "103", "200", "300"));
392         groupedCollection2.add(new UITestObject("D", "100", "200", "300"));
393         groupedCollection2.add(new UITestObject("D", "101", "200", "300"));
394         groupedCollection2.add(new UITestObject("D", "102", "200", "300"));
395         groupedCollection2.add(new UITestObject("D", "103", "200", "300"));
396         groupedCollection2.add(new UITestObject("D", "100", "200", "300"));
397         groupedCollection2.add(new UITestObject("D", "101", "200", "300"));
398         groupedCollection2.add(new UITestObject("D", "102", "200", "300"));
399         groupedCollection2.add(new UITestObject("D", "103", "200", "300"));
400         groupedCollection2.add(new UITestObject("D", "100", "200", "300"));
401         groupedCollection2.add(new UITestObject("D", "101", "200", "300"));
402         groupedCollection2.add(new UITestObject("D", "102", "200", "300"));
403         groupedCollection2.add(new UITestObject("D", "103", "200", "300"));
404 
405         // groupedCollection3
406         groupedCollection3.addAll(groupedCollection2);
407 
408         // doubleGroupedCollection
409         doubleGroupedCollection.add(new UITestObject("Fall", "2001", "AAA123", "2"));
410         doubleGroupedCollection.add(new UITestObject("Fall", "2001", "BBB123", "3"));
411         doubleGroupedCollection.add(new UITestObject("Fall", "2001", "CCC123", "4"));
412         doubleGroupedCollection.add(new UITestObject("Fall", "2001", "DDD123", "3"));
413         doubleGroupedCollection.add(new UITestObject("Fall", "2002", "AAA123", "3"));
414         doubleGroupedCollection.add(new UITestObject("Fall", "2002", "BBB123", "2"));
415         doubleGroupedCollection.add(new UITestObject("Fall", "2002", "CCC123", "3"));
416         doubleGroupedCollection.add(new UITestObject("Fall", "2003", "AAA123", "3"));
417         doubleGroupedCollection.add(new UITestObject("Fall", "2003", "CCC123", "3"));
418         doubleGroupedCollection.add(new UITestObject("Spring", "2001", "AAA123", "3"));
419         doubleGroupedCollection.add(new UITestObject("Spring", "2001", "BBB123", "3"));
420         doubleGroupedCollection.add(new UITestObject("Spring", "2001", "CCC123", "3"));
421         doubleGroupedCollection.add(new UITestObject("Spring", "2002", "AAA123", "4"));
422         doubleGroupedCollection.add(new UITestObject("Spring", "2002", "BBB123", "4"));
423         doubleGroupedCollection.add(new UITestObject("Spring", "2002", "CCC123", "2"));
424         doubleGroupedCollection.add(new UITestObject("Spring", "2003", "AAA123", "4"));
425         doubleGroupedCollection.add(new UITestObject("Spring", "2003", "BBB123", "3"));
426         doubleGroupedCollection.add(new UITestObject("Spring", "2003", "CCC123", "3"));
427         doubleGroupedCollection.add(new UITestObject("Spring", "2003", "DDD123", "2"));
428 
429         names.add(new UITestObject("1", "Jack", "Buck", ""));
430         names.add(new UITestObject("2", "Joe", "", ""));
431         names.add(new UITestObject("3", "John", "Wayne", ""));
432         names.add(new UITestObject("4", "Jim", "", ""));
433 
434         // build tree1 variable
435         { // scope for name hiding purposes
436             Node<String, String> item1 = new Node<String, String>("Item 1", "Item 1");
437             item1.addChild(new Node<String, String>("SubItem A", "SubItem A"));
438             item1.addChild(new Node<String, String>("SubItem B", "SubItem B"));
439 
440             Node<String, String> item2 = new Node<String, String>("Item 2", "Item 2");
441             item2.addChild(new Node<String, String>("SubItem A", "SubItem A"));
442             Node<String, String> sub2B = new Node<String, String>("SubItem B", "SubItem B");
443             sub2B.addChild(new Node<String, String>("Item B-1", "Item B-1"));
444             sub2B.addChild(new Node<String, String>("Item B-2", "Item B-2"));
445             sub2B.addChild(new Node<String, String>("Item B-3", "Item B-3"));
446             item2.addChild(sub2B);
447             item2.addChild(new Node<String, String>("SubItem C", "SubItem C"));
448 
449             Node<String, String> item3 = new Node<String, String>("Item 3", "Item 3");
450             item3.addChild(new Node<String, String>("SubItem A", "SubItem A"));
451             item3.addChild(new Node<String, String>("SubItem B", "SubItem B"));
452             item3.addChild(new Node<String, String>("SubItem C", "SubItem C"));
453             item3.addChild(new Node<String, String>("SubItem D", "SubItem D"));
454 
455             Node<String, String> root = new Node<String, String>("Root", "Root");
456             root.addChild(item1);
457             root.addChild(item2);
458             root.addChild(item3);
459 
460             tree1.setRootElement(root);
461         }
462 
463         // build tree2 variable
464         { // scope for name hiding purposes
465             Node<UITestObject, String> item1 = new Node<UITestObject, String>(new UITestObject("1-A", "1-B", "1-C", "1-D"), "Item 1");
466             item1.addChild(new Node<UITestObject, String>(new UITestObject("1SA-A", "1SA-B", "1SA-C", "1SA-D"), "SubItem A"));
467             item1.addChild(new Node<UITestObject, String>(new UITestObject("1SB-A", "1SB-B", "1SB-C", "1SB-D"), "SubItem B"));
468 
469             Node<UITestObject, String> item2 = new Node<UITestObject, String>(new UITestObject("2-A", "2-B", "2-C", "2-D"), "Item 2");
470             item2.addChild(new Node<UITestObject, String>(new UITestObject("SA-a", "SA-b", "SA-c", "SA-d"), "SubItem A"));
471             Node<UITestObject, String> sub2B = new Node<UITestObject, String>(new UITestObject("SB-a", "SB-b", "SB-c", "SB-d"), "SubItem B");
472             sub2B.addChild(new Node<UITestObject, String>(new UITestObject("AA", "BB", "CC", "DD"), "Item B-1"));
473             sub2B.addChild(new Node<UITestObject, String>(new UITestObject("Aa", "Bb", "Cc", "Dd"), "Item B-2"));
474             sub2B.addChild(new Node<UITestObject, String>(new UITestObject("aA", "bB", "cC", "dD"), "Item B-3"));
475             item2.addChild(sub2B);
476             item2.addChild(new Node<UITestObject, String>(new UITestObject("SC-a", "SC-b", "SC-c", "SC-d"), "SubItem C"));
477 
478             Node<UITestObject, String> item3 = new Node<UITestObject, String>(new UITestObject("3-A", "3-B", "3-C", "3-D"), "Item 3");
479             item3.addChild(new Node<UITestObject, String>(new UITestObject("A", "B", "C", "D"), "SubItem A"));
480             item3.addChild(new Node<UITestObject, String>(new UITestObject("1", "2", "3", "4"), "SubItem B"));
481             item3.addChild(new Node<UITestObject, String>(new UITestObject("w", "x", "y", "z"), "SubItem C"));
482             item3.addChild(new Node<UITestObject, String>(new UITestObject("!", "@", "#", "$"), "SubItem D"));
483 
484             Node<UITestObject, String> root = new Node<UITestObject, String>(new UITestObject("foo", "bar", "baz", "roo"), "Root");
485             root.addChild(item1);
486             root.addChild(item2);
487             root.addChild(item3);
488 
489             tree2.setRootElement(root);
490         }
491         
492         List<DocumentSearchResult> results = Collections.emptyList();
493         try {
494 			DocumentSearchCriteria.Builder builder = DocumentSearchCriteria.Builder.create();
495 			builder.setDocumentTypeName("TravelAuthorization");
496             DocumentSearchService documentSearchService = org.kuali.rice.kew.service.KEWServiceLocator.getDocumentSearchService();
497             if (documentSearchService != null) {
498                 results = documentSearchService.lookupDocuments(null, builder.build()).getSearchResults();
499             }
500         } catch (NoClassDefFoundError e) {
501         	results = Collections.emptyList();
502         }
503 
504         if (results.isEmpty()) {
505         	if (KRADServiceLocatorWeb.getDocumentService() != null) {
506 	            try {
507 	                Document newDocument = KRADServiceLocatorWeb.getDocumentService().getNewDocument(TravelAuthorizationDocument.class);
508 	                newDocument.getDocumentHeader().setDocumentDescription("Test");
509 	
510 	                TravelAuthorizationDocument newTravelAuthorizationDocument = (TravelAuthorizationDocument) newDocument;
511 	                newTravelAuthorizationDocument.setCellPhoneNumber("555-555-5555");
512 	
513 	                QueryByCriteria query = QueryByCriteria.Builder.create().build();
514 	                List<TravelDestination> travelDestinations = KRADServiceLocator.getDataObjectService().findMatching(TravelDestination.class, query).getResults();
515 	                if (!travelDestinations.isEmpty()) {
516 	                    newTravelAuthorizationDocument.setTripDestinationId(travelDestinations.get(0).getTravelDestinationId());
517 	                }
518 
519 	                Document document = KRADServiceLocatorWeb.getDocumentService().saveDocument(newTravelAuthorizationDocument);
520 	                setDocumentNumber(document.getDocumentNumber());
521 	            } catch (WorkflowException we) {
522 	                // ignore
523 	            }
524         	}
525         } else {
526             DocumentSearchResult result = results.get(0);
527             setDocumentNumber(result.getDocument().getDocumentId());
528         }
529     }
530 
531     /**
532      * Theme by name (id) currently used for the component library view
533      *
534      * @return
535      */
536     public String getThemeName() {
537         return themeName;
538     }
539 
540     /**
541      * @param themeName
542      */
543     public void setThemeName(String themeName) {
544         this.themeName = themeName;
545     }
546 
547     /**
548      * Backing property for the large example dropdown since on is required.  Stores dropdown selection
549      *
550      * @return
551      */
552     public String getExampleShown() {
553         return exampleShown;
554     }
555 
556     /**
557      * Large example selection
558      *
559      * @param exampleShown
560      */
561     public void setExampleShown(String exampleShown) {
562         this.exampleShown = exampleShown;
563     }
564 
565     /**
566      * Index of the current example, used to reselect between submit actions
567      *
568      * @return
569      */
570     public String getCurrentExampleIndex() {
571         return currentExampleIndex;
572     }
573 
574     /**
575      * Index of the current example
576      *
577      * @param currentExampleIndex
578      */
579     public void setCurrentExampleIndex(String currentExampleIndex) {
580         this.currentExampleIndex = currentExampleIndex;
581     }
582 
583     /**
584      * Below are basic getters and setters for this data object - no javadoc needed *
585      */
586 
587     public String getDataField1() {
588         return dataField1;
589     }
590 
591     public void setDataField1(String dataField1) {
592         this.dataField1 = dataField1;
593     }
594 
595     public String getDataField2() {
596         return dataField2;
597     }
598 
599     public void setDataField2(String dataField2) {
600         this.dataField2 = dataField2;
601     }
602 
603     public String getDataField3() {
604         return dataField3;
605     }
606 
607     public void setDataField3(String dataField3) {
608         this.dataField3 = dataField3;
609     }
610 
611     public String getDataField4() {
612         return dataField4;
613     }
614 
615     public void setDataField4(String dataField4) {
616         this.dataField4 = dataField4;
617     }
618 
619     public String getDataField5() {
620         return dataField5;
621     }
622 
623     public void setDataField5(String dataField5) {
624         this.dataField5 = dataField5;
625     }
626 
627     public String getDataField6() {
628         return dataField6;
629     }
630 
631     public void setDataField6(String dataField6) {
632         this.dataField6 = dataField6;
633     }
634 
635     public String getDataField7() {
636         return dataField7;
637     }
638 
639     public void setDataField7(String dataField7) {
640         this.dataField7 = dataField7;
641     }
642 
643     public String getDataField8() {
644         return dataField8;
645     }
646 
647     public void setDataField8(String dataField8) {
648         this.dataField8 = dataField8;
649     }
650 
651     public String getDataField9() {
652         return dataField9;
653     }
654 
655     public void setDataField9(String dataField9) {
656         this.dataField9 = dataField9;
657     }
658 
659     public String getDataField10() {
660         return dataField10;
661     }
662 
663     public void setDataField10(String dataField10) {
664         this.dataField10 = dataField10;
665     }
666 
667     public String getDataField11() {
668         return dataField11;
669     }
670 
671     public void setDataField11(String dataField11) {
672         this.dataField11 = dataField11;
673     }
674 
675     public String getDataField12() {
676         return dataField12;
677     }
678 
679     public void setDataField12(String dataField12) {
680         this.dataField12 = dataField12;
681     }
682 
683     public String getInputField1() {
684         return inputField1;
685     }
686 
687     public void setInputField1(String inputField1) {
688         this.inputField1 = inputField1;
689     }
690 
691     public String getInputField2() {
692         return inputField2;
693     }
694 
695     public void setInputField2(String inputField2) {
696         this.inputField2 = inputField2;
697     }
698 
699     public String getInputField3() {
700         return inputField3;
701     }
702 
703     public void setInputField3(String inputField3) {
704         this.inputField3 = inputField3;
705     }
706 
707     public String getInputField4() {
708         return inputField4;
709     }
710 
711     public void setInputField4(String inputField4) {
712         this.inputField4 = inputField4;
713     }
714 
715     public String getInputField5() {
716         return inputField5;
717     }
718 
719     public void setInputField5(String inputField5) {
720         this.inputField5 = inputField5;
721     }
722 
723     public String getInputField6() {
724         return inputField6;
725     }
726 
727     public void setInputField6(String inputField6) {
728         this.inputField6 = inputField6;
729     }
730 
731     public String getInputField7() {
732         return inputField7;
733     }
734 
735     public void setInputField7(String inputField7) {
736         this.inputField7 = inputField7;
737     }
738 
739     public String getInputField8() {
740         return inputField8;
741     }
742 
743     public void setInputField8(String inputField8) {
744         this.inputField8 = inputField8;
745     }
746 
747     public String getInputField9() {
748         return inputField9;
749     }
750 
751     public void setInputField9(String inputField9) {
752         this.inputField9 = inputField9;
753     }
754 
755     public String getInputField10() {
756         return inputField10;
757     }
758 
759     public void setInputField10(String inputField10) {
760         this.inputField10 = inputField10;
761     }
762 
763     public String getInputField11() {
764         return inputField11;
765     }
766 
767     public void setInputField11(String inputField11) {
768         this.inputField11 = inputField11;
769     }
770 
771     public String getInputField12() {
772         return inputField12;
773     }
774 
775     public void setInputField12(String inputField12) {
776         this.inputField12 = inputField12;
777     }
778 
779     public String getInputField13() {
780         return inputField13;
781     }
782 
783     public void setInputField13(String inputField13) {
784         this.inputField13 = inputField13;
785     }
786 
787     public String getInputField14() {
788         return inputField14;
789     }
790 
791     public void setInputField14(String inputField14) {
792         this.inputField14 = inputField14;
793     }
794 
795     public String getInputField15() {
796         return inputField15;
797     }
798 
799     public void setInputField15(String inputField15) {
800         this.inputField15 = inputField15;
801     }
802 
803     public String getInputField16() {
804         return inputField16;
805     }
806 
807     public void setInputField16(String inputField16) {
808         this.inputField16 = inputField16;
809     }
810 
811     public String getInputField17() {
812         return inputField17;
813     }
814 
815     public void setInputField17(String inputField17) {
816         this.inputField17 = inputField17;
817     }
818 
819     public String getInputField18() {
820         return inputField18;
821     }
822 
823     public void setInputField18(String inputField18) {
824         this.inputField18 = inputField18;
825     }
826 
827     public String getInputField19() {
828         return inputField19;
829     }
830 
831     public void setInputField19(String inputField19) {
832         this.inputField19 = inputField19;
833     }
834 
835     public String getInputField20() {
836         return inputField20;
837     }
838 
839     public void setInputField20(String inputField20) {
840         this.inputField20 = inputField20;
841     }
842 
843     public String getInputField21() {
844         return inputField21;
845     }
846 
847     public void setInputField21(String inputField21) {
848         this.inputField21 = inputField21;
849     }
850 
851     public String getInputField22() {
852         return inputField22;
853     }
854 
855     public void setInputField22(String inputField22) {
856         this.inputField22 = inputField22;
857     }
858 
859     public String getInputField23() {
860         return inputField23;
861     }
862 
863     public void setInputField23(String inputField23) {
864         this.inputField23 = inputField23;
865     }
866 
867     public String getInputField24() {
868         return inputField24;
869     }
870 
871     public void setInputField24(String inputField24) {
872         this.inputField24 = inputField24;
873     }
874 
875     public String getInputField25() {
876         return inputField25;
877     }
878 
879     public void setInputField25(String inputField25) {
880         this.inputField25 = inputField25;
881     }
882 
883     public String getInputField26() {
884         return inputField26;
885     }
886 
887     public void setInputField26(String inputField26) {
888         this.inputField26 = inputField26;
889     }
890 
891     public String getInputField27() {
892         return inputField27;
893     }
894 
895     public void setInputField27(String inputField27) {
896         this.inputField27 = inputField27;
897     }
898 
899     public String getInputField28() {
900         return inputField28;
901     }
902 
903     public void setInputField28(String inputField28) {
904         this.inputField28 = inputField28;
905     }
906 
907     public String getInputField29() {
908         return inputField29;
909     }
910 
911     public void setInputField29(String inputField29) {
912         this.inputField29 = inputField29;
913     }
914 
915     public String getInputField30() {
916         return inputField30;
917     }
918 
919     public void setInputField30(String inputField30) {
920         this.inputField30 = inputField30;
921     }
922 
923     public String getMessageField1() {
924         return messageField1;
925     }
926 
927     public void setMessageField1(String messageField1) {
928         this.messageField1 = messageField1;
929     }
930 
931     public String getTestPersonId() {
932         return testPersonId;
933     }
934 
935     public void setTestPersonId(String testPersonId) {
936         this.testPersonId = testPersonId;
937     }
938 
939     public Person getTestPerson() {
940         if ((testPerson == null) || !StringUtils.equals(testPerson.getPrincipalId(), getTestPersonId())) {
941             testPerson = KimApiServiceLocator.getPersonService().getPerson(getTestPersonId());
942 
943             if (testPerson == null) {
944                 try {
945                     testPerson = KimApiServiceLocator.getPersonService().getPersonImplementationClass().newInstance();
946                 } catch (Exception e) {
947                     throw new RuntimeException(e);
948                 }
949             }
950         }
951 
952         return testPerson;
953     }
954 
955     public void setTestPerson(Person testPerson) {
956         this.testPerson = testPerson;
957     }
958 
959     public String getTestGroupId() {
960         return testGroupId;
961     }
962 
963     public void setTestGroupId(String testGroupId) {
964         this.testGroupId = testGroupId;
965     }
966 
967     public String getTestPrincipalId1() {
968         return testPrincipalId1;
969     }
970 
971     public void setTestPrincipalId1(String testPrincipalId1) {
972         this.testPrincipalId1 = testPrincipalId1;
973     }
974 
975     public String getTestPrincipalId2() {
976         return testPrincipalId2;
977     }
978 
979     public void setTestPrincipalId2(String testPrincipalId2) {
980         this.testPrincipalId2 = testPrincipalId2;
981     }
982 
983     public String getTestPrincipalId3() {
984         return testPrincipalId3;
985     }
986 
987     public void setTestPrincipalId3(String testPrincipalId3) {
988         this.testPrincipalId3 = testPrincipalId3;
989     }
990 
991     public String getTestPrincipalId4() {
992         return testPrincipalId4;
993     }
994 
995     public void setTestPrincipalId4(String testPrincipalId4) {
996         this.testPrincipalId4 = testPrincipalId4;
997     }
998 
999     public String getTestPrincipalName1() {
1000         return testPrincipalName1;
1001     }
1002 
1003     public void setTestPrincipalName1(String testPrincipalName1) {
1004         this.testPrincipalName1 = testPrincipalName1;
1005     }
1006 
1007     public String getTestPrincipalName2() {
1008         return testPrincipalName2;
1009     }
1010 
1011     public void setTestPrincipalName2(String testPrincipalName2) {
1012         this.testPrincipalName2 = testPrincipalName2;
1013     }
1014 
1015     public String getTestPrincipalName3() {
1016         return testPrincipalName3;
1017     }
1018 
1019     public void setTestPrincipalName3(String testPrincipalName3) {
1020         this.testPrincipalName3 = testPrincipalName3;
1021     }
1022 
1023     public String getTestPrincipalName4() {
1024         return testPrincipalName4;
1025     }
1026 
1027     public void setTestPrincipalName4(String testPrincipalName4) {
1028         this.testPrincipalName4 = testPrincipalName4;
1029     }
1030 
1031     public String getTestGroupId1() {
1032         return testGroupId1;
1033     }
1034 
1035     public void setTestGroupId1(String testGroupId1) {
1036         this.testGroupId1 = testGroupId1;
1037     }
1038 
1039     public String getTestGroupId2() {
1040         return testGroupId2;
1041     }
1042 
1043     public void setTestGroupId2(String testGroupId2) {
1044         this.testGroupId2 = testGroupId2;
1045     }
1046 
1047     public String getTestGroupId3() {
1048         return testGroupId3;
1049     }
1050 
1051     public void setTestGroupId3(String testGroupId3) {
1052         this.testGroupId3 = testGroupId3;
1053     }
1054 
1055     public String getTestGroupId4() {
1056         return testGroupId4;
1057     }
1058 
1059     public void setTestGroupId4(String testGroupId4) {
1060         this.testGroupId4 = testGroupId4;
1061     }
1062 
1063     public String getTestGroupId5() {
1064         return testGroupId5;
1065     }
1066 
1067     public void setTestGroupId5(String testGroupId5) {
1068         this.testGroupId5 = testGroupId5;
1069     }
1070 
1071     public String getTestGroupNamespaceCode1() {
1072         return testGroupNamespaceCode1;
1073     }
1074 
1075     public void setTestGroupNamespaceCode1(String testGroupNamespaceCode1) {
1076         this.testGroupNamespaceCode1 = testGroupNamespaceCode1;
1077     }
1078 
1079     public String getTestGroupNamespaceCode2() {
1080         return testGroupNamespaceCode2;
1081     }
1082 
1083     public void setTestGroupNamespaceCode2(String testGroupNamespaceCode2) {
1084         this.testGroupNamespaceCode2 = testGroupNamespaceCode2;
1085     }
1086 
1087     public String getTestGroupNamespaceCode3() {
1088         return testGroupNamespaceCode3;
1089     }
1090 
1091     public void setTestGroupNamespaceCode3(String testGroupNamespaceCode3) {
1092         this.testGroupNamespaceCode3 = testGroupNamespaceCode3;
1093     }
1094 
1095     public String getTestGroupNamespaceCode4() {
1096         return testGroupNamespaceCode4;
1097     }
1098 
1099     public void setTestGroupNamespaceCode4(String testGroupNamespaceCode4) {
1100         this.testGroupNamespaceCode4 = testGroupNamespaceCode4;
1101     }
1102 
1103     public String getTestGroupNamespaceCode5() {
1104         return testGroupNamespaceCode5;
1105     }
1106 
1107     public void setTestGroupNamespaceCode5(String testGroupNamespaceCode5) {
1108         this.testGroupNamespaceCode5 = testGroupNamespaceCode5;
1109     }
1110 
1111     public String getTestGroupName1() {
1112         return testGroupName1;
1113     }
1114 
1115     public void setTestGroupName1(String testGroupName1) {
1116         this.testGroupName1 = testGroupName1;
1117     }
1118 
1119     public String getTestGroupName2() {
1120         return testGroupName2;
1121     }
1122 
1123     public void setTestGroupName2(String testGroupName2) {
1124         this.testGroupName2 = testGroupName2;
1125     }
1126 
1127     public String getTestGroupName3() {
1128         return testGroupName3;
1129     }
1130 
1131     public void setTestGroupName3(String testGroupName3) {
1132         this.testGroupName3 = testGroupName3;
1133     }
1134 
1135     public String getTestGroupName4() {
1136         return testGroupName4;
1137     }
1138 
1139     public void setTestGroupName4(String testGroupName4) {
1140         this.testGroupName4 = testGroupName4;
1141     }
1142 
1143     public String getTestGroupName5() {
1144         return testGroupName5;
1145     }
1146 
1147     public void setTestGroupName5(String testGroupName5) {
1148         this.testGroupName5 = testGroupName5;
1149     }
1150 
1151     public String getTestRoleId1() {
1152         return testRoleId1;
1153     }
1154 
1155     public void setTestRoleId1(String testRoleId1) {
1156         this.testRoleId1 = testRoleId1;
1157     }
1158 
1159     public String getTestRoleId2() {
1160         return testRoleId2;
1161     }
1162 
1163     public void setTestRoleId2(String testRoleId2) {
1164         this.testRoleId2 = testRoleId2;
1165     }
1166 
1167     public String getTestRoleId3() {
1168         return testRoleId3;
1169     }
1170 
1171     public void setTestRoleId3(String testRoleId3) {
1172         this.testRoleId3 = testRoleId3;
1173     }
1174 
1175     public String getTestRoleId4() {
1176         return testRoleId4;
1177     }
1178 
1179     public void setTestRoleId4(String testRoleId4) {
1180         this.testRoleId4 = testRoleId4;
1181     }
1182 
1183     public String getTestRoleId5() {
1184         return testRoleId5;
1185     }
1186 
1187     public void setTestRoleId5(String testRoleId5) {
1188         this.testRoleId5 = testRoleId5;
1189     }
1190 
1191     public String getTestRoleNamespaceCode1() {
1192         return testRoleNamespaceCode1;
1193     }
1194 
1195     public void setTestRoleNamespaceCode1(String testRoleNamespaceCode1) {
1196         this.testRoleNamespaceCode1 = testRoleNamespaceCode1;
1197     }
1198 
1199     public String getTestRoleNamespaceCode2() {
1200         return testRoleNamespaceCode2;
1201     }
1202 
1203     public void setTestRoleNamespaceCode2(String testRoleNamespaceCode2) {
1204         this.testRoleNamespaceCode2 = testRoleNamespaceCode2;
1205     }
1206 
1207     public String getTestRoleNamespaceCode3() {
1208         return testRoleNamespaceCode3;
1209     }
1210 
1211     public void setTestRoleNamespaceCode3(String testRoleNamespaceCode3) {
1212         this.testRoleNamespaceCode3 = testRoleNamespaceCode3;
1213     }
1214 
1215     public String getTestRoleNamespaceCode4() {
1216         return testRoleNamespaceCode4;
1217     }
1218 
1219     public void setTestRoleNamespaceCode4(String testRoleNamespaceCode4) {
1220         this.testRoleNamespaceCode4 = testRoleNamespaceCode4;
1221     }
1222 
1223     public String getTestRoleNamespaceCode5() {
1224         return testRoleNamespaceCode5;
1225     }
1226 
1227     public void setTestRoleNamespaceCode5(String testRoleNamespaceCode5) {
1228         this.testRoleNamespaceCode5 = testRoleNamespaceCode5;
1229     }
1230 
1231     public String getTestRoleName1() {
1232         return testRoleName1;
1233     }
1234 
1235     public void setTestRoleName1(String testRoleName1) {
1236         this.testRoleName1 = testRoleName1;
1237     }
1238 
1239     public String getTestRoleName2() {
1240         return testRoleName2;
1241     }
1242 
1243     public void setTestRoleName2(String testRoleName2) {
1244         this.testRoleName2 = testRoleName2;
1245     }
1246 
1247     public String getTestRoleName3() {
1248         return testRoleName3;
1249     }
1250 
1251     public void setTestRoleName3(String testRoleName3) {
1252         this.testRoleName3 = testRoleName3;
1253     }
1254 
1255     public String getTestRoleName4() {
1256         return testRoleName4;
1257     }
1258 
1259     public void setTestRoleName4(String testRoleName4) {
1260         this.testRoleName4 = testRoleName4;
1261     }
1262 
1263     public String getTestRoleName5() {
1264         return testRoleName5;
1265     }
1266 
1267     public void setTestRoleName5(String testRoleName5) {
1268         this.testRoleName5 = testRoleName5;
1269     }
1270 
1271     public List<UITestObject> getCollection1() {
1272         return collection1;
1273     }
1274 
1275     public void setCollection1(List<UITestObject> collection1) {
1276         this.collection1 = collection1;
1277     }
1278 
1279     public List<UITestObject> getCollection1_2() {
1280         return collection1_2;
1281     }
1282 
1283     public void setCollection1_2(List<UITestObject> collection1_2) {
1284         this.collection1_2 = collection1_2;
1285     }
1286 
1287     public List<UITestObject> getCollection1_3() {
1288         return collection1_3;
1289     }
1290 
1291     public void setCollection1_3(List<UITestObject> collection1_3) {
1292         this.collection1_3 = collection1_3;
1293     }
1294 
1295     public List<UITestObject> getCollection1_4() {
1296         return collection1_4;
1297     }
1298 
1299     public void setCollection1_4(List<UITestObject> collection1_4) {
1300         this.collection1_4 = collection1_4;
1301     }
1302 
1303     public List<UITestObject> getCollection1_5() {
1304         return collection1_5;
1305     }
1306 
1307     public void setCollection1_5(List<UITestObject> collection1_5) {
1308         this.collection1_5 = collection1_5;
1309     }
1310 
1311     public List<UITestObject> getCollection1_6() {
1312         return collection1_6;
1313     }
1314 
1315     public void setCollection1_6(List<UITestObject> collection1_6) {
1316         this.collection1_6 = collection1_6;
1317     }
1318 
1319     public List<UITestObject> getCollection1_7() {
1320         return collection1_7;
1321     }
1322 
1323     public void setCollection1_7(List<UITestObject> collection1_7) {
1324         this.collection1_7 = collection1_7;
1325     }
1326 
1327     public List<UITestObject> getCollection1_8() {
1328         return collection1_8;
1329     }
1330 
1331     public void setCollection1_8(List<UITestObject> collection1_8) {
1332         this.collection1_8 = collection1_8;
1333     }
1334 
1335     public List<UITestObject> getCollection1_9() {
1336         return collection1_9;
1337     }
1338 
1339     public void setCollection1_9(List<UITestObject> collection1_9) {
1340         this.collection1_9 = collection1_9;
1341     }
1342 
1343     public List<UITestObject> getCollection2() {
1344         return collection2;
1345     }
1346 
1347     public void setCollection2(List<UITestObject> collection2) {
1348         this.collection2 = collection2;
1349     }
1350 
1351     public List<UITestObject> getCollection3() {
1352         return collection3;
1353     }
1354 
1355     public void setCollection3(List<UITestObject> collection3) {
1356         this.collection3 = collection3;
1357     }
1358 
1359     public List<UITestObject> getCollection4() {
1360         return collection4;
1361     }
1362 
1363     public void setCollection4(List<UITestObject> collection4) {
1364         this.collection4 = collection4;
1365     }
1366 
1367     public List<UITestObject> getCollection5() {
1368         return collection5;
1369     }
1370 
1371     public void setCollection5(List<UITestObject> collection5) {
1372         this.collection5 = collection5;
1373     }
1374 
1375     public List<UITestObject> getCollection6() {
1376         return collection6;
1377     }
1378 
1379     public void setCollection6(List<UITestObject> collection6) {
1380         this.collection6 = collection6;
1381     }
1382 
1383     public List<UITestObject> getCollection7() {
1384         return collection7;
1385     }
1386 
1387     public void setCollection7(List<UITestObject> collection7) {
1388         this.collection7 = collection7;
1389     }
1390 
1391     public List<UIInactivatableTestObject> getInactivatableCollection() {
1392         return inactivatableCollection;
1393     }
1394 
1395     public void setInactivatableCollection(List<UIInactivatableTestObject> inactivatableCollection) {
1396         this.inactivatableCollection = inactivatableCollection;
1397     }
1398 
1399     public List<UITestObject> getGroupedCollection1() {
1400         return groupedCollection1;
1401     }
1402 
1403     public void setGroupedCollection1(List<UITestObject> groupedCollection1) {
1404         this.groupedCollection1 = groupedCollection1;
1405     }
1406 
1407     public List<UITestObject> getGroupedCollection2() {
1408         return groupedCollection2;
1409     }
1410 
1411     public void setGroupedCollection2(List<UITestObject> groupedCollection2) {
1412         this.groupedCollection2 = groupedCollection2;
1413     }
1414 
1415     public List<UITestObject> getGroupedCollection3() {
1416         return groupedCollection3;
1417     }
1418 
1419     public void setGroupedCollection3(List<UITestObject> groupedCollection3) {
1420         this.groupedCollection3 = groupedCollection3;
1421     }
1422 
1423     public List<UITestObject> getDoubleGroupedCollection() {
1424         return doubleGroupedCollection;
1425     }
1426 
1427     public void setDoubleGroupedCollection(List<UITestObject> doubleGroupedCollection) {
1428         this.doubleGroupedCollection = doubleGroupedCollection;
1429     }
1430 
1431     public List<UITestObject> getNames() {
1432         return names;
1433     }
1434 
1435     public void setNames(List<UITestObject> names) {
1436         this.names = names;
1437     }
1438 
1439     public List<UITestObject> getEmptyCollection() {
1440         return emptyCollection;
1441     }
1442 
1443     public void setEmptyCollection(List<UITestObject> emptyCollection) {
1444         this.emptyCollection = emptyCollection;
1445     }
1446 
1447     public List<UITestObject> getEmptyCollection1() {
1448         return emptyCollection1;
1449     }
1450 
1451     public void setEmptyCollection1(List<UITestObject> emptyCollection1) {
1452         this.emptyCollection1 = emptyCollection1;
1453     }
1454 
1455     public List<UITestObject> getEmptyCollection2() {
1456         return emptyCollection2;
1457     }
1458 
1459     public void setEmptyCollection2(List<UITestObject> emptyCollection2) {
1460         this.emptyCollection2 = emptyCollection2;
1461     }
1462 
1463     public String getFakeTotal() {
1464         return fakeTotal;
1465     }
1466 
1467     public void setFakeTotal(String fakeTotal) {
1468         this.fakeTotal = fakeTotal;
1469     }
1470 
1471     public String getBarStep() {
1472         return barStep;
1473     }
1474 
1475     public void setBarStep(String barStep) {
1476         this.barStep = barStep;
1477     }
1478 
1479     public int getBarPercent() {
1480         return barPercent;
1481     }
1482 
1483     public void setBarPercent(int barPercent) {
1484         this.barPercent = barPercent;
1485     }
1486 
1487     public String getRichMessageField() {
1488         return richMessageField;
1489     }
1490 
1491     public void setRichMessageField(String richMessageField) {
1492         this.richMessageField = richMessageField;
1493     }
1494 
1495     public List<String> getCheckboxesField1() {
1496         return checkboxesField1;
1497     }
1498 
1499     public void setCheckboxesField1(List<String> checkboxesField1) {
1500         this.checkboxesField1 = checkboxesField1;
1501     }
1502 
1503     public List<String> getCheckboxesField2() {
1504         return checkboxesField2;
1505     }
1506 
1507     public void setCheckboxesField2(List<String> checkboxesField2) {
1508         this.checkboxesField2 = checkboxesField2;
1509     }
1510 
1511     public List<String> getCheckboxesField3() {
1512         return checkboxesField3;
1513     }
1514 
1515     public void setCheckboxesField3(List<String> checkboxesField3) {
1516         this.checkboxesField3 = checkboxesField3;
1517     }
1518 
1519     public List<String> getCheckboxesField5() {
1520         return checkboxesField5;
1521     }
1522 
1523     public void setCheckboxesField5(List<String> checkboxesField5) {
1524         this.checkboxesField5 = checkboxesField5;
1525     }
1526 
1527     public List<String> getCheckboxesField4() {
1528         return checkboxesField4;
1529     }
1530 
1531     public void setCheckboxesField4(List<String> checkboxesField4) {
1532         this.checkboxesField4 = checkboxesField4;
1533     }
1534 
1535     public List<String> getMultiSelectField1() {
1536         return multiSelectField1;
1537     }
1538 
1539     public void setMultiSelectField1(List<String> multiSelectField1) {
1540         this.multiSelectField1 = multiSelectField1;
1541     }
1542 
1543     public boolean isBooleanField1() {
1544         return booleanField1;
1545     }
1546 
1547     public void setBooleanField1(boolean booleanField1) {
1548         this.booleanField1 = booleanField1;
1549     }
1550 
1551     public boolean isBooleanField2() {
1552         return booleanField2;
1553     }
1554 
1555     public void setBooleanField2(boolean booleanField2) {
1556         this.booleanField2 = booleanField2;
1557     }
1558 
1559     public boolean isBooleanField3() {
1560         return booleanField3;
1561     }
1562 
1563     public void setBooleanField3(boolean booleanField3) {
1564         this.booleanField3 = booleanField3;
1565     }
1566 
1567     /**
1568      * @return the tree1
1569      */
1570     public Tree<String, String> getTree1() {
1571         return this.tree1;
1572     }
1573 
1574     /**
1575      * @param tree1 the tree1 to set
1576      */
1577     public void setTree1(Tree<String, String> tree1) {
1578         this.tree1 = tree1;
1579     }
1580 
1581     /**
1582      * @return the tree2
1583      */
1584     public Tree<UITestObject, String> getTree2() {
1585         return tree2;
1586     }
1587 
1588     /**
1589      * @param tree2 the tree2 to set
1590      */
1591     public void setTree2(Tree<UITestObject, String> tree2) {
1592         this.tree2 = tree2;
1593     }
1594 
1595     /**
1596      * @param subList the subList to set
1597      */
1598     public void setSubList(List<UITestObject> subList) {
1599         this.subList = subList;
1600     }
1601 
1602     /**
1603      * @return the subList
1604      */
1605     public List<UITestObject> getSubList() {
1606         return subList;
1607     }
1608 
1609     public List<String> getOptionListSelection() {
1610         return optionListSelection;
1611     }
1612 
1613     public void setOptionListSelection(List<String> optionListSelection) {
1614         this.optionListSelection = optionListSelection;
1615     }
1616 
1617     public String getCodeSample() {
1618         return codeSample;
1619     }
1620 
1621     public void setCodeSample(String codeSample) {
1622         this.codeSample = codeSample;
1623     }
1624 
1625     public String getDocumentNumber() {
1626         return documentNumber;
1627     }
1628 
1629     public void setDocumentNumber(String documentNumber) {
1630         this.documentNumber = documentNumber;
1631     }
1632 
1633     public List<TravelAccount> getTravelAccounts() {
1634         return travelAccounts;
1635     }
1636 
1637     public void setTravelAccounts(List<TravelAccount> travelAccounts) {
1638         this.travelAccounts = travelAccounts;
1639     }
1640 
1641     public List<FileMetaBlob> getFiles() {
1642         return files;
1643     }
1644 
1645     public void setFiles(List<FileMetaBlob> files) {
1646         this.files = files;
1647     }
1648 
1649     public List<FileMetaBlob> getFiles1() {
1650         return files1;
1651     }
1652 
1653     public void setFiles1(List<FileMetaBlob> files1) {
1654         this.files1 = files1;
1655     }
1656 
1657     public List<FileMetaBlob> getFiles2() {
1658         return files2;
1659     }
1660 
1661     public void setFiles2(List<FileMetaBlob> files2) {
1662         this.files2 = files2;
1663     }
1664 
1665     public List<FileMetaBlob> getFiles3() {
1666         return files3;
1667     }
1668 
1669     public void setFiles3(List<FileMetaBlob> files3) {
1670         this.files3 = files3;
1671     }
1672 
1673     public String getEncryptedValue(String value) {
1674         try {
1675             return CoreApiServiceLocator.getEncryptionService().encrypt(value);
1676         } catch (GeneralSecurityException gse) {
1677             // Fail silently
1678         }
1679 
1680         return StringUtils.EMPTY;
1681     }
1682 
1683     public UITestObject getUiTestObject2() {
1684         return uiTestObject2;
1685     }
1686 
1687     public void setUiTestObject2(UITestObject uiTestObject2) {
1688         this.uiTestObject2 = uiTestObject2;
1689     }
1690 
1691     public UITestObject getUiTestObject1() {
1692         return uiTestObject1;
1693     }
1694 
1695     public void setUiTestObject1(UITestObject uiTestObject1) {
1696         this.uiTestObject1 = uiTestObject1;
1697     }
1698 }