1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.student.enrollment.class2.autogen.form;
18
19 import org.apache.commons.lang.StringEscapeUtils;
20 import org.kuali.student.enrollment.class2.courseoffering.dto.ActivityOfferingClusterWrapper;
21 import org.kuali.student.enrollment.class2.courseoffering.dto.ActivityOfferingWrapper;
22 import org.kuali.student.enrollment.class2.courseoffering.dto.CourseOfferingContextBar;
23 import org.kuali.student.enrollment.class2.courseoffering.dto.CourseOfferingCopyWrapper;
24 import org.kuali.student.enrollment.class2.courseoffering.dto.CourseOfferingListSectionWrapper;
25 import org.kuali.student.enrollment.class2.courseoffering.dto.CourseOfferingWrapper;
26 import org.kuali.student.enrollment.class2.courseoffering.dto.RegistrationGroupWrapper;
27 import org.kuali.student.enrollment.courseoffering.dto.FormatOfferingInfo;
28 import org.kuali.student.common.uif.form.KSUifForm;
29 import org.kuali.student.r2.core.acal.dto.TermInfo;
30
31 import java.util.ArrayList;
32 import java.util.Date;
33 import java.util.List;
34 import java.util.Map;
35
36
37
38
39
40
41 public class ARGCourseOfferingManagementForm extends KSUifForm {
42
43
44 private String adminOrg;
45
46
47
48
49 private String termCode;
50
51
52
53
54
55 private String inputCode;
56
57
58
59 private List<CourseOfferingListSectionWrapper> courseOfferingResultList;
60
61
62
63 private List<ActivityOfferingWrapper> activityWrapperList;
64
65
66
67
68 private List<ActivityOfferingClusterWrapper> clusterResultList;
69
70
71
72
73 private List<RegistrationGroupWrapper> rgResultList;
74
75 private boolean hasMoreThanOneFormat = false;
76 private boolean hasMoreThanOneCluster = false;
77
78 private TermInfo termInfo;
79
80
81
82
83 private String subjectCode;
84
85
86
87
88 private String subjectCodeDescription;
89
90
91
92 private String formatIdForNewAO;
93 private String formatOfferingIdForNewAO;
94 private String activityIdForNewAO;
95 private String clusterIdForNewAO;
96 private String noOfActivityOfferings;
97
98
99
100
101
102 private CourseOfferingWrapper currentCourseOfferingWrapper;
103 private CourseOfferingWrapper previousCourseOfferingWrapper;
104 private CourseOfferingWrapper nextCourseOfferingWrapper;
105
106
107 private String selectedOfferingAction;
108 private String coViewLinkWrapper = "View";
109
110
111
112
113 private String socState;
114
115
116
117
118 private String socStateKey;
119
120
121
122
123 private String socSchedulingStateKey;
124
125
126
127
128
129 private List<ActivityOfferingWrapper> selectedToDeleteList;
130 private CourseOfferingCopyWrapper courseOfferingCopyWrapper;
131
132 private boolean isCrossListedCO;
133 private int numOfCrossListedCosToDelete=0;
134 private boolean isColocatedCO;
135 private boolean isColocatedCoOnly;
136 private Integer numOfColocatedCosToDelete = 0;
137 private Integer numOfColocatedAosToDelete = 0;
138 private boolean isJointDefinedCo;
139 private boolean isJointDefinedCoOnly;
140 private Integer numOfJointDefinedCosToDelete = 0;
141
142
143 private boolean readOnly;
144
145 private List<CourseOfferingListSectionWrapper> selectedCoToDeleteList;
146 private int totalAOsToBeDeleted = 0;
147
148 private String toBeScheduledCourseOfferingsUI;
149 private int toBeScheduledCourseOfferingsCount;
150 private boolean selectedIllegalAOInDeletion = false;
151
152 private boolean withinPortal = true;
153
154 private boolean editAuthz;
155
156 private boolean enableAddButton = false;
157 private boolean enableMoveAOButton = false;
158 private boolean enableAddClusterButton = false;
159
160 private Date termClassStartDate;
161
162
163 private String privateClusterNamePopover;
164 private String publishedClusterNamePopover;
165 private String privateClusterNameForRenamePopover;
166 private String publishedClusterNameForRenamePopover;
167 private String privateClusterNameForMovePopover;
168 private String publishedClusterNameForMovePopover;
169 private String formatOfferingIdForViewRG;
170 private String formatOfferingName;
171 private Map<String,FormatOfferingInfo> foId2aoTypeMap;
172
173 private boolean disableMoveButtonForMoveAOCPopOver;
174 private String clusterIdForAOMove;
175 private String selectedFOIDForAOMove;
176 private String selectedFONameForAOMove;
177
178 private ActivityOfferingClusterWrapper selectedCluster;
179 private int aoCount=0;
180
181 private String selectedTabId;
182
183
184 private boolean hasAOCluster;
185
186 private CourseOfferingContextBar contextBar = CourseOfferingContextBar.NULL_SAFE_INSTANCE;
187
188
189 private boolean requisiteLink;
190
191 public boolean getHasAOCluster() {
192 return hasAOCluster;
193 }
194
195 public void setHasAOCluster(boolean hasAOCluster) {
196 this.hasAOCluster = hasAOCluster;
197 }
198
199 public ARGCourseOfferingManagementForm (){
200 activityWrapperList = new ArrayList<ActivityOfferingWrapper>();
201 selectedToDeleteList = new ArrayList<ActivityOfferingWrapper>();
202 courseOfferingResultList = new ArrayList<CourseOfferingListSectionWrapper>();
203 selectedCoToDeleteList = new ArrayList<CourseOfferingListSectionWrapper>();
204 clusterResultList = new ArrayList<ActivityOfferingClusterWrapper>();
205 rgResultList = new ArrayList<RegistrationGroupWrapper>();
206
207 setCourseOfferingCopyWrapper(null);
208 setFormatOfferingIdForNewAO(null);
209 }
210
211 public boolean isHasAO() {
212 return !activityWrapperList.isEmpty();
213 }
214
215 public String getTermCode(){
216 return termCode;
217 }
218
219 public void setTermCode(String termCode){
220 this.termCode = termCode;
221 }
222
223 public TermInfo getTermInfo(){
224 return termInfo;
225 }
226
227 public void setTermInfo(TermInfo termInfo){
228 this.termInfo = termInfo;
229 }
230
231
232
233
234
235
236
237 public String getSubjectCode(){
238 return subjectCode;
239 }
240
241
242
243
244
245
246
247
248 public void setSubjectCode(String subjectCode) {
249 this.subjectCode = subjectCode;
250 }
251
252 public String getInputCode(){
253 return inputCode;
254 }
255
256 public void setInputCode(String inputCode){
257 this.inputCode = inputCode;
258 }
259
260 public String getSelectedOfferingAction() {
261 return selectedOfferingAction;
262 }
263
264 public void setSelectedOfferingAction(String selectedOfferingAction) {
265 this.selectedOfferingAction = selectedOfferingAction;
266 }
267
268 public String getNoOfActivityOfferings() {
269 return noOfActivityOfferings;
270 }
271
272 public void setNoOfActivityOfferings(String noOfActivityOfferings) {
273 this.noOfActivityOfferings = noOfActivityOfferings;
274 }
275
276 public List<ActivityOfferingWrapper> getActivityWrapperList() {
277 return activityWrapperList;
278 }
279
280 public void setActivityWrapperList(List<ActivityOfferingWrapper> activityWrapperList) {
281 this.activityWrapperList = activityWrapperList;
282 }
283
284 public List<ActivityOfferingWrapper> getSelectedToDeleteList() {
285 return selectedToDeleteList;
286 }
287
288 public void setSelectedToDeleteList(List<ActivityOfferingWrapper> selectedToDeleteList) {
289 this.selectedToDeleteList = selectedToDeleteList;
290 }
291
292 public String getFormatIdForNewAO() {
293 return formatIdForNewAO;
294 }
295
296 public void setFormatIdForNewAO(String formatIdForNewAO) {
297 this.formatIdForNewAO = formatIdForNewAO;
298 }
299
300 public String getActivityIdForNewAO() {
301 return activityIdForNewAO;
302 }
303
304 public void setActivityIdForNewAO(String activityIdForNewAO) {
305 this.activityIdForNewAO = activityIdForNewAO;
306 }
307
308 public String getCoViewLinkWrapper() {
309 return coViewLinkWrapper;
310 }
311
312 public void setCoViewLinkWrapper(String coViewLinkWrapper) {
313 this.coViewLinkWrapper = coViewLinkWrapper;
314 }
315
316 public CourseOfferingCopyWrapper getCourseOfferingCopyWrapper() {
317 return courseOfferingCopyWrapper;
318 }
319
320 public void setCourseOfferingCopyWrapper(CourseOfferingCopyWrapper courseOfferingCopyWrapper) {
321 this.courseOfferingCopyWrapper = courseOfferingCopyWrapper;
322 }
323
324
325
326
327
328
329
330 @SuppressWarnings("unused")
331 public String getSubjectCodeDescription() {
332 return StringEscapeUtils.escapeJavaScript( subjectCodeDescription );
333 }
334
335
336
337
338
339
340 public void setSubjectCodeDescription(String subjectCodeDescription) {
341 this.subjectCodeDescription = StringEscapeUtils.unescapeJavaScript( subjectCodeDescription );
342 }
343
344 public String getToBeScheduledCourseOfferingsUI() {
345 return toBeScheduledCourseOfferingsUI;
346 }
347
348 public void setToBeScheduledCourseOfferingsUI(String toBeScheduledCourseOfferingsUI) {
349 this.toBeScheduledCourseOfferingsUI = toBeScheduledCourseOfferingsUI;
350 }
351
352 public int getToBeScheduledCourseOfferingsCount() {
353 return toBeScheduledCourseOfferingsCount;
354 }
355
356 public void setToBeScheduledCourseOfferingsCount(int toBeScheduledCourseOfferingsCount) {
357 this.toBeScheduledCourseOfferingsCount = toBeScheduledCourseOfferingsCount;
358 }
359
360 public boolean isSelectedIllegalAOInDeletion() {
361 return selectedIllegalAOInDeletion;
362 }
363
364 public void setSelectedIllegalAOInDeletion(boolean selectedIllegalAOInDeletion) {
365 this.selectedIllegalAOInDeletion = selectedIllegalAOInDeletion;
366 }
367
368 public boolean isWithinPortal() {
369 return withinPortal;
370 }
371
372 public void setWithinPortal(boolean withinPortal) {
373 this.withinPortal = withinPortal;
374 }
375
376 public String getAdminOrg() {
377 return adminOrg;
378 }
379
380 public void setAdminOrg(String adminOrg) {
381 this.adminOrg = adminOrg;
382 }
383
384 public List<CourseOfferingListSectionWrapper> getCourseOfferingResultList() {
385 return courseOfferingResultList;
386 }
387
388 public void setCourseOfferingResultList(List<CourseOfferingListSectionWrapper> courseOfferingResultList) {
389 this.courseOfferingResultList = courseOfferingResultList;
390 }
391
392 public List<ActivityOfferingClusterWrapper> getClusterResultList() {
393 return clusterResultList;
394 }
395
396 public void setClusterResultList(List<ActivityOfferingClusterWrapper> clusterResultList) {
397 this.clusterResultList = clusterResultList;
398 }
399
400 public List<RegistrationGroupWrapper> getRgResultList() {
401 return rgResultList;
402 }
403
404 public void setRgResultList(List<RegistrationGroupWrapper> rgResultList) {
405 this.rgResultList = rgResultList;
406 }
407
408 public boolean getEditAuthz(){
409 return editAuthz;
410 }
411 public void setEditAuthz(boolean editAuthz){
412 this.editAuthz=editAuthz;
413 }
414
415 public String getSocState() {
416 return socState;
417 }
418
419 public void setSocState(String socState) {
420 this.socState = socState;
421 }
422
423 public boolean isReadOnly() {
424 return readOnly;
425 }
426
427 public void setReadOnly(boolean readOnly) {
428 this.readOnly = readOnly;
429 }
430
431 public boolean isEnableAddButton() {
432 return enableAddButton;
433 }
434
435 public void setEnableAddButton(boolean enableAddButton) {
436 this.enableAddButton = enableAddButton;
437 }
438
439 public boolean isEnableMoveAOButton() {
440 return enableMoveAOButton;
441 }
442
443 public void setEnableMoveAOButton(boolean enableMoveAOButton) {
444 this.enableMoveAOButton = enableMoveAOButton;
445 }
446
447 public boolean isEnableAddClusterButton() {
448 return enableAddClusterButton;
449 }
450
451 public void setEnableAddClusterButton(boolean enableAddClusterButton) {
452 this.enableAddClusterButton = enableAddClusterButton;
453 }
454
455 public String getSocStateKey() {
456 return socStateKey;
457 }
458
459 public void setSocStateKey(String socStateKey) {
460 this.socStateKey = socStateKey;
461 }
462
463 public String getSocSchedulingStateKey() {
464 return socSchedulingStateKey;
465 }
466
467 public void setSocSchedulingStateKey(String socSchedulingStateKey) {
468 this.socSchedulingStateKey = socSchedulingStateKey;
469 }
470
471 public CourseOfferingWrapper getPreviousCourseOfferingWrapper() {
472 return previousCourseOfferingWrapper;
473 }
474
475 public void setPreviousCourseOfferingWrapper(CourseOfferingWrapper previousCourseOfferingWrapper) {
476 this.previousCourseOfferingWrapper = previousCourseOfferingWrapper;
477 }
478
479 public CourseOfferingWrapper getNextCourseOfferingWrapper() {
480 return nextCourseOfferingWrapper;
481 }
482
483 public void setNextCourseOfferingWrapper(CourseOfferingWrapper nextCourseOfferingWrapper) {
484 this.nextCourseOfferingWrapper = nextCourseOfferingWrapper;
485 }
486
487 public CourseOfferingWrapper getCurrentCourseOfferingWrapper() {
488 return currentCourseOfferingWrapper;
489 }
490
491 public void setCurrentCourseOfferingWrapper(CourseOfferingWrapper currentCourseOfferingWrapper) {
492 this.currentCourseOfferingWrapper = currentCourseOfferingWrapper;
493 }
494
495 public List<CourseOfferingListSectionWrapper> getSelectedCoToDeleteList() {
496 return selectedCoToDeleteList;
497 }
498
499 public void setSelectedCoToDeleteList(List<CourseOfferingListSectionWrapper> selectedCoToDeleteList) {
500 this.selectedCoToDeleteList = selectedCoToDeleteList;
501 }
502
503 public int getTotalAOsToBeDeleted() {
504 return totalAOsToBeDeleted;
505 }
506
507 public void setTotalAOsToBeDeleted(int totalAOsToBeDeleted) {
508 this.totalAOsToBeDeleted = totalAOsToBeDeleted;
509 }
510
511 public boolean isCrossListedCO() {
512 return isCrossListedCO;
513 }
514
515 public void setCrossListedCO(boolean crossListedCO) {
516 this.isCrossListedCO = crossListedCO;
517 }
518
519 public Date getTermClassStartDate() {
520 return termClassStartDate;
521 }
522
523 public void setTermClassStartDate(Date termClassStartDate) {
524 this.termClassStartDate = termClassStartDate;
525 }
526
527 public String getPrivateClusterNamePopover() {
528 return privateClusterNamePopover;
529 }
530
531 public void setPrivateClusterNamePopover(String privateClusterNamePopover) {
532 this.privateClusterNamePopover = privateClusterNamePopover;
533 }
534
535 public String getPublishedClusterNamePopover() {
536 return publishedClusterNamePopover;
537 }
538
539 public void setPublishedClusterNamePopover(String publishedClusterNamePopover) {
540 this.publishedClusterNamePopover = publishedClusterNamePopover;
541 }
542
543
544 public String getPrivateClusterNameForRenamePopover() {
545 return privateClusterNameForRenamePopover;
546 }
547
548 public void setPrivateClusterNameForRenamePopover(String privateClusterNameForRenamePopover) {
549 this.privateClusterNameForRenamePopover = privateClusterNameForRenamePopover;
550 }
551
552 public String getPublishedClusterNameForRenamePopover() {
553 return publishedClusterNameForRenamePopover;
554 }
555
556 public void setPublishedClusterNameForRenamePopover(String publishedClusterNameForRenamePopover) {
557 this.publishedClusterNameForRenamePopover = publishedClusterNameForRenamePopover;
558 }
559
560 public String getPrivateClusterNameForMovePopover() {
561 return privateClusterNameForMovePopover;
562 }
563
564 public void setPrivateClusterNameForMovePopover(String privateClusterNameForMovePopover) {
565 this.privateClusterNameForMovePopover = privateClusterNameForMovePopover;
566 }
567
568 public String getPublishedClusterNameForMovePopover() {
569 return publishedClusterNameForMovePopover;
570 }
571
572 public void setPublishedClusterNameForMovePopover(String publishedClusterNameForMovePopover) {
573 this.publishedClusterNameForMovePopover = publishedClusterNameForMovePopover;
574 }
575
576 public String getFormatOfferingIdForViewRG() {
577 return formatOfferingIdForViewRG;
578 }
579
580 public void setFormatOfferingIdForViewRG(String formatOfferingIdForViewRG) {
581 this.formatOfferingIdForViewRG = formatOfferingIdForViewRG;
582 }
583
584 public String getFormatOfferingName() {
585 return formatOfferingName;
586 }
587
588 public void setFormatOfferingName(String formatOfferingName) {
589 this.formatOfferingName = formatOfferingName;
590 }
591
592 public Map<String,FormatOfferingInfo> getFoId2aoTypeMap() {
593 return foId2aoTypeMap;
594 }
595
596 public void setFoId2aoTypeMap(Map<String, FormatOfferingInfo> foId2aoTypeMap) {
597 this.foId2aoTypeMap = foId2aoTypeMap;
598 }
599
600 public boolean isDisableMoveButtonForMoveAOCPopOver() {
601 return disableMoveButtonForMoveAOCPopOver;
602 }
603
604 public void setDisableMoveButtonForMoveAOCPopOver(boolean disableMoveButtonForMoveAOCPopOver) {
605 this.disableMoveButtonForMoveAOCPopOver = disableMoveButtonForMoveAOCPopOver;
606 }
607
608 public String getClusterIdForAOMove() {
609 return clusterIdForAOMove;
610 }
611
612 public void setClusterIdForAOMove(String clusterIdForAOMove) {
613 this.clusterIdForAOMove = clusterIdForAOMove;
614 }
615
616 public String getSelectedFOIDForAOMove() {
617 return selectedFOIDForAOMove;
618 }
619
620 public void setSelectedFOIDForAOMove(String selectedFOIDForAOMove) {
621 this.selectedFOIDForAOMove = selectedFOIDForAOMove;
622 }
623
624 public String getSelectedFONameForAOMove() {
625 return selectedFONameForAOMove;
626 }
627
628 public void setSelectedFONameForAOMove(String selectedFONameForAOMove) {
629 this.selectedFONameForAOMove = selectedFONameForAOMove;
630 }
631
632 public boolean isHasMoreThanOneFormat() {
633 return hasMoreThanOneFormat;
634 }
635
636 public void setHasMoreThanOneFormat(boolean hasMoreThanOneFormat) {
637 this.hasMoreThanOneFormat = hasMoreThanOneFormat;
638 }
639
640 public boolean isHasMoreThanOneCluster() {
641 return hasMoreThanOneCluster;
642 }
643
644 public void setHasMoreThanOneCluster(boolean hasMoreThanOneCluster) {
645 this.hasMoreThanOneCluster = hasMoreThanOneCluster;
646 }
647
648 public int getNumOfCrossListedCosToDelete() {
649 return numOfCrossListedCosToDelete;
650 }
651
652 public void setNumOfCrossListedCosToDelete(int numOfCrossListedCosToDelete) {
653 this.numOfCrossListedCosToDelete = numOfCrossListedCosToDelete;
654 }
655
656 public boolean isJointDefinedCo() {
657 return isJointDefinedCo;
658 }
659
660 public void setJointDefinedCo(boolean jointDefinedCo) {
661 isJointDefinedCo = jointDefinedCo;
662 }
663
664 public boolean isJointDefinedCoOnly() {
665 return isJointDefinedCoOnly;
666 }
667
668 public void setJointDefinedCoOnly(boolean jointDefinedCoOnly) {
669 isJointDefinedCoOnly = jointDefinedCoOnly;
670 }
671
672 public Integer getNumOfJointDefinedCosToDelete() {
673 return numOfJointDefinedCosToDelete;
674 }
675
676 public void setNumOfJointDefinedCosToDelete(Integer numOfJointDefinedCosToDelete) {
677 this.numOfJointDefinedCosToDelete = numOfJointDefinedCosToDelete;
678 }
679
680 public boolean isColocatedCO() {
681 return isColocatedCO;
682 }
683
684 public void setColocatedCO(boolean colocatedCO) {
685 isColocatedCO = colocatedCO;
686 }
687
688 public boolean isColocatedCoOnly() {
689 return isColocatedCoOnly;
690 }
691
692 public void setColocatedCoOnly(boolean colocatedCoOnly) {
693 isColocatedCoOnly = colocatedCoOnly;
694 }
695
696 public Integer getNumOfColocatedCosToDelete() {
697 return numOfColocatedCosToDelete;
698 }
699
700 public void setNumOfColocatedCosToDelete(Integer numOfColocatedCosToDelete) {
701 this.numOfColocatedCosToDelete = numOfColocatedCosToDelete;
702 }
703
704 public Integer getNumOfColocatedAosToDelete() {
705 return numOfColocatedAosToDelete;
706 }
707
708 public void setNumOfColocatedAosToDelete(Integer numOfColocatedAosToDelete) {
709 this.numOfColocatedAosToDelete = numOfColocatedAosToDelete;
710 }
711
712 public int getAoCount() {
713 return aoCount;
714 }
715
716 public void setAoCount(int aoCount) {
717 this.aoCount = aoCount;
718 }
719
720 public ActivityOfferingClusterWrapper getSelectedCluster() {
721 return selectedCluster;
722 }
723
724 public void setSelectedCluster(ActivityOfferingClusterWrapper selectedCluster) {
725 this.selectedCluster = selectedCluster;
726 }
727
728 public String getClusterIdForNewAO() {
729 return clusterIdForNewAO;
730 }
731
732 public void setClusterIdForNewAO(String clusterIdForNewAO) {
733 this.clusterIdForNewAO = clusterIdForNewAO;
734 }
735
736 public String getFormatOfferingIdForNewAO() {
737 return formatOfferingIdForNewAO;
738 }
739
740 public void setFormatOfferingIdForNewAO(String formatOfferingIdForNewAO) {
741 this.formatOfferingIdForNewAO = formatOfferingIdForNewAO;
742 }
743
744 public String getSelectedTabId() {
745 return selectedTabId;
746 }
747
748 public void setSelectedTabId(String selectedTabId) {
749 this.selectedTabId = selectedTabId;
750 }
751
752 public CourseOfferingContextBar getContextBar() {
753 return contextBar;
754 }
755
756 public void setContextBar(CourseOfferingContextBar contextBar) {
757 this.contextBar = contextBar;
758 }
759
760 public boolean isRequisiteLink() {
761 return requisiteLink;
762 }
763
764 public void setRequisiteLink(boolean requisiteLink) {
765 this.requisiteLink = requisiteLink;
766 }
767 }