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.adapter;
18  
19  import org.kuali.student.enrollment.courseoffering.dto.ActivityOfferingInfo;
20  import org.kuali.student.r2.common.dto.BulkStatusInfo;
21  
22  import java.util.List;
23  
24  /**
25   * Used by the AutogenRegGroupServiceAdapter
26   *
27   * @author Kuali Student Team
28   */
29  public class ActivityOfferingResult {
30      private ActivityOfferingInfo createdActivityOffering;
31      private List<BulkStatusInfo> generatedRegistrationGroups;
32      private BulkStatusInfo clusterstatus;
33  
34      public ActivityOfferingResult() {
35          clusterstatus = new BulkStatusInfo();
36          clusterstatus.setSuccess(Boolean.TRUE); // By default, set it true
37      }
38  
39      public ActivityOfferingInfo getCreatedActivityOffering() {
40          return createdActivityOffering;
41      }
42  
43      public void setCreatedActivityOffering(ActivityOfferingInfo createdActivityOffering) {
44          this.createdActivityOffering = createdActivityOffering;
45      }
46  
47      public List<BulkStatusInfo> getGeneratedRegistrationGroups() {
48          return generatedRegistrationGroups;
49      }
50  
51      public void setGeneratedRegistrationGroups(List<BulkStatusInfo> generatedRegistrationGroups) {
52          this.generatedRegistrationGroups = generatedRegistrationGroups;
53      }
54  
55      public BulkStatusInfo getClusterstatus() {
56          return clusterstatus;
57      }
58  
59      public void setClusterstatus(BulkStatusInfo clusterstatus) {
60          this.clusterstatus = clusterstatus;
61      }
62  }