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