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