1 | |
package org.kuali.student.enrollment.waitlist.course.dto; |
2 | |
|
3 | |
import java.io.Serializable; |
4 | |
import java.util.List; |
5 | |
|
6 | |
import javax.xml.bind.annotation.XmlAccessType; |
7 | |
import javax.xml.bind.annotation.XmlAccessorType; |
8 | |
import javax.xml.bind.annotation.XmlAnyElement; |
9 | |
import javax.xml.bind.annotation.XmlElement; |
10 | |
import javax.xml.bind.annotation.XmlType; |
11 | |
|
12 | |
import org.kuali.student.enrollment.waitlist.course.infc.CourseWaitlist; |
13 | |
import org.kuali.student.r2.common.dto.IdEntityInfo; |
14 | |
import org.w3c.dom.Element; |
15 | |
|
16 | |
@XmlAccessorType(XmlAccessType.FIELD) |
17 | |
@XmlType(name = "CourseWaitlistInfo", propOrder = {"id", "typeKey", "stateKey", "courseOfferingId", |
18 | |
"courseWailtistEntryIds", "meta", "attributes", "_futureElements"}) |
19 | |
public class CourseWaitlistInfo extends IdEntityInfo implements CourseWaitlist, Serializable { |
20 | |
|
21 | |
private static final long serialVersionUID = 1L; |
22 | |
@XmlElement |
23 | |
private String courseOfferingId; |
24 | |
@XmlElement |
25 | |
private List<String> courseWailtistEntryIds; |
26 | |
@XmlAnyElement |
27 | |
private List<Element> _futureElements; |
28 | |
|
29 | |
public CourseWaitlistInfo() { |
30 | 0 | super(); |
31 | 0 | this.courseOfferingId = null; |
32 | 0 | this.courseWailtistEntryIds = null; |
33 | 0 | this._futureElements = null; |
34 | 0 | } |
35 | |
|
36 | |
public CourseWaitlistInfo(CourseWaitlist courseWaitlist) { |
37 | 0 | super(courseWaitlist); |
38 | 0 | if (null != courseWaitlist) { |
39 | 0 | this.courseOfferingId = courseWaitlist.getCourseOfferingId(); |
40 | 0 | this.courseWailtistEntryIds = courseWaitlist.getCourseWailtistEntryIds(); |
41 | 0 | this._futureElements = null; |
42 | |
} |
43 | 0 | } |
44 | |
|
45 | |
public void setCourseOfferingId(String courseOfferingId) { |
46 | 0 | this.courseOfferingId = courseOfferingId; |
47 | 0 | } |
48 | |
|
49 | |
public void setCourseWailtistEntryIds(List<String> courseWailtistEntryIds) { |
50 | 0 | this.courseWailtistEntryIds = courseWailtistEntryIds; |
51 | 0 | } |
52 | |
|
53 | |
@Override |
54 | |
public String getCourseOfferingId() { |
55 | 0 | return courseOfferingId; |
56 | |
} |
57 | |
|
58 | |
@Override |
59 | |
public List<String> getCourseWailtistEntryIds() { |
60 | 0 | return courseWailtistEntryIds; |
61 | |
} |
62 | |
|
63 | |
} |