View Javadoc

1   /*
2    * Copyright 2011 The Kuali Foundation 
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the
5    * "License"); you may not use this file except in compliance with the
6    * License. You may obtain a copy of the License at
7    *
8    * http://www.osedu.org/licenses/ECL-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13   * implied. See the License for the specific language governing
14   * permissions and limitations under the License.
15   */
16  
17  package org.kuali.student.enrollment.courseregistration.dto;
18  
19  import java.io.Serializable;
20  import java.util.List;
21  
22  import javax.xml.bind.annotation.XmlAccessType;
23  import javax.xml.bind.annotation.XmlAccessorType;
24  import javax.xml.bind.annotation.XmlAnyElement;
25  import javax.xml.bind.annotation.XmlElement;
26  import javax.xml.bind.annotation.XmlType;
27  
28  import org.kuali.student.enrollment.courseregistration.infc.RegistrationRequestItem;
29  import org.kuali.student.r2.common.dto.IdEntityInfo;
30  import org.w3c.dom.Element;
31  
32  @XmlAccessorType(XmlAccessType.FIELD)
33  @XmlType(name = "RegistrationRequestItemInfo", propOrder = {
34                  "id", "name", "descr", "typeKey", "stateKey",
35                  "registrationRequestId", "studentId", 
36                  "newRegistrationGroupId", "existingRegistrationGroupId", 
37                  "credits", "gradingOptionId", "okToWaitlist", "okToHoldUntilList", 
38                  "meta", "attributes", "_futureElements"})
39  
40  public class RegistrationRequestItemInfo 
41      extends IdEntityInfo 
42      implements RegistrationRequestItem, Serializable {
43  
44      private static final long serialVersionUID = 1L;
45    
46      @XmlElement
47      private String registrationRequestId;
48  
49      @XmlElement
50      private String studentId;
51  
52      @XmlElement
53      private String newRegistrationGroupId;
54  
55      @XmlElement
56      private String existingRegistrationGroupId;
57  
58      @XmlElement
59      private String credits;
60  
61      @XmlElement
62      private String gradingOptionId;
63  
64      @XmlElement
65      private Boolean okToWaitlist;
66  
67      @XmlElement
68      private Boolean okToHoldUntilList;
69  
70      @XmlAnyElement
71      private List<Element> _futureElements;
72  
73      /**
74       * Constructs a new RegistrationRequestItemInfo.
75       */
76      public RegistrationRequestItemInfo() {
77      }
78  
79      /**
80       * Constructs a new RegistrationRequestItemInfo from another
81       * RegistrationRequestItem.
82       *
83       * @param reqistrationRequestItem the RegistrationRequestItem to
84       *        copy
85       */
86      public RegistrationRequestItemInfo(RegistrationRequestItem registrationRequestItem) {
87          super(registrationRequestItem);
88  
89          if (registrationRequestItem != null) {
90              this.registrationRequestId = registrationRequestItem.getRegistrationRequestId();
91              this.studentId = registrationRequestItem.getStudentId();
92              this.newRegistrationGroupId = registrationRequestItem.getNewRegistrationGroupId();
93              this.existingRegistrationGroupId = registrationRequestItem.getExistingRegistrationGroupId();
94              this.credits = registrationRequestItem.getCredits();
95              this.gradingOptionId = registrationRequestItem.getGradingOptionId();
96              this.okToWaitlist = registrationRequestItem.getOkToWaitlist();
97              this.okToHoldUntilList = registrationRequestItem.getOkToHoldUntilList();
98          }
99      }
100 
101     @Override
102     public String getRegistrationRequestId() {
103         return registrationRequestId;
104     }
105 
106     public void setRegistrationRequestId(String registrationRequestId) {
107         this.registrationRequestId = registrationRequestId;
108     }
109 
110     @Override
111     public String getStudentId() {
112         return studentId;
113     }
114 
115     public void setStudentId(String studentId) {
116         this.studentId = studentId;
117     }
118 
119     @Override
120     public String getNewRegistrationGroupId() {
121         return newRegistrationGroupId;
122     }
123 
124     public void setNewRegistrationGroupId(String newRegistrationGroupId) {
125         this.newRegistrationGroupId = newRegistrationGroupId;
126     }
127 
128     @Override
129     public String getExistingRegistrationGroupId() {
130         return existingRegistrationGroupId;
131     }
132 
133     public void setExistingRegistrationGroupId(String existingRegistrationGroupId) {
134         this.existingRegistrationGroupId = existingRegistrationGroupId;
135     }
136 
137     @Override
138     public String getCredits() {
139         return credits;
140     }
141 
142     public void setCredits(String credits) {
143         this.credits = credits;
144     }
145 
146     @Override
147     public String getGradingOptionId() {
148         return gradingOptionId;
149     }
150 
151     public void setGradingOptionId(String gradingOptionId) {
152         this.gradingOptionId = gradingOptionId;
153     }
154 
155     @Override
156     public Boolean getOkToWaitlist() {
157         return okToWaitlist;
158     }
159 
160     public void setOkToWaitlist(Boolean okToWaitlist) {
161         this.okToWaitlist = okToWaitlist;
162     }
163 
164     @Override
165     public Boolean getOkToHoldUntilList() {
166         return okToHoldUntilList;
167     }
168 
169     public void setOkToHoldUntilList(Boolean okToHoldUntilList) {
170         this.okToHoldUntilList = okToHoldUntilList;
171     }
172 }