1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
package org.kuali.student.enrollment.courseoffering.dto; |
9 | |
|
10 | |
import java.util.ArrayList; |
11 | |
import java.util.List; |
12 | |
|
13 | |
import javax.xml.bind.annotation.XmlAccessType; |
14 | |
import javax.xml.bind.annotation.XmlAccessorType; |
15 | |
import javax.xml.bind.annotation.XmlAnyElement; |
16 | |
import javax.xml.bind.annotation.XmlElement; |
17 | |
import javax.xml.bind.annotation.XmlType; |
18 | |
|
19 | |
import org.kuali.student.enrollment.courseoffering.infc.RegistrationGroup; |
20 | |
import org.kuali.student.r2.common.dto.IdEntityInfo; |
21 | |
import org.kuali.student.r2.common.dto.TimeAmountInfo; |
22 | |
import org.w3c.dom.Element; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
28 | |
@XmlType(name = "RegistrationGroupInfo", propOrder = {"activityOfferingIds", |
29 | |
"courseOfferingId", "registrationCode", "termId", "formatOfferingId", |
30 | |
"isHonorsOffering", "maximumEnrollment", |
31 | |
"minimumEnrollment", "hasWaitlist", "waitlistTypeKey", "waitlistMaximum", |
32 | |
"isWaitlistCheckinRequired", "waitlistCheckinFrequency", "id", |
33 | |
"typeKey", "stateKey", "name", "descr", "meta", "attributes", "_futureElements"}) |
34 | |
public class RegistrationGroupInfo extends IdEntityInfo implements RegistrationGroup { |
35 | |
|
36 | |
private static final long serialVersionUID = 1L; |
37 | |
|
38 | |
@XmlElement |
39 | |
private List<String> activityOfferingIds; |
40 | |
|
41 | |
@XmlElement |
42 | |
private String courseOfferingId; |
43 | |
|
44 | |
@XmlElement |
45 | |
private Integer maximumEnrollment; |
46 | |
|
47 | |
@XmlElement |
48 | |
private Integer minimumEnrollment; |
49 | |
|
50 | |
@XmlElement |
51 | |
private String formatOfferingId; |
52 | |
|
53 | |
@XmlElement |
54 | |
private String registrationCode; |
55 | |
|
56 | |
@XmlElement |
57 | |
private String termId; |
58 | |
|
59 | |
@XmlElement |
60 | |
private Boolean isHonorsOffering; |
61 | |
|
62 | |
@XmlElement |
63 | |
private Boolean hasWaitlist; |
64 | |
|
65 | |
@XmlElement |
66 | |
private String waitlistTypeKey; |
67 | |
|
68 | |
@XmlElement |
69 | |
private Integer waitlistMaximum; |
70 | |
|
71 | |
@XmlElement |
72 | |
private Boolean isWaitlistCheckinRequired; |
73 | |
|
74 | |
@XmlElement |
75 | |
private TimeAmountInfo waitlistCheckinFrequency; |
76 | |
|
77 | |
@XmlAnyElement |
78 | |
private List<Element> _futureElements; |
79 | |
|
80 | 0 | public RegistrationGroupInfo() { |
81 | 0 | this.activityOfferingIds = new ArrayList<String>(); |
82 | 0 | this.courseOfferingId = null; |
83 | 0 | this.formatOfferingId = null; |
84 | 0 | this.hasWaitlist = new Boolean(false); |
85 | 0 | this.isHonorsOffering = new Boolean(false); |
86 | 0 | this.isWaitlistCheckinRequired = new Boolean(false); |
87 | 0 | this.maximumEnrollment = null; |
88 | 0 | this.minimumEnrollment = null; |
89 | 0 | this.registrationCode = null; |
90 | 0 | this.termId = null; |
91 | 0 | this.waitlistCheckinFrequency = null; |
92 | 0 | this.waitlistMaximum = null; |
93 | 0 | this.waitlistTypeKey = null; |
94 | 0 | this._futureElements = null; |
95 | 0 | } |
96 | |
|
97 | |
public RegistrationGroupInfo(RegistrationGroup registrationGroup) { |
98 | 0 | super(registrationGroup); |
99 | |
|
100 | 0 | if(null == registrationGroup) return; |
101 | |
|
102 | 0 | this.activityOfferingIds = (null != registrationGroup.getActivityOfferingIds()) ? new ArrayList<String>(registrationGroup.getActivityOfferingIds()) : null; |
103 | 0 | this.courseOfferingId = registrationGroup.getCourseOfferingId(); |
104 | 0 | this.formatOfferingId = registrationGroup.getFormatOfferingId(); |
105 | 0 | this.hasWaitlist = registrationGroup.getHasWaitlist(); |
106 | 0 | this.isHonorsOffering = (null != registrationGroup.getIsHonorsOffering()) ? new Boolean(registrationGroup.getIsHonorsOffering()) : null; |
107 | 0 | this.isWaitlistCheckinRequired = (null != registrationGroup.getIsWaitlistCheckinRequired()) ? new Boolean(registrationGroup.getIsWaitlistCheckinRequired()) : null; |
108 | 0 | this.maximumEnrollment = registrationGroup.getMaximumEnrollment(); |
109 | 0 | this.minimumEnrollment = registrationGroup.getMinimumEnrollment(); |
110 | 0 | this.registrationCode = registrationGroup.getRegistrationCode(); |
111 | 0 | this.termId = registrationGroup.getTermId(); |
112 | 0 | this.waitlistCheckinFrequency = new TimeAmountInfo(registrationGroup.getWaitlistCheckinFrequency()); |
113 | 0 | this.waitlistMaximum = registrationGroup.getWaitlistMaximum(); |
114 | 0 | this.waitlistTypeKey = registrationGroup.getWaitlistTypeKey(); |
115 | 0 | } |
116 | |
|
117 | |
@Override |
118 | |
public List<String> getActivityOfferingIds() { |
119 | 0 | return activityOfferingIds; |
120 | |
} |
121 | |
|
122 | |
@Override |
123 | |
public String getCourseOfferingId() { |
124 | 0 | return courseOfferingId; |
125 | |
} |
126 | |
|
127 | |
@Override |
128 | |
public Integer getMaximumEnrollment() { |
129 | 0 | return maximumEnrollment; |
130 | |
} |
131 | |
|
132 | |
@Override |
133 | |
public Integer getMinimumEnrollment() { |
134 | 0 | return minimumEnrollment; |
135 | |
} |
136 | |
|
137 | |
@Override |
138 | |
public String getFormatOfferingId() { |
139 | 0 | return formatOfferingId; |
140 | |
} |
141 | |
|
142 | |
@Override |
143 | |
public String getRegistrationCode() { |
144 | 0 | return registrationCode; |
145 | |
} |
146 | |
|
147 | |
@Override |
148 | |
public String getTermId() { |
149 | 0 | return termId; |
150 | |
} |
151 | |
|
152 | |
@Override |
153 | |
public Boolean getIsHonorsOffering() { |
154 | 0 | return isHonorsOffering; |
155 | |
} |
156 | |
|
157 | |
@Override |
158 | |
public Boolean getHasWaitlist() { |
159 | 0 | return hasWaitlist; |
160 | |
} |
161 | |
|
162 | |
@Override |
163 | |
public String getWaitlistTypeKey() { |
164 | 0 | return waitlistTypeKey; |
165 | |
} |
166 | |
|
167 | |
@Override |
168 | |
public Integer getWaitlistMaximum() { |
169 | 0 | return waitlistMaximum; |
170 | |
} |
171 | |
|
172 | |
@Override |
173 | |
public Boolean getIsWaitlistCheckinRequired() { |
174 | 0 | return isWaitlistCheckinRequired; |
175 | |
} |
176 | |
|
177 | |
@Override |
178 | |
public TimeAmountInfo getWaitlistCheckinFrequency() { |
179 | 0 | return waitlistCheckinFrequency; |
180 | |
} |
181 | |
|
182 | |
public void setActivityOfferingIds(List<String> activityOfferingIds) { |
183 | 0 | this.activityOfferingIds = activityOfferingIds; |
184 | 0 | } |
185 | |
|
186 | |
public void setCourseOfferingId(String courseOfferingId) { |
187 | 0 | this.courseOfferingId = courseOfferingId; |
188 | 0 | } |
189 | |
|
190 | |
public void setMaximumEnrollment(Integer maximumEnrollment) { |
191 | 0 | this.maximumEnrollment = maximumEnrollment; |
192 | 0 | } |
193 | |
|
194 | |
public void setMinimumEnrollment(Integer minimumEnrollment) { |
195 | 0 | this.minimumEnrollment = minimumEnrollment; |
196 | 0 | } |
197 | |
|
198 | |
public void setFormatOfferingId(String formatOfferingId) { |
199 | 0 | this.formatOfferingId = formatOfferingId; |
200 | 0 | } |
201 | |
|
202 | |
public void setRegistrationCode(String registrationCode) { |
203 | 0 | this.registrationCode = registrationCode; |
204 | 0 | } |
205 | |
|
206 | |
public void setTermId(String termId) { |
207 | 0 | this.termId = termId; |
208 | 0 | } |
209 | |
|
210 | |
public void setIsHonorsOffering(Boolean isHonorsOffering) { |
211 | 0 | this.isHonorsOffering = isHonorsOffering; |
212 | 0 | } |
213 | |
|
214 | |
public void setHasWaitlist(Boolean hasWaitlist) { |
215 | 0 | this.hasWaitlist = hasWaitlist; |
216 | 0 | } |
217 | |
|
218 | |
public void setWaitlistTypeKey(String waitlistTypeKey) { |
219 | 0 | this.waitlistTypeKey = waitlistTypeKey; |
220 | 0 | } |
221 | |
|
222 | |
public void setWaitlistMaximum(Integer waitlistMaximum) { |
223 | 0 | this.waitlistMaximum = waitlistMaximum; |
224 | 0 | } |
225 | |
|
226 | |
public void setIsWaitlistCheckinRequired(Boolean isWaitlistCheckinRequired) { |
227 | 0 | this.isWaitlistCheckinRequired = isWaitlistCheckinRequired; |
228 | 0 | } |
229 | |
|
230 | |
public void setWaitlistCheckinFrequency(TimeAmountInfo waitlistCheckinFrequency) { |
231 | 0 | this.waitlistCheckinFrequency = waitlistCheckinFrequency; |
232 | 0 | } |
233 | |
} |