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 2/20/13
16   */
17  package org.kuali.student.enrollment.class2.courseoffering.service.facade;
18  
19  import org.kuali.student.enrollment.courseoffering.dto.ActivityOfferingInfo;
20  import org.kuali.student.enrollment.coursewaitlist.dto.CourseWaitListInfo;
21  import org.kuali.student.r2.common.dto.BulkStatusInfo;
22  import org.kuali.student.r2.common.dto.StatusInfo;
23  
24  import java.util.List;
25  
26  /**
27   * Used by the CourseOfferingServiceFacade
28   *
29   * @author Kuali Student Team
30   */
31  public class ActivityOfferingResult {
32      private ActivityOfferingInfo createdActivityOffering;
33      private List<BulkStatusInfo> generatedRegistrationGroups;
34      private BulkStatusInfo clusterstatus;
35      private CourseWaitListInfo waitListInfo;
36      private BulkStatusInfo examOfferingsGenerated; //status for whether or not exam offerings are generated
37      private BulkStatusInfo examPeriodStatus; //status for whether or not exam period exists
38  
39      public ActivityOfferingResult() {
40          clusterstatus = new BulkStatusInfo();
41          clusterstatus.setSuccess(Boolean.TRUE); // By default, set it true
42  
43          examOfferingsGenerated = new BulkStatusInfo();
44          examOfferingsGenerated.setSuccess(Boolean.TRUE); // By default, set it true
45          examPeriodStatus = new BulkStatusInfo();
46          examPeriodStatus.setSuccess(Boolean.TRUE);
47      }
48  
49      public ActivityOfferingInfo getCreatedActivityOffering() {
50          return createdActivityOffering;
51      }
52  
53      public void setCreatedActivityOffering(ActivityOfferingInfo createdActivityOffering) {
54          this.createdActivityOffering = createdActivityOffering;
55      }
56  
57      public List<BulkStatusInfo> getGeneratedRegistrationGroups() {
58          return generatedRegistrationGroups;
59      }
60  
61      public void setGeneratedRegistrationGroups(List<BulkStatusInfo> generatedRegistrationGroups) {
62          this.generatedRegistrationGroups = generatedRegistrationGroups;
63      }
64  
65      public BulkStatusInfo getClusterstatus() {
66          return clusterstatus;
67      }
68  
69      public void setClusterstatus(BulkStatusInfo clusterstatus) {
70          this.clusterstatus = clusterstatus;
71      }
72  
73      public CourseWaitListInfo getWaitListInfo() {
74          return waitListInfo;
75      }
76  
77      public void setWaitListInfo(CourseWaitListInfo waitListInfo) {
78          this.waitListInfo = waitListInfo;
79      }
80  
81      public BulkStatusInfo getExamOfferingsGenerated() {
82          return examOfferingsGenerated;
83      }
84  
85      public void setExamOfferingsGenerated(BulkStatusInfo examOfferingsGenerated) {
86          this.examOfferingsGenerated = examOfferingsGenerated;
87      }
88  
89      public BulkStatusInfo getExamPeriodStatus() {
90          return examPeriodStatus;
91      }
92  
93      public void setExamPeriodStatus(BulkStatusInfo examPeriodStatus) {
94          this.examPeriodStatus = examPeriodStatus;
95      }
96  }