1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.enrollment.class2.courseoffering.dto;
17
18 import org.kuali.student.enrollment.courseoffering.dto.FormatOfferingInfo;
19 import org.kuali.student.r2.lum.course.dto.FormatInfo;
20
21 import java.io.Serializable;
22
23
24
25
26
27
28
29
30 public class FormatOfferingWrapper implements Serializable{
31
32 private FormatOfferingInfo formatOfferingInfo;
33 private JointCourseWrapper jointCreateWrapper;
34 private String courseCode;
35 private FormatInfo formatInfo;
36
37 private boolean isJointOffering;
38 private boolean selectedToCopy;
39
40 private String activitesUI;
41 private String gradeRosterUI;
42 private String finalExamUI;
43
44 private RenderHelper renderHelper;
45
46 public FormatOfferingWrapper(){
47 formatOfferingInfo = new FormatOfferingInfo();
48 isJointOffering = false;
49 renderHelper = new RenderHelper();
50 }
51
52
53
54
55
56
57
58 public FormatOfferingWrapper(FormatInfo formatInfo, String courseCode, JointCourseWrapper jointCreateWrapper){
59 this();
60 this.formatInfo = formatInfo;
61 this.courseCode = courseCode;
62 this.formatOfferingInfo.setFormatId(formatInfo.getId());
63 this.jointCreateWrapper = jointCreateWrapper;
64 if (jointCreateWrapper != null){
65 this.isJointOffering = true;
66 }
67 }
68
69
70
71
72
73
74 public FormatOfferingInfo getFormatOfferingInfo() {
75 return formatOfferingInfo;
76 }
77
78
79
80
81
82
83 public void setFormatOfferingInfo(FormatOfferingInfo formatOfferingInfo) {
84 this.formatOfferingInfo = formatOfferingInfo;
85 }
86
87
88
89
90
91
92 public JointCourseWrapper getJointCreateWrapper() {
93 return jointCreateWrapper;
94 }
95
96 public void setJointCreateWrapper(JointCourseWrapper jointCreateWrapper) {
97 this.jointCreateWrapper = jointCreateWrapper;
98 }
99
100 public String getFormatId() {
101 return formatOfferingInfo.getFormatId();
102 }
103
104
105
106
107
108
109 public void setFormatId(String formatId) {
110 this.formatOfferingInfo.setFormatId(formatId);
111 }
112
113 public String getGradeRosterLevelTypeKey() {
114 return this.formatOfferingInfo.getGradeRosterLevelTypeKey();
115 }
116
117
118
119
120
121
122 public void setGradeRosterLevelTypeKey(String gradeRosterLevelTypeKey) {
123 this.formatOfferingInfo.setGradeRosterLevelTypeKey(gradeRosterLevelTypeKey);
124 }
125
126 public String getFinalExamLevelTypeKey() {
127 return this.formatOfferingInfo.getFinalExamLevelTypeKey();
128 }
129
130
131
132
133
134
135 public void setFinalExamLevelTypeKey(String finalExamLevelTypeKey) {
136 this.formatOfferingInfo.setFinalExamLevelTypeKey(finalExamLevelTypeKey);
137 }
138
139
140
141
142
143
144 public boolean isJointOffering() {
145 return isJointOffering;
146 }
147
148
149
150
151
152 public void setJointOffering(boolean jointOffering) {
153 isJointOffering = jointOffering;
154 }
155
156
157
158
159
160
161 @SuppressWarnings("unused")
162 public String getCourseCode() {
163 return courseCode;
164 }
165
166
167
168
169
170
171 public void setCourseCode(String courseCode) {
172 this.courseCode = courseCode;
173 }
174
175
176
177
178
179
180 @SuppressWarnings("unused")
181 public String getActivitesUI() {
182 return activitesUI;
183 }
184
185
186
187
188
189
190
191 public void setActivitesUI(String activitesUI) {
192 this.activitesUI = activitesUI;
193 }
194
195
196
197
198
199
200 public boolean isSelectedToCopy() {
201 return selectedToCopy;
202 }
203
204
205
206
207
208 @SuppressWarnings("unused")
209 public void setSelectedToCopy(boolean selectedToCopy) {
210 this.selectedToCopy = selectedToCopy;
211 }
212
213
214
215
216
217 public FormatInfo getFormatInfo() {
218 return formatInfo;
219 }
220
221
222
223
224
225
226 public void setFormatInfo(FormatInfo formatInfo) {
227 this.formatInfo = formatInfo;
228 }
229
230
231
232
233
234
235 @SuppressWarnings("unused")
236 public String getGradeRosterUI() {
237 return gradeRosterUI;
238 }
239
240
241
242
243
244
245
246
247 public void setGradeRosterUI(String gradeRosterUI) {
248 this.gradeRosterUI = gradeRosterUI;
249 }
250
251
252
253
254
255 @SuppressWarnings("unused")
256 public String getFinalExamUI() {
257 return finalExamUI;
258 }
259
260
261
262
263
264
265
266 public void setFinalExamUI(String finalExamUI) {
267 this.finalExamUI = finalExamUI;
268 }
269
270 public RenderHelper getRenderHelper() {
271 return renderHelper;
272 }
273
274 public void setRenderHelper(RenderHelper renderHelper) {
275 this.renderHelper = renderHelper;
276 }
277
278
279
280
281
282
283
284 public class RenderHelper implements Serializable{
285
286 private boolean isNewRow;
287
288 RenderHelper(){
289 }
290
291 public boolean isNewRow() {
292 return isNewRow;
293 }
294
295 public void setNewRow(boolean newRow) {
296 isNewRow = newRow;
297 }
298
299
300 }
301
302
303 }