View Javadoc
1   /**
2    * Copyright 2005-2015 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.test;
17  
18  import org.kuali.rice.krad.web.bind.RequestAccessible;
19  import org.kuali.rice.krad.web.bind.RequestProtected;
20  import org.kuali.rice.krad.web.form.UifFormBase;
21  import org.springframework.web.bind.annotation.RequestMethod;
22  
23  /**
24   * Form class for test cases.
25   *
26   * @author Kuali Rice Team (rice.collab@kuali.org)
27   */
28  public class TestForm extends UifFormBase {
29  
30      @RequestAccessible
31      private String field1;
32  
33      @RequestProtected
34      private String field2;
35  
36      private String field3;
37  
38      @RequestAccessible(method= RequestMethod.GET)
39      private String field4;
40  
41      private String field5;
42  
43      private String field6;
44  
45      @RequestAccessible(methodToCalls = { "field7TestMethodToCall" })
46      private String field7;
47  
48      private TestDataObject dataObject;
49  
50      public String getField1() {
51          return field1;
52      }
53  
54      public void setField1(String field1) {
55          this.field1 = field1;
56      }
57  
58      public String getField2() {
59          return field2;
60      }
61  
62      public void setField2(String field2) {
63          this.field2 = field2;
64      }
65  
66      public String getField3() {
67          return field3;
68      }
69  
70      public void setField3(String field3) {
71          this.field3 = field3;
72      }
73  
74      public String getField4() {
75          return field4;
76      }
77  
78      public void setField4(String field4) {
79          this.field4 = field4;
80      }
81  
82      public String getField5() {
83          return field5;
84      }
85  
86      public void setField5(String field5) {
87          this.field5 = field5;
88      }
89  
90      public String getField6() {
91          return field6;
92      }
93  
94      public void setField6(String field6) {
95          this.field6 = field6;
96      }
97  
98      public TestDataObject getDataObject() {
99          return dataObject;
100     }
101 
102     public void setDataObject(TestDataObject dataObject) {
103         this.dataObject = dataObject;
104     }
105 }