1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.enrollment.courseoffering.dto; |
17 | |
|
18 | |
import java.util.ArrayList; |
19 | |
import java.util.List; |
20 | |
|
21 | |
import javax.xml.bind.annotation.XmlAccessType; |
22 | |
import javax.xml.bind.annotation.XmlAccessorType; |
23 | |
import javax.xml.bind.annotation.XmlAnyElement; |
24 | |
import javax.xml.bind.annotation.XmlElement; |
25 | |
import javax.xml.bind.annotation.XmlType; |
26 | |
|
27 | |
import org.kuali.student.enrollment.courseoffering.infc.FormatOffering; |
28 | |
import org.kuali.student.r2.common.dto.IdEntityInfo; |
29 | |
|
30 | |
import org.w3c.dom.Element; |
31 | |
|
32 | |
@XmlAccessorType(XmlAccessType.FIELD) |
33 | |
@XmlType(name = "FormatOfferingInfo", propOrder = { |
34 | |
"id", "typeKey", "stateKey", "name", "descr", |
35 | |
"courseOfferingId", "formatId", "termId", |
36 | |
"activityOfferingTypeKeys", "gradeRosterLevelTypeKey", "finalExamLevelTypeKey", |
37 | |
"meta", "attributes", "_futureElements"}) |
38 | |
public class FormatOfferingInfo extends IdEntityInfo implements FormatOffering { |
39 | |
|
40 | |
private static final long serialVersionUID = 1L; |
41 | |
|
42 | |
@XmlElement |
43 | |
private String courseOfferingId; |
44 | |
|
45 | |
@XmlElement |
46 | |
private String formatId; |
47 | |
|
48 | |
@XmlElement |
49 | |
private String termId; |
50 | |
|
51 | |
@XmlElement |
52 | |
private List<String> activityOfferingTypeKeys; |
53 | |
|
54 | |
@XmlElement |
55 | |
private String gradeRosterLevelTypeKey; |
56 | |
|
57 | |
@XmlElement |
58 | |
private String finalExamLevelTypeKey; |
59 | |
|
60 | |
@XmlAnyElement |
61 | |
private List<Element> _futureElements; |
62 | |
|
63 | |
|
64 | 0 | public FormatOfferingInfo() { |
65 | 0 | } |
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | |
public FormatOfferingInfo(FormatOffering offering) { |
74 | 0 | super(offering); |
75 | |
|
76 | 0 | if (offering == null) { |
77 | 0 | return; |
78 | |
} |
79 | 0 | this.gradeRosterLevelTypeKey = offering.getGradeRosterLevelTypeKey(); |
80 | 0 | this.finalExamLevelTypeKey = offering.getFinalExamLevelTypeKey (); |
81 | 0 | this.courseOfferingId = offering.getCourseOfferingId(); |
82 | 0 | this.formatId = offering.getFormatId(); |
83 | |
|
84 | 0 | this.termId = offering.getTermId(); |
85 | 0 | if (offering.getActivityOfferingTypeKeys() != null) { |
86 | 0 | this.activityOfferingTypeKeys = new ArrayList<String>(offering.getActivityOfferingTypeKeys()); |
87 | |
} |
88 | 0 | } |
89 | |
|
90 | |
@Override |
91 | |
public String getCourseOfferingId() { |
92 | 0 | return courseOfferingId; |
93 | |
} |
94 | |
|
95 | |
public void setCourseOfferingId(String courseOfferingId) { |
96 | 0 | this.courseOfferingId = courseOfferingId; |
97 | 0 | } |
98 | |
|
99 | |
@Override |
100 | |
public String getFormatId() { |
101 | 0 | return formatId; |
102 | |
} |
103 | |
|
104 | |
public void setFormatId(String formatId) { |
105 | 0 | this.formatId = formatId; |
106 | 0 | } |
107 | |
|
108 | |
@Override |
109 | |
public List<String> getActivityOfferingTypeKeys() { |
110 | 0 | if (activityOfferingTypeKeys == null) { |
111 | 0 | activityOfferingTypeKeys = new ArrayList<String>(); |
112 | |
} |
113 | |
|
114 | 0 | return activityOfferingTypeKeys; |
115 | |
} |
116 | |
|
117 | |
|
118 | |
|
119 | |
@Override |
120 | |
public String getFinalExamLevelTypeKey() { |
121 | 0 | return this.finalExamLevelTypeKey; |
122 | |
} |
123 | |
|
124 | |
@Override |
125 | |
public String getGradeRosterLevelTypeKey() { |
126 | 0 | return this.gradeRosterLevelTypeKey; |
127 | |
} |
128 | |
|
129 | |
|
130 | |
public void setGradeRosterLevelTypeKey(String gradeRosterLevelTypeKey) { |
131 | 0 | this.gradeRosterLevelTypeKey = gradeRosterLevelTypeKey; |
132 | 0 | } |
133 | |
|
134 | |
public void setFinalExamLevelTypeKey(String finalExamLevelTypeKey) { |
135 | 0 | this.finalExamLevelTypeKey = finalExamLevelTypeKey; |
136 | 0 | } |
137 | |
|
138 | |
public void set_futureElements(List<Element> _futureElements) { |
139 | 0 | this._futureElements = _futureElements; |
140 | 0 | } |
141 | |
|
142 | |
public void setActivityOfferingTypeKeys(List<String> activityOfferingTypeKeys) { |
143 | 0 | this.activityOfferingTypeKeys = activityOfferingTypeKeys; |
144 | 0 | } |
145 | |
|
146 | |
public String getTermId() { |
147 | 0 | return termId; |
148 | |
} |
149 | |
|
150 | |
public void setTermId(String termId) { |
151 | 0 | this.termId = termId; |
152 | 0 | } |
153 | |
|
154 | |
} |