1 | |
package org.kuali.student.enrollment.courseoffering.dto; |
2 | |
|
3 | |
import org.kuali.student.enrollment.courseoffering.infc.CourseOfferingAdminDisplay; |
4 | |
import org.kuali.student.r2.common.dto.IdNamelessEntityInfo; |
5 | |
import org.kuali.student.r2.common.infc.RichText; |
6 | |
import org.w3c.dom.Element; |
7 | |
|
8 | |
import javax.xml.bind.annotation.*; |
9 | |
import java.io.Serializable; |
10 | |
import java.util.ArrayList; |
11 | |
import java.util.List; |
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
@XmlAccessorType(XmlAccessType.FIELD) |
18 | |
@XmlType(name = "CourseOfferingAdminDisplayInfo", propOrder = {"id", "typeKey", "stateKey", "courseId", |
19 | |
"termId", "courseOfferingCode", "courseOfferingTitle", "subjectArea","termName", "termCode", "displayGrading", |
20 | |
"displayCredit","typeName", "stateName", "activtyOfferingTypes", "meta", "attributes", "_futureElements"}) |
21 | |
public class CourseOfferingAdminDisplayInfo extends IdNamelessEntityInfo implements CourseOfferingAdminDisplay, Serializable { |
22 | |
|
23 | |
@XmlElement |
24 | |
private String courseId; |
25 | |
|
26 | |
@XmlElement |
27 | |
private String termId; |
28 | |
|
29 | |
@XmlElement |
30 | |
private String courseOfferingTitle; |
31 | |
|
32 | |
@XmlElement |
33 | |
private String courseOfferingCode; |
34 | |
|
35 | |
@XmlElement |
36 | |
private String subjectArea; |
37 | |
|
38 | |
@XmlElement |
39 | |
private String termName; |
40 | |
|
41 | |
@XmlElement |
42 | |
private String termCode; |
43 | |
|
44 | |
@XmlElement |
45 | |
private String displayGrading; |
46 | |
|
47 | |
@XmlElement |
48 | |
private String displayCredit; |
49 | |
|
50 | |
|
51 | |
@XmlElement |
52 | |
private String typeName; |
53 | |
|
54 | |
|
55 | |
@XmlElement |
56 | |
private String stateName; |
57 | |
|
58 | |
@XmlElement |
59 | |
private List<String> activtyOfferingTypes; |
60 | |
|
61 | |
@XmlAnyElement |
62 | |
private List<Element> _futureElements; |
63 | |
|
64 | 0 | public CourseOfferingAdminDisplayInfo() { |
65 | |
|
66 | 0 | } |
67 | |
|
68 | |
public CourseOfferingAdminDisplayInfo(CourseOfferingAdminDisplay courseOfferingAdminDisplay) { |
69 | |
|
70 | 0 | super(courseOfferingAdminDisplay); |
71 | 0 | if (courseOfferingAdminDisplay != null) { |
72 | |
|
73 | 0 | this.termCode = courseOfferingAdminDisplay.getTermCode(); |
74 | 0 | this.termName = courseOfferingAdminDisplay.getTermName(); |
75 | 0 | this.termId = courseOfferingAdminDisplay.getTermId(); |
76 | 0 | this.displayCredit = courseOfferingAdminDisplay.getDisplayCredit(); |
77 | 0 | this.displayGrading = courseOfferingAdminDisplay.getDisplayGrading(); |
78 | 0 | this.activtyOfferingTypes = new ArrayList<String>(courseOfferingAdminDisplay.getActivtyOfferingTypes()); |
79 | 0 | this.typeName = courseOfferingAdminDisplay.getTypeName(); |
80 | 0 | this.stateName = courseOfferingAdminDisplay.getStateName(); |
81 | 0 | this.courseId = courseOfferingAdminDisplay.getCourseId(); |
82 | 0 | this.termId = courseOfferingAdminDisplay.getTermId(); |
83 | 0 | this.courseOfferingTitle = courseOfferingAdminDisplay.getCourseOfferingTitle(); |
84 | 0 | this.courseOfferingCode = courseOfferingAdminDisplay.getCourseOfferingCode(); |
85 | 0 | this.subjectArea = courseOfferingAdminDisplay.getSubjectArea(); |
86 | |
} |
87 | 0 | } |
88 | |
|
89 | |
@Override |
90 | |
public RichText getDescr() { |
91 | 0 | return this.getDescr(); |
92 | |
} |
93 | |
|
94 | |
@Override |
95 | |
public String getCourseId() { |
96 | 0 | return this.courseId; |
97 | |
} |
98 | |
|
99 | |
@Override |
100 | |
public String getTermId() { |
101 | 0 | return this.termId; |
102 | |
} |
103 | |
|
104 | |
@Override |
105 | |
public String getCourseOfferingCode() { |
106 | 0 | return this.courseOfferingCode; |
107 | |
} |
108 | |
|
109 | |
@Override |
110 | |
public String getSubjectArea() { |
111 | 0 | return this.subjectArea; |
112 | |
} |
113 | |
|
114 | |
@Override |
115 | |
public String getCourseOfferingTitle() { |
116 | 0 | return this.courseOfferingTitle; |
117 | |
} |
118 | |
|
119 | |
|
120 | |
public void setCourseId(String courseId) { |
121 | 0 | this.courseId = courseId; |
122 | 0 | } |
123 | |
|
124 | |
public void setTermId(String termId) { |
125 | 0 | this.termId = termId; |
126 | 0 | } |
127 | |
|
128 | |
public void setCourseOfferingTitle(String courseTitle) { |
129 | 0 | this.courseOfferingTitle = courseTitle; |
130 | 0 | } |
131 | |
|
132 | |
public void setCourseOfferingCode(String courseOfferingCode) { |
133 | 0 | this.courseOfferingCode = courseOfferingCode; |
134 | 0 | } |
135 | |
|
136 | |
public void setSubjectArea(String subjectArea) { |
137 | 0 | this.subjectArea = subjectArea; |
138 | 0 | } |
139 | |
|
140 | |
|
141 | |
@Override |
142 | |
public String getTermName() { |
143 | 0 | return termName; |
144 | |
} |
145 | |
|
146 | |
public void setTypeName(String typeName) { |
147 | 0 | this.typeName = typeName; |
148 | 0 | } |
149 | |
|
150 | |
@Override |
151 | |
public List<String> getActivtyOfferingTypes() { |
152 | 0 | return activtyOfferingTypes; |
153 | |
} |
154 | |
|
155 | |
public void setActivtyOfferingTypes(List<String> activtyOfferingTypes) { |
156 | 0 | this.activtyOfferingTypes = activtyOfferingTypes; |
157 | 0 | } |
158 | |
@Override |
159 | |
public String getTermCode() { |
160 | 0 | return termCode; |
161 | |
} |
162 | |
|
163 | |
@Override |
164 | |
public String getDisplayCredit() { |
165 | 0 | return displayCredit; |
166 | |
} |
167 | |
|
168 | |
public void setDisplayCredit(String displayCredit) { |
169 | 0 | this.displayCredit = displayCredit; |
170 | 0 | } |
171 | |
|
172 | |
@Override |
173 | |
public String getStateName() { |
174 | 0 | return stateName; |
175 | |
} |
176 | |
|
177 | |
public void setStateName(String stateName) { |
178 | 0 | this.stateName = stateName; |
179 | 0 | } |
180 | |
|
181 | |
@Override |
182 | |
public String getTypeName() { |
183 | 0 | return typeName; |
184 | |
} |
185 | |
|
186 | |
|
187 | |
@Override |
188 | |
public String getDisplayGrading() { |
189 | 0 | return displayGrading; |
190 | |
} |
191 | |
|
192 | |
public void setDisplayGrading(String displayGrading) { |
193 | 0 | this.displayGrading = displayGrading; |
194 | 0 | } |
195 | |
} |