1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.enrollment.lui.dto; |
18 | |
|
19 | |
import java.io.Serializable; |
20 | |
import java.util.ArrayList; |
21 | |
import java.util.Date; |
22 | |
import java.util.List; |
23 | |
|
24 | |
import javax.xml.bind.annotation.XmlAccessType; |
25 | |
import javax.xml.bind.annotation.XmlAccessorType; |
26 | |
import javax.xml.bind.annotation.XmlAnyElement; |
27 | |
import javax.xml.bind.annotation.XmlElement; |
28 | |
import javax.xml.bind.annotation.XmlType; |
29 | |
|
30 | |
import org.kuali.student.enrollment.lui.infc.Lui; |
31 | |
import org.kuali.student.enrollment.lui.infc.LuiIdentifier; |
32 | |
import org.kuali.student.r2.common.dto.IdEntityInfo; |
33 | |
import org.kuali.student.r2.common.dto.MeetingScheduleInfo; |
34 | |
import org.kuali.student.r2.common.infc.MeetingSchedule; |
35 | |
import org.kuali.student.r2.lum.clu.dto.ExpenditureInfo; |
36 | |
import org.kuali.student.r2.lum.clu.dto.FeeInfo; |
37 | |
import org.kuali.student.r2.lum.clu.dto.LuCodeInfo; |
38 | |
import org.kuali.student.r2.lum.clu.dto.RevenueInfo; |
39 | |
import org.kuali.student.r2.lum.clu.infc.Fee; |
40 | |
import org.kuali.student.r2.lum.clu.infc.LuCode; |
41 | |
import org.kuali.student.r2.lum.clu.infc.Revenue; |
42 | |
import org.w3c.dom.Element; |
43 | |
|
44 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
45 | |
@XmlType(name = "LuiInfo", propOrder = {"id", "typeKey", "stateKey", "name", |
46 | |
"descr", "effectiveDate", "expirationDate", |
47 | |
"officialIdentifier", "alternateIdentifiers", "cluId", |
48 | |
"cluCluRelationIds", "atpId", "campusLocations", "scheduleId", "luiCodes", |
49 | |
"maximumEnrollment", "minimumEnrollment", "referenceURL", |
50 | |
"unitsContentOwner", "unitsDeployment", "resultValuesGroupKeys", |
51 | |
"relatedLuiTypes", |
52 | |
"meta", "attributes", "_futureElements"}) |
53 | |
|
54 | |
public class LuiInfo |
55 | |
extends IdEntityInfo |
56 | |
implements Serializable, Lui { |
57 | |
|
58 | |
private static final long serialVersionUID = 1L; |
59 | |
|
60 | |
@XmlElement |
61 | |
private Date effectiveDate; |
62 | |
|
63 | |
@XmlElement |
64 | |
private Date expirationDate; |
65 | |
|
66 | |
@XmlElement |
67 | |
private LuiIdentifierInfo officialIdentifier; |
68 | |
|
69 | |
@XmlElement |
70 | |
private List<LuiIdentifierInfo> alternateIdentifiers; |
71 | |
|
72 | |
@XmlElement |
73 | |
private String cluId; |
74 | |
|
75 | |
@XmlElement |
76 | |
private List<String> cluCluRelationIds; |
77 | |
|
78 | |
@XmlElement |
79 | |
private String atpId; |
80 | |
|
81 | |
@XmlElement |
82 | |
private List<String> campusLocations; |
83 | |
|
84 | |
@XmlElement |
85 | |
private String scheduleId; |
86 | |
|
87 | |
@XmlElement |
88 | |
private List<LuCodeInfo> luiCodes; |
89 | |
|
90 | |
@XmlElement |
91 | |
private Integer maximumEnrollment; |
92 | |
|
93 | |
@XmlElement |
94 | |
private Integer minimumEnrollment; |
95 | |
|
96 | |
@XmlElement |
97 | |
private String referenceURL; |
98 | |
|
99 | |
@XmlElement |
100 | |
private List<String> unitsContentOwner; |
101 | |
|
102 | |
@XmlElement |
103 | |
private List<String> unitsDeployment; |
104 | |
|
105 | |
@XmlElement |
106 | |
private List<String> resultValuesGroupKeys; |
107 | |
|
108 | |
@XmlElement |
109 | |
private List<String> relatedLuiTypes; |
110 | |
|
111 | |
@XmlAnyElement |
112 | |
private List<Element> _futureElements; |
113 | |
|
114 | |
|
115 | |
|
116 | |
|
117 | |
|
118 | 0 | public LuiInfo() { |
119 | 0 | } |
120 | |
|
121 | |
|
122 | |
|
123 | |
|
124 | |
|
125 | |
|
126 | |
|
127 | |
public LuiInfo(Lui lui) { |
128 | 0 | super(lui); |
129 | |
|
130 | 0 | if (null == lui) { |
131 | 0 | return; |
132 | |
} |
133 | |
|
134 | 0 | this.effectiveDate = null != lui.getEffectiveDate() ? new Date(lui.getEffectiveDate().getTime()) : null; |
135 | 0 | this.expirationDate = null != lui.getExpirationDate() ? new Date(lui.getExpirationDate().getTime()) : null; |
136 | |
|
137 | 0 | if (lui.getOfficialIdentifier() != null) { |
138 | 0 | this.officialIdentifier = new LuiIdentifierInfo(lui.getOfficialIdentifier()); |
139 | |
} |
140 | |
|
141 | 0 | this.alternateIdentifiers = new ArrayList<LuiIdentifierInfo>(); |
142 | 0 | if (lui.getAlternateIdentifiers() != null) { |
143 | 0 | for (LuiIdentifier li : lui.getAlternateIdentifiers()) { |
144 | 0 | this.alternateIdentifiers.add(new LuiIdentifierInfo(li)); |
145 | |
} |
146 | |
} |
147 | |
|
148 | 0 | this.cluId = lui.getCluId(); |
149 | 0 | this.cluCluRelationIds = (null != lui.getCluCluRelationIds() ? new ArrayList<String>(lui.getCluCluRelationIds()) : new ArrayList<String>()); |
150 | 0 | this.atpId = lui.getAtpId(); |
151 | |
|
152 | 0 | if (lui.getCampusLocations() != null) { |
153 | 0 | this.campusLocations = new ArrayList(lui.getCampusLocations()); |
154 | |
} |
155 | |
|
156 | 0 | this.scheduleId = lui.getScheduleId(); |
157 | 0 | this.luiCodes = new ArrayList<LuCodeInfo>(); |
158 | 0 | if (lui.getLuiCodes() != null) { |
159 | 0 | for (LuCode code : lui.getLuiCodes()) { |
160 | 0 | this.luiCodes.add(new LuCodeInfo(code)); |
161 | |
} |
162 | |
} |
163 | |
|
164 | 0 | this.maximumEnrollment = lui.getMaximumEnrollment(); |
165 | 0 | this.minimumEnrollment = lui.getMinimumEnrollment(); |
166 | 0 | this.referenceURL = lui.getReferenceURL(); |
167 | 0 | if (lui.getUnitsContentOwner() != null) { |
168 | 0 | this.unitsContentOwner = new ArrayList<String>(lui.getUnitsContentOwner()); |
169 | |
} |
170 | 0 | this.unitsDeployment = new ArrayList<String>(lui.getUnitsDeployment()); |
171 | 0 | this.resultValuesGroupKeys = new ArrayList<String>(lui.getResultValuesGroupKeys()); |
172 | 0 | this.relatedLuiTypes = new ArrayList<String>(lui.getRelatedLuiTypes()); |
173 | 0 | } |
174 | |
|
175 | |
@Override |
176 | |
public Date getEffectiveDate() { |
177 | 0 | return effectiveDate; |
178 | |
} |
179 | |
|
180 | |
public void setEffectiveDate(Date effectiveDate) { |
181 | 0 | this.effectiveDate = effectiveDate; |
182 | 0 | } |
183 | |
|
184 | |
@Override |
185 | |
public Date getExpirationDate() { |
186 | 0 | return expirationDate; |
187 | |
} |
188 | |
|
189 | |
public void setExpirationDate(Date expirationDate) { |
190 | 0 | this.expirationDate = expirationDate; |
191 | 0 | } |
192 | |
|
193 | |
@Override |
194 | |
public LuiIdentifierInfo getOfficialIdentifier() { |
195 | 0 | return officialIdentifier; |
196 | |
} |
197 | |
|
198 | |
public void setOfficialIdentifier(LuiIdentifierInfo officialIdentifier) { |
199 | 0 | this.officialIdentifier = officialIdentifier; |
200 | 0 | } |
201 | |
|
202 | |
@Override |
203 | |
public List<LuiIdentifierInfo> getAlternateIdentifiers() { |
204 | 0 | if (alternateIdentifiers == null) { |
205 | 0 | alternateIdentifiers = new ArrayList<LuiIdentifierInfo>(); |
206 | |
} |
207 | 0 | return alternateIdentifiers; |
208 | |
} |
209 | |
|
210 | |
public void setAlternateIdentifiers(List< LuiIdentifierInfo> alternateIdentifiers) { |
211 | 0 | this.alternateIdentifiers = alternateIdentifiers; |
212 | 0 | } |
213 | |
|
214 | |
@Override |
215 | |
public String getCluId() { |
216 | 0 | return cluId; |
217 | |
} |
218 | |
|
219 | |
public void setCluId(String cluId) { |
220 | 0 | this.cluId = cluId; |
221 | 0 | } |
222 | |
|
223 | |
@Override |
224 | |
public List<String> getCluCluRelationIds() { |
225 | 0 | if (cluCluRelationIds == null) { |
226 | 0 | cluCluRelationIds = new ArrayList<String>(); |
227 | |
} |
228 | |
|
229 | 0 | return cluCluRelationIds; |
230 | |
} |
231 | |
|
232 | |
public void setCluCluRelationIds(List<String> cluCluRelationIds) { |
233 | 0 | this.cluCluRelationIds = cluCluRelationIds; |
234 | 0 | } |
235 | |
|
236 | |
@Override |
237 | |
public String getAtpId() { |
238 | 0 | return atpId; |
239 | |
} |
240 | |
|
241 | |
public void setAtpId(String atpId) { |
242 | 0 | this.atpId = atpId; |
243 | 0 | } |
244 | |
|
245 | |
@Override |
246 | |
public List<String> getCampusLocations() { |
247 | 0 | if (campusLocations == null) { |
248 | 0 | campusLocations = new ArrayList<String>(); |
249 | |
} |
250 | |
|
251 | 0 | return campusLocations; |
252 | |
} |
253 | |
|
254 | |
public void setCampusLocations(List<String> campusLocations) { |
255 | 0 | this.campusLocations = campusLocations; |
256 | 0 | } |
257 | |
|
258 | |
@Override |
259 | |
public String getScheduleId() { |
260 | 0 | return scheduleId; |
261 | |
} |
262 | |
|
263 | |
public void setScheduleId(String scheduleId) { |
264 | 0 | this.scheduleId = scheduleId; |
265 | 0 | } |
266 | |
|
267 | |
@Override |
268 | |
public List<LuCodeInfo> getLuiCodes() { |
269 | 0 | if (luiCodes == null) { |
270 | 0 | luiCodes = new ArrayList<LuCodeInfo>(); |
271 | |
} |
272 | 0 | return luiCodes; |
273 | |
} |
274 | |
|
275 | |
public void setLuiCodes(List<LuCodeInfo> luiCodes) { |
276 | 0 | this.luiCodes = luiCodes; |
277 | 0 | } |
278 | |
|
279 | |
@Override |
280 | |
public Integer getMaximumEnrollment() { |
281 | 0 | return maximumEnrollment; |
282 | |
} |
283 | |
|
284 | |
public void setMaximumEnrollment(Integer maximumEnrollment) { |
285 | 0 | this.maximumEnrollment = maximumEnrollment; |
286 | 0 | } |
287 | |
|
288 | |
@Override |
289 | |
public Integer getMinimumEnrollment() { |
290 | 0 | return minimumEnrollment; |
291 | |
} |
292 | |
|
293 | |
public void setMinimumEnrollment(Integer minimumEnrollment) { |
294 | 0 | this.minimumEnrollment = minimumEnrollment; |
295 | 0 | } |
296 | |
|
297 | |
@Override |
298 | |
public String getReferenceURL() { |
299 | 0 | return referenceURL; |
300 | |
} |
301 | |
|
302 | |
public void setReferenceURL(String referenceURL) { |
303 | 0 | this.referenceURL = referenceURL; |
304 | 0 | } |
305 | |
|
306 | |
@Override |
307 | |
public List<String> getUnitsDeployment() { |
308 | 0 | return unitsDeployment; |
309 | |
} |
310 | |
|
311 | |
public void setUnitsDeployment(List<String> unitsDeployment) { |
312 | 0 | this.unitsDeployment = unitsDeployment; |
313 | 0 | } |
314 | |
|
315 | |
@Override |
316 | |
public List<String> getUnitsContentOwner() { |
317 | 0 | if (unitsDeployment == null) { |
318 | 0 | unitsDeployment = new ArrayList<String>(); |
319 | |
} |
320 | 0 | return unitsContentOwner; |
321 | |
} |
322 | |
|
323 | |
public void setUnitsContentOwner(List<String> unitsContentOwner) { |
324 | 0 | this.unitsContentOwner = unitsContentOwner; |
325 | 0 | } |
326 | |
|
327 | |
@Override |
328 | |
public List<String> getResultValuesGroupKeys() { |
329 | 0 | if (resultValuesGroupKeys == null) { |
330 | 0 | resultValuesGroupKeys = new ArrayList<String>(); |
331 | |
} |
332 | 0 | return resultValuesGroupKeys; |
333 | |
} |
334 | |
|
335 | |
public void setResultValuesGroupKeys(List<String> resultValueGroupKeys) { |
336 | 0 | this.resultValuesGroupKeys = resultValueGroupKeys; |
337 | 0 | } |
338 | |
|
339 | |
@Override |
340 | |
public List<String> getRelatedLuiTypes() { |
341 | 0 | if (relatedLuiTypes == null) { |
342 | 0 | relatedLuiTypes = new ArrayList<String>(); |
343 | |
} |
344 | 0 | return relatedLuiTypes; |
345 | |
} |
346 | |
|
347 | |
public void setRelatedLuiTypes(List<String> relatedLuiTypes) { |
348 | 0 | this.relatedLuiTypes = relatedLuiTypes; |
349 | 0 | } |
350 | |
} |