View Javadoc

1   /**
2    * Copyright 2013 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   *
15   * Created by Charles on 5/6/13
16   */
17  package org.kuali.student.enrollment.class2.courseoffering.form;
18  
19  import org.kuali.rice.krad.web.form.UifFormBase;
20  import org.kuali.student.enrollment.class2.courseoffering.dto.RGStateWrapper;
21  import org.kuali.student.enrollment.class2.courseoffering.dto.StatePropagationWrapper;
22  
23  import java.util.ArrayList;
24  import java.util.List;
25  
26  /**
27   * This class provides a form for the test state propagation ui
28   *
29   * @author Kuali Student Team
30   */
31  public class TestStatePropagationForm extends UifFormBase {
32  
33      private List<StatePropagationWrapper> aoStatePropagationWrapperList;
34      private List<StatePropagationWrapper> foStatePropagationWrapperList;
35      private List<StatePropagationWrapper> coStatePropagationWrapperList;
36      private List<RGStateWrapper> rgFromAOStatePropagationWrapperList;
37      private List<RGStateWrapper> rgFromTransitionsStatePropagationWrapperList;
38      private int failCount;
39      private int passCount;
40      private String termCodeForSocStateChange;
41      private String newSocStateForSocStateChange;
42  
43       public TestStatePropagationForm() {
44  
45          aoStatePropagationWrapperList = new ArrayList<StatePropagationWrapper>();
46          foStatePropagationWrapperList = new ArrayList<StatePropagationWrapper>();
47          coStatePropagationWrapperList = new ArrayList<StatePropagationWrapper>();
48          rgFromAOStatePropagationWrapperList = new ArrayList<RGStateWrapper>();
49          rgFromTransitionsStatePropagationWrapperList = new ArrayList<RGStateWrapper>();
50          failCount=0;
51          passCount=0;
52      }
53  
54  
55      public List<StatePropagationWrapper> getFoStatePropagationWrapperList() {
56          return foStatePropagationWrapperList;
57      }
58  
59      public void setFoStatePropagationWrapperList(List<StatePropagationWrapper> foStatePropagationWrapperList) {
60          this.foStatePropagationWrapperList = foStatePropagationWrapperList;
61      }
62  
63      public List<StatePropagationWrapper> getAoStatePropagationWrapperList() {
64          return aoStatePropagationWrapperList;
65      }
66  
67      public void setAoStatePropagationWrapperList(List<StatePropagationWrapper> aoStatePropagationWrapperList) {
68          this.aoStatePropagationWrapperList = aoStatePropagationWrapperList;
69      }
70  
71      public List<StatePropagationWrapper> getCoStatePropagationWrapperList() {
72          return coStatePropagationWrapperList;
73      }
74  
75      public void setCoStatePropagationWrapperList(List<StatePropagationWrapper> coStatePropagationWrapperList) {
76          this.coStatePropagationWrapperList = coStatePropagationWrapperList;
77      }
78  
79  
80  
81      public void addAoStatePropagationWrapper(StatePropagationWrapper wrapper){
82          aoStatePropagationWrapperList.add(wrapper);
83      }
84  
85      public void addFoStatePropagationWrapper(StatePropagationWrapper wrapper){
86          foStatePropagationWrapperList.add(wrapper);
87      }
88  
89      public void addCoStatePropagationWrapper(StatePropagationWrapper wrapper){
90          coStatePropagationWrapperList.add(wrapper);
91      }
92  
93      public List<RGStateWrapper> getRgFromAOStatePropagationWrapperList() {
94          return rgFromAOStatePropagationWrapperList;
95      }
96  
97      public void setRgFromAOStatePropagationWrapperList(List<RGStateWrapper> rgFromAOStatePropagationWrapperList) {
98          this.rgFromAOStatePropagationWrapperList = rgFromAOStatePropagationWrapperList;
99      }
100 
101     public void addRGFromAOStatePropagationWrapper(RGStateWrapper wrapper){
102         rgFromAOStatePropagationWrapperList.add(wrapper);
103     }
104 
105     public List<RGStateWrapper> getRgFromTransitionsStatePropagationWrapperList() {
106         return rgFromTransitionsStatePropagationWrapperList;
107     }
108 
109     public void setRgFromTransitionsStatePropagationWrapperList(List<RGStateWrapper> rgFromTransitionsStatePropagationWrapperList) {
110         this.rgFromTransitionsStatePropagationWrapperList = rgFromTransitionsStatePropagationWrapperList;
111     }
112 
113     public void addRGFromTransitionStatePropagationWrapper(RGStateWrapper wrapper){
114         rgFromTransitionsStatePropagationWrapperList.add(wrapper);
115     }
116 
117     public int getFailCount() {
118         return failCount;
119     }
120 
121     public void setFailCount(int failCount) {
122         this.failCount = failCount;
123     }
124 
125     public int getPassCount() {
126         return passCount;
127     }
128 
129     public void setPassCount(int passCount) {
130         this.passCount = passCount;
131     }
132 
133     public String getTermCodeForSocStateChange() {
134         return termCodeForSocStateChange;
135     }
136 
137     public void setTermCodeForSocStateChange(String termCodeForSocStateChange) {
138         this.termCodeForSocStateChange = termCodeForSocStateChange;
139     }
140 
141     public String getNewSocStateForSocStateChange() {
142         return newSocStateForSocStateChange;
143     }
144 
145     public void setNewSocStateForSocStateChange(String newSocStateForSocStateChange) {
146         this.newSocStateForSocStateChange = newSocStateForSocStateChange;
147     }
148 
149 }