1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.test;
17
18 import org.kuali.rice.krad.web.bind.RequestAccessible;
19 import org.kuali.rice.krad.web.bind.RequestProtected;
20 import org.springframework.web.bind.annotation.RequestMethod;
21
22 import java.io.Serializable;
23 import java.util.ArrayList;
24 import java.util.Arrays;
25 import java.util.List;
26 import java.util.Map;
27
28
29
30
31
32
33 public class TestDataObject implements Serializable {
34 private static final long serialVersionUID = -7525378097732916411L;
35
36 private String field1;
37 private String field2;
38 private String field3;
39 private String field4;
40
41 @RequestProtected
42 private String field5;
43 private String field6;
44 private String field7;
45
46 @RequestAccessible(method = {RequestMethod.GET, RequestMethod.POST})
47 private String field8;
48 private boolean bfield;
49
50 private List<String> stringList = Arrays.asList("String1", "String2", "String3");
51
52 @RequestAccessible
53 private TestDataObject nestedObject;
54
55 @RequestAccessible
56 private Map<String, Object> map;
57 private List<TestDataObject> list = new ArrayList<TestDataObject>();
58
59 @RequestAccessible
60 private List<TestDataObject> list2 = new ArrayList<TestDataObject>();
61
62 public TestDataObject() {
63 }
64
65 public TestDataObject(String field1, String field2, String field3, String field4) {
66 this();
67
68 this.field1 = field1;
69 this.field2 = field2;
70 this.field3 = field3;
71 this.field4 = field4;
72 }
73
74 public String getField1() {
75 return this.field1;
76 }
77
78 public void setField1(String field1) {
79 this.field1 = field1;
80 }
81
82 public String getField2() {
83 return this.field2;
84 }
85
86 public void setField2(String field2) {
87 this.field2 = field2;
88 }
89
90 public String getField3() {
91 return this.field3;
92 }
93
94 public void setField3(String field3) {
95 this.field3 = field3;
96 }
97
98 public String getField4() {
99 return this.field4;
100 }
101
102 public void setField4(String field4) {
103 this.field4 = field4;
104 }
105
106 public String getField5() {
107 return field5;
108 }
109
110 public void setField5(String field5) {
111 this.field5 = field5;
112 }
113
114 public String getField6() {
115 return field6;
116 }
117
118 public void setField6(String field6) {
119 this.field6 = field6;
120 }
121
122 public String getField7() {
123 return field7;
124 }
125
126 public void setField7(String field7) {
127 this.field7 = field7;
128 }
129
130 public String getField8() {
131 return field8;
132 }
133
134 public void setField8(String field8) {
135 this.field8 = field8;
136 }
137
138 public boolean isBfield() {
139 return bfield;
140 }
141
142 public void setBfield(boolean bfield) {
143 this.bfield = bfield;
144 }
145
146 public List<String> getStringList() {
147 return stringList;
148 }
149
150 public void setStringList(List<String> stringList) {
151 this.stringList = stringList;
152 }
153
154 public TestDataObject getNestedObject() {
155 return nestedObject;
156 }
157
158 public void setNestedObject(TestDataObject nestedObject) {
159 this.nestedObject = nestedObject;
160 }
161
162 public Map<String, Object> getMap() {
163 return map;
164 }
165
166 public void setMap(Map<String, Object> map) {
167 this.map = map;
168 }
169
170 public List<TestDataObject> getList() {
171 return list;
172 }
173
174 public void setList(List<TestDataObject> list) {
175 this.list = list;
176 }
177
178 public List<TestDataObject> getList2() {
179 return list2;
180 }
181
182 public void setList2(List<TestDataObject> list2) {
183 this.list2 = list2;
184 }
185 }
186