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