1 | |
package org.kuali.student.enrollment.courseregistration.dto; |
2 | |
|
3 | |
import java.io.Serializable; |
4 | |
import java.util.ArrayList; |
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.courseoffering.dto.RegistrationGroupInfo; |
14 | |
import org.kuali.student.enrollment.courseoffering.infc.RegistrationGroup; |
15 | |
import org.kuali.student.enrollment.courseregistration.infc.RegGroupRegistration; |
16 | |
import org.kuali.student.r2.common.dto.RelationshipInfo; |
17 | |
|
18 | |
import com.google.gwt.dom.client.Element; |
19 | |
|
20 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
21 | |
@XmlType(name = "RegGroupRegistrationInfo", propOrder = {"id", "typeKey", "stateKey", "studentId", "registrationGroup", |
22 | |
"activityRegistrations", "effectiveDate", "expirationDate", "meta", "attributes", "_futureElements"}) |
23 | |
public class RegGroupRegistrationInfo extends RelationshipInfo implements RegGroupRegistration, Serializable { |
24 | |
|
25 | |
private static final long serialVersionUID = 1L; |
26 | |
|
27 | |
@XmlElement |
28 | |
private RegistrationGroupInfo registrationGroup; |
29 | |
|
30 | |
@XmlElement |
31 | |
private List<ActivityRegistrationInfo> activityRegistrations; |
32 | |
|
33 | |
@XmlElement |
34 | |
private String studentId; |
35 | |
@XmlAnyElement |
36 | |
private List<Element> _futureElements; |
37 | |
|
38 | |
public RegGroupRegistrationInfo() { |
39 | 0 | super(); |
40 | 0 | this.studentId = null; |
41 | 0 | this._futureElements = null; |
42 | 0 | this.registrationGroup = null; |
43 | 0 | this.activityRegistrations = null; |
44 | 0 | } |
45 | |
|
46 | 0 | public RegGroupRegistrationInfo(RegGroupRegistration regGroupRegistration) { |
47 | |
|
48 | 0 | if (null != regGroupRegistration) { |
49 | 0 | this._futureElements = null; |
50 | 0 | this.studentId = null; |
51 | 0 | this.registrationGroup = new RegistrationGroupInfo(regGroupRegistration.getRegistrationGroup()); |
52 | 0 | this.activityRegistrations = (null != regGroupRegistration.getActivityRegistrations()) ? new ArrayList<ActivityRegistrationInfo>( |
53 | |
(List<ActivityRegistrationInfo>) regGroupRegistration.getActivityRegistrations()) : null; |
54 | |
|
55 | |
} |
56 | 0 | } |
57 | |
|
58 | |
public void setStudentId(String studentId) { |
59 | 0 | this.studentId = studentId; |
60 | 0 | } |
61 | |
|
62 | |
public void setRegistrationGroup(RegistrationGroupInfo registrationGroup) { |
63 | 0 | this.registrationGroup = registrationGroup; |
64 | 0 | } |
65 | |
|
66 | |
public void setActivityRegistrations(List<ActivityRegistrationInfo> activityRegistrations) { |
67 | 0 | this.activityRegistrations = activityRegistrations; |
68 | 0 | } |
69 | |
|
70 | |
@Override |
71 | |
public String getStudentId() { |
72 | 0 | return studentId; |
73 | |
} |
74 | |
|
75 | |
@Override |
76 | |
public RegistrationGroupInfo getRegistrationGroup() { |
77 | 0 | return registrationGroup; |
78 | |
} |
79 | |
|
80 | |
@Override |
81 | |
public List<ActivityRegistrationInfo> getActivityRegistrations() { |
82 | 0 | return activityRegistrations; |
83 | |
} |
84 | |
|
85 | |
} |