1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.lum.lu.dto; |
17 | |
|
18 | |
import org.kuali.student.r2.common.dto.AmountInfo; |
19 | |
import org.kuali.student.r2.common.dto.IdNamelessEntityInfo; |
20 | |
import org.kuali.student.r2.common.dto.TimeAmountInfo; |
21 | |
import org.kuali.student.r2.core.versionmanagement.dto.VersionInfo; |
22 | |
import org.kuali.student.r2.lum.lu.infc.Accreditation; |
23 | |
import org.kuali.student.r2.lum.lu.infc.AdminOrg; |
24 | |
import org.kuali.student.r2.lum.lu.infc.Clu; |
25 | |
import org.kuali.student.r2.lum.lu.infc.CluIdentifier; |
26 | |
import org.kuali.student.r2.lum.lu.infc.CluInstructor; |
27 | |
import org.kuali.student.r2.lum.lu.infc.LuCode; |
28 | |
|
29 | |
import javax.xml.bind.Element; |
30 | |
import javax.xml.bind.annotation.XmlAccessType; |
31 | |
import javax.xml.bind.annotation.XmlAccessorType; |
32 | |
import javax.xml.bind.annotation.XmlAnyElement; |
33 | |
import javax.xml.bind.annotation.XmlElement; |
34 | |
import javax.xml.bind.annotation.XmlType; |
35 | |
import java.io.Serializable; |
36 | |
import java.util.ArrayList; |
37 | |
import java.util.Date; |
38 | |
import java.util.List; |
39 | |
|
40 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
41 | |
@XmlType(name = "CluInfo", propOrder = {"id", "typeKey", "stateKey", "officialIdentifier", "alternateIdentifiers", "studySubjectArea", "campusLocations", "accreditations", "adminOrgs", "primaryInstructor", "instructors", |
42 | |
"expectedFirstAtp", "lastAtp", "lastAdmitAtp", "intensity", "stdDuration", "canCreateLui", "referenceURL", "luCodes", "nextReviewPeriod", "isEnrollable", "offeredAtpTypes", "hasEarlyDropDeadline", "defaultEnrollmentEstimate", |
43 | |
"defaultMaximumEnrollment", "isHazardousForDisabledStudents", "feeInfo", "accountingInfo", "versionInfo", "effectiveDate", "expirationDate", "meta", "attributes", "_futureElements"}) |
44 | |
public class CluInfo extends IdNamelessEntityInfo implements Serializable, Clu { |
45 | |
|
46 | |
private static final long serialVersionUID = 1L; |
47 | |
|
48 | |
@XmlElement |
49 | |
private CluIdentifierInfo officialIdentifier; |
50 | |
|
51 | |
@XmlElement |
52 | |
private List<CluIdentifierInfo> alternateIdentifiers; |
53 | |
|
54 | |
@XmlElement |
55 | |
private String studySubjectArea; |
56 | |
|
57 | |
@XmlElement |
58 | |
private List<String> campusLocations; |
59 | |
|
60 | |
@XmlElement |
61 | |
private List<AccreditationInfo> accreditations; |
62 | |
|
63 | |
@XmlElement |
64 | |
private List<AdminOrgInfo> adminOrgs; |
65 | |
|
66 | |
@XmlElement |
67 | |
private CluInstructorInfo primaryInstructor; |
68 | |
|
69 | |
@XmlElement |
70 | |
private List<CluInstructorInfo> instructors; |
71 | |
|
72 | |
@XmlElement |
73 | |
private String expectedFirstAtp; |
74 | |
|
75 | |
@XmlElement |
76 | |
private String lastAtp; |
77 | |
|
78 | |
@XmlElement |
79 | |
private String lastAdmitAtp; |
80 | |
|
81 | |
@XmlElement |
82 | |
private AmountInfo intensity; |
83 | |
|
84 | |
@XmlElement |
85 | |
private TimeAmountInfo stdDuration; |
86 | |
|
87 | |
@XmlElement |
88 | |
private boolean canCreateLui; |
89 | |
|
90 | |
@XmlElement |
91 | |
private String referenceURL; |
92 | |
|
93 | |
@XmlElement |
94 | |
private List<LuCodeInfo> luCodes; |
95 | |
|
96 | |
@XmlElement |
97 | |
private String nextReviewPeriod; |
98 | |
|
99 | |
@XmlElement |
100 | |
private boolean isEnrollable; |
101 | |
|
102 | |
@XmlElement |
103 | |
private List<String> offeredAtpTypes; |
104 | |
|
105 | |
@XmlElement |
106 | |
private boolean hasEarlyDropDeadline; |
107 | |
|
108 | |
@XmlElement |
109 | |
private int defaultEnrollmentEstimate; |
110 | |
|
111 | |
@XmlElement |
112 | |
private int defaultMaximumEnrollment; |
113 | |
|
114 | |
@XmlElement |
115 | |
private boolean isHazardousForDisabledStudents; |
116 | |
|
117 | |
@XmlElement |
118 | |
private CluFeeInfo feeInfo; |
119 | |
|
120 | |
@XmlElement |
121 | |
private CluAccountingInfo accountingInfo; |
122 | |
|
123 | |
@XmlElement |
124 | |
private VersionInfo versionInfo; |
125 | |
|
126 | |
@XmlElement |
127 | |
private Date effectiveDate; |
128 | |
|
129 | |
@XmlElement |
130 | |
private Date expirationDate; |
131 | |
|
132 | |
@XmlAnyElement |
133 | |
private List<Element> _futureElements; |
134 | |
|
135 | 0 | public CluInfo() { |
136 | |
|
137 | 0 | } |
138 | |
|
139 | |
public CluInfo(Clu clu) { |
140 | 0 | super(clu); |
141 | 0 | if (null != clu) { |
142 | 0 | this.officialIdentifier = (null != clu.getOfficialIdentifier()) ? new CluIdentifierInfo(clu.getOfficialIdentifier()) : null; |
143 | 0 | this.alternateIdentifiers = new ArrayList<CluIdentifierInfo>(); |
144 | 0 | for (CluIdentifier cluIdentifier : clu.getAlternateIdentifiers()) { |
145 | 0 | this.alternateIdentifiers.add(new CluIdentifierInfo(cluIdentifier)); |
146 | |
} |
147 | 0 | this.studySubjectArea = clu.getStudySubjectArea(); |
148 | 0 | this.campusLocations = (null != clu.getCampusLocations()) ? new ArrayList<String>(clu.getCampusLocations()) : null; |
149 | 0 | this.accreditations = new ArrayList<AccreditationInfo>(); |
150 | 0 | for (Accreditation accreditation : clu.getAccreditations()) { |
151 | 0 | this.accreditations.add(new AccreditationInfo(accreditation)); |
152 | |
} |
153 | 0 | this.adminOrgs = new ArrayList<AdminOrgInfo>(); |
154 | 0 | for (AdminOrg adminOrg : clu.getAdminOrgs()) { |
155 | 0 | this.adminOrgs.add(new AdminOrgInfo(adminOrg)); |
156 | |
} |
157 | 0 | this.primaryInstructor = (null != clu.getPrimaryInstructor()) ? new CluInstructorInfo(clu.getPrimaryInstructor()) : null; |
158 | 0 | this.instructors = new ArrayList<CluInstructorInfo>(); |
159 | 0 | for (CluInstructor cluInstructor : clu.getInstructors()) { |
160 | 0 | this.instructors.add(new CluInstructorInfo(cluInstructor)); |
161 | |
} |
162 | 0 | this.expectedFirstAtp = clu.getExpectedFirstAtp(); |
163 | 0 | this.lastAtp = clu.getLastAtp(); |
164 | 0 | this.lastAdmitAtp = clu.getLastAdmitAtp(); |
165 | 0 | this.intensity = (null != clu.getIntensity()) ? new AmountInfo(clu.getIntensity()) : null; |
166 | 0 | this.stdDuration = (null != clu.getStdDuration()) ? new TimeAmountInfo(clu.getStdDuration()) : null; |
167 | 0 | this.canCreateLui = clu.isCanCreateLui(); |
168 | 0 | this.referenceURL = clu.getReferenceURL(); |
169 | 0 | this.luCodes = new ArrayList<LuCodeInfo>(); |
170 | 0 | for (LuCode luCode : clu.getLuCodes()) { |
171 | 0 | this.luCodes.add(new LuCodeInfo(luCode)); |
172 | |
} |
173 | 0 | this.nextReviewPeriod = clu.getNextReviewPeriod(); |
174 | 0 | this.isEnrollable = clu.isEnrollable(); |
175 | 0 | this.offeredAtpTypes = (null != clu.getOfferedAtpTypes()) ? new ArrayList<String>(clu.getOfferedAtpTypes()) : null; |
176 | 0 | this.hasEarlyDropDeadline = clu.isHasEarlyDropDeadline(); |
177 | 0 | this.defaultEnrollmentEstimate = clu.getDefaultEnrollmentEstimate(); |
178 | 0 | this.defaultMaximumEnrollment = clu.getDefaultMaximumEnrollment(); |
179 | 0 | this.isHazardousForDisabledStudents = clu.isHazardousForDisabledStudents(); |
180 | 0 | this.feeInfo = (null != clu.getFeeInfo()) ? new CluFeeInfo(clu.getFeeInfo()) : null; |
181 | 0 | this.accountingInfo = (null != clu.getAccountingInfo()) ? new CluAccountingInfo(clu.getAccountingInfo()) : null; |
182 | 0 | this.versionInfo = (null != clu.getVersionInfo()) ? new VersionInfo(clu.getVersionInfo()) : null; |
183 | 0 | this.effectiveDate = (null != clu.getEffectiveDate()) ? new Date(clu.getEffectiveDate().getTime()) : null; |
184 | 0 | this.expirationDate = (null != clu.getExpirationDate()) ? new Date(clu.getExpirationDate().getTime()) : null; |
185 | |
} |
186 | 0 | } |
187 | |
|
188 | |
@Override |
189 | |
public CluIdentifierInfo getOfficialIdentifier() { |
190 | 0 | return officialIdentifier; |
191 | |
} |
192 | |
|
193 | |
public void setOfficialIdentifier(CluIdentifierInfo officialIdentifier) { |
194 | 0 | this.officialIdentifier = officialIdentifier; |
195 | 0 | } |
196 | |
|
197 | |
@Override |
198 | |
public List<CluIdentifierInfo> getAlternateIdentifiers() { |
199 | 0 | if (alternateIdentifiers == null) { |
200 | 0 | alternateIdentifiers = new ArrayList<CluIdentifierInfo>(); |
201 | |
} |
202 | 0 | return alternateIdentifiers; |
203 | |
} |
204 | |
|
205 | |
public void setAlternateIdentifiers(List<CluIdentifierInfo> alternateIdentifiers) { |
206 | 0 | this.alternateIdentifiers = alternateIdentifiers; |
207 | 0 | } |
208 | |
|
209 | |
|
210 | |
@Override |
211 | |
public String getStudySubjectArea() { |
212 | 0 | return studySubjectArea; |
213 | |
} |
214 | |
|
215 | |
public void setStudySubjectArea(String studySubjectArea) { |
216 | 0 | this.studySubjectArea = studySubjectArea; |
217 | 0 | } |
218 | |
|
219 | |
@Override |
220 | |
public List<AccreditationInfo> getAccreditations() { |
221 | 0 | if (accreditations == null) { |
222 | 0 | accreditations = new ArrayList<AccreditationInfo>(); |
223 | |
} |
224 | 0 | return accreditations; |
225 | |
} |
226 | |
|
227 | |
public void setAccreditations(List<AccreditationInfo> accreditations) { |
228 | 0 | this.accreditations = accreditations; |
229 | 0 | } |
230 | |
|
231 | |
@Override |
232 | |
public List<String> getCampusLocations() { |
233 | 0 | if (campusLocations == null) { |
234 | 0 | campusLocations = new ArrayList<String>(); |
235 | |
} |
236 | 0 | return campusLocations; |
237 | |
} |
238 | |
|
239 | |
public void setCampusLocations(List<String> campusLocations) { |
240 | 0 | this.campusLocations = campusLocations; |
241 | 0 | } |
242 | |
|
243 | |
@Override |
244 | |
public List<AdminOrgInfo> getAdminOrgs() { |
245 | 0 | if (adminOrgs == null) { |
246 | 0 | adminOrgs = new ArrayList<AdminOrgInfo>(); |
247 | |
} |
248 | 0 | return adminOrgs; |
249 | |
} |
250 | |
|
251 | |
public void setAdminOrgs(List<AdminOrgInfo> adminOrgs) { |
252 | 0 | this.adminOrgs = adminOrgs; |
253 | 0 | } |
254 | |
|
255 | |
@Override |
256 | |
public CluInstructorInfo getPrimaryInstructor() { |
257 | 0 | return primaryInstructor; |
258 | |
} |
259 | |
|
260 | |
public void setPrimaryInstructor(CluInstructorInfo primaryInstructor) { |
261 | 0 | this.primaryInstructor = primaryInstructor; |
262 | 0 | } |
263 | |
|
264 | |
@Override |
265 | |
public List<CluInstructorInfo> getInstructors() { |
266 | 0 | if (instructors == null) { |
267 | 0 | instructors = new ArrayList<CluInstructorInfo>(); |
268 | |
} |
269 | 0 | return instructors; |
270 | |
} |
271 | |
|
272 | |
public void setInstructors(List<CluInstructorInfo> instructors) { |
273 | 0 | this.instructors = instructors; |
274 | 0 | } |
275 | |
|
276 | |
@Override |
277 | |
public AmountInfo getIntensity() { |
278 | 0 | return intensity; |
279 | |
} |
280 | |
|
281 | |
public void setIntensity(AmountInfo intensity) { |
282 | 0 | this.intensity = intensity; |
283 | 0 | } |
284 | |
|
285 | |
@Override |
286 | |
public TimeAmountInfo getStdDuration() { |
287 | 0 | return stdDuration; |
288 | |
} |
289 | |
|
290 | |
public void setStdDuration(TimeAmountInfo stdDuration) { |
291 | 0 | this.stdDuration = stdDuration; |
292 | 0 | } |
293 | |
|
294 | |
@Override |
295 | |
public boolean isCanCreateLui() { |
296 | 0 | return canCreateLui; |
297 | |
} |
298 | |
|
299 | |
public void setCanCreateLui(boolean canCreateLui) { |
300 | 0 | this.canCreateLui = canCreateLui; |
301 | 0 | } |
302 | |
|
303 | |
@Override |
304 | |
public String getReferenceURL() { |
305 | 0 | return referenceURL; |
306 | |
} |
307 | |
|
308 | |
public void setReferenceURL(String referenceURL) { |
309 | 0 | this.referenceURL = referenceURL; |
310 | 0 | } |
311 | |
|
312 | |
@Override |
313 | |
public List<LuCodeInfo> getLuCodes() { |
314 | 0 | if (luCodes == null) { |
315 | 0 | luCodes = new ArrayList<LuCodeInfo>(); |
316 | |
} |
317 | 0 | return luCodes; |
318 | |
} |
319 | |
|
320 | |
public void setLuCodes(List<LuCodeInfo> luCodes) { |
321 | 0 | this.luCodes = luCodes; |
322 | 0 | } |
323 | |
|
324 | |
@Override |
325 | |
public String getNextReviewPeriod() { |
326 | 0 | return nextReviewPeriod; |
327 | |
} |
328 | |
|
329 | |
public void setNextReviewPeriod(String nextReviewPeriod) { |
330 | 0 | this.nextReviewPeriod = nextReviewPeriod; |
331 | 0 | } |
332 | |
|
333 | |
@Override |
334 | |
public boolean isEnrollable() { |
335 | 0 | return isEnrollable; |
336 | |
} |
337 | |
|
338 | |
public void setEnrollable(boolean isEnrollable) { |
339 | 0 | this.isEnrollable = isEnrollable; |
340 | 0 | } |
341 | |
|
342 | |
@Override |
343 | |
public List<String> getOfferedAtpTypes() { |
344 | 0 | if (offeredAtpTypes == null) { |
345 | 0 | offeredAtpTypes = new ArrayList<String>(); |
346 | |
} |
347 | 0 | return offeredAtpTypes; |
348 | |
} |
349 | |
|
350 | |
public void setOfferedAtpTypes(List<String> offeredAtpTypes) { |
351 | 0 | this.offeredAtpTypes = offeredAtpTypes; |
352 | 0 | } |
353 | |
|
354 | |
@Override |
355 | |
public boolean isHasEarlyDropDeadline() { |
356 | 0 | return hasEarlyDropDeadline; |
357 | |
} |
358 | |
|
359 | |
public void setHasEarlyDropDeadline(boolean hasEarlyDropDeadline) { |
360 | 0 | this.hasEarlyDropDeadline = hasEarlyDropDeadline; |
361 | 0 | } |
362 | |
|
363 | |
@Override |
364 | |
public int getDefaultEnrollmentEstimate() { |
365 | 0 | return defaultEnrollmentEstimate; |
366 | |
} |
367 | |
|
368 | |
public void setDefaultEnrollmentEstimate(int defaultEnrollmentEstimate) { |
369 | 0 | this.defaultEnrollmentEstimate = defaultEnrollmentEstimate; |
370 | 0 | } |
371 | |
|
372 | |
@Override |
373 | |
public int getDefaultMaximumEnrollment() { |
374 | 0 | return defaultMaximumEnrollment; |
375 | |
} |
376 | |
|
377 | |
public void setDefaultMaximumEnrollment(int defaultMaximumEnrollment) { |
378 | 0 | this.defaultMaximumEnrollment = defaultMaximumEnrollment; |
379 | 0 | } |
380 | |
|
381 | |
@Override |
382 | |
public boolean isHazardousForDisabledStudents() { |
383 | 0 | return isHazardousForDisabledStudents; |
384 | |
} |
385 | |
|
386 | |
public void setHazardousForDisabledStudents(boolean isHazardousForDisabledStudents) { |
387 | 0 | this.isHazardousForDisabledStudents = isHazardousForDisabledStudents; |
388 | 0 | } |
389 | |
|
390 | |
@Override |
391 | |
public CluFeeInfo getFeeInfo() { |
392 | 0 | return feeInfo; |
393 | |
} |
394 | |
|
395 | |
public void setFeeInfo(CluFeeInfo feeInfo) { |
396 | 0 | this.feeInfo = feeInfo; |
397 | 0 | } |
398 | |
|
399 | |
@Override |
400 | |
public CluAccountingInfo getAccountingInfo() { |
401 | 0 | return accountingInfo; |
402 | |
} |
403 | |
|
404 | |
public void setAccountingInfo(CluAccountingInfo accountingInfo) { |
405 | 0 | this.accountingInfo = accountingInfo; |
406 | 0 | } |
407 | |
|
408 | |
|
409 | |
@Override |
410 | |
public VersionInfo getVersionInfo() { |
411 | 0 | return versionInfo; |
412 | |
} |
413 | |
|
414 | |
public void setVersionInfo(VersionInfo versionInfo) { |
415 | 0 | this.versionInfo = versionInfo; |
416 | 0 | } |
417 | |
|
418 | |
@Override |
419 | |
public String getExpectedFirstAtp() { |
420 | 0 | return expectedFirstAtp; |
421 | |
} |
422 | |
|
423 | |
public void setExpectedFirstAtp(String expectedFirstAtp) { |
424 | 0 | this.expectedFirstAtp = expectedFirstAtp; |
425 | 0 | } |
426 | |
|
427 | |
@Override |
428 | |
public String getLastAtp() { |
429 | 0 | return lastAtp; |
430 | |
} |
431 | |
|
432 | |
public void setLastAtp(String lastAtp) { |
433 | 0 | this.lastAtp = lastAtp; |
434 | 0 | } |
435 | |
|
436 | |
@Override |
437 | |
public String getLastAdmitAtp() { |
438 | 0 | return lastAdmitAtp; |
439 | |
} |
440 | |
|
441 | |
public void setLastAdmitAtp(String lastAdmitAtp) { |
442 | 0 | this.lastAdmitAtp = lastAdmitAtp; |
443 | 0 | } |
444 | |
|
445 | |
@Override |
446 | |
public Date getEffectiveDate() { |
447 | 0 | return effectiveDate; |
448 | |
} |
449 | |
|
450 | |
public void setEffectiveDate(Date effectiveDate) { |
451 | 0 | this.effectiveDate = effectiveDate; |
452 | 0 | } |
453 | |
|
454 | |
@Override |
455 | |
public Date getExpirationDate() { |
456 | 0 | return expirationDate; |
457 | |
} |
458 | |
|
459 | |
public void setExpirationDate(Date expirationDate) { |
460 | 0 | this.expirationDate = expirationDate; |
461 | 0 | } |
462 | |
|
463 | |
@Override |
464 | |
public String toString() { |
465 | 0 | return "CluInfo[id=" + this.getId() + ", type=" + this.getTypeKey() + "]"; |
466 | |
} |
467 | |
} |