1 | |
package org.kuali.student.enrollment.registration.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.registration.course.infc.RegResponseItem; |
13 | |
import org.kuali.student.r2.common.dto.HasAttributesAndMetaInfo; |
14 | |
import org.kuali.student.r2.common.dto.OperationStatusInfo; |
15 | |
import org.w3c.dom.Element; |
16 | |
|
17 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
18 | |
@XmlType(name = "RegResponseItemInfo", propOrder = {"courseRegistrationId", "courseWaitlistEntryId", "operationStatus", |
19 | |
"_futureElements"}) |
20 | |
public class RegResponseItemInfo implements RegResponseItem, Serializable { |
21 | |
|
22 | |
private static final long serialVersionUID = 1L; |
23 | |
@XmlElement |
24 | |
private String courseRegistrationId; |
25 | |
@XmlElement |
26 | |
private String courseWaitlistEntryId; |
27 | |
@XmlElement |
28 | |
private OperationStatusInfo operationStatus; |
29 | |
@XmlAnyElement |
30 | |
private List<Element> _futureElements; |
31 | |
|
32 | |
public RegResponseItemInfo() { |
33 | 0 | super(); |
34 | 0 | this.courseRegistrationId = null; |
35 | 0 | this.courseWaitlistEntryId = null; |
36 | 0 | this.operationStatus = null; |
37 | 0 | this._futureElements = null; |
38 | |
|
39 | 0 | } |
40 | |
|
41 | 0 | public RegResponseItemInfo(RegResponseItem regResponseItem) { |
42 | |
|
43 | 0 | if (null != regResponseItem) { |
44 | 0 | this.courseRegistrationId = regResponseItem.getCourseRegistrationId(); |
45 | 0 | this.courseWaitlistEntryId = regResponseItem.getCourseWaitlistEntryId(); |
46 | 0 | if (regResponseItem.getOperationStatus() != null) { |
47 | 0 | this.operationStatus = new OperationStatusInfo(regResponseItem.getOperationStatus()); |
48 | |
} |
49 | 0 | this._futureElements = null; |
50 | |
} |
51 | 0 | } |
52 | |
|
53 | |
@Override |
54 | |
public String getCourseRegistrationId() { |
55 | 0 | return courseRegistrationId; |
56 | |
} |
57 | |
|
58 | |
@Override |
59 | |
public String getCourseWaitlistEntryId() { |
60 | 0 | return courseWaitlistEntryId; |
61 | |
} |
62 | |
|
63 | |
public void setCourseRegistrationId(String courseRegistrationId) { |
64 | 0 | this.courseRegistrationId = courseRegistrationId; |
65 | 0 | } |
66 | |
|
67 | |
public void setCourseWaitlistEntryId(String courseWaitlistEntryId) { |
68 | 0 | this.courseWaitlistEntryId = courseWaitlistEntryId; |
69 | 0 | } |
70 | |
|
71 | |
@Override |
72 | |
public OperationStatusInfo getOperationStatus() { |
73 | 0 | return operationStatus; |
74 | |
} |
75 | |
|
76 | |
public void setOperationStatus(OperationStatusInfo operationStatus) { |
77 | 0 | this.operationStatus = operationStatus; |
78 | 0 | } |
79 | |
|
80 | |
} |