1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.kuali.student.r2.lum.program.dto; |
12 | |
|
13 | |
import java.io.Serializable; |
14 | |
import java.util.ArrayList; |
15 | |
import java.util.List; |
16 | |
|
17 | |
import javax.xml.bind.annotation.XmlAccessType; |
18 | |
import javax.xml.bind.annotation.XmlAccessorType; |
19 | |
import javax.xml.bind.annotation.XmlAnyElement; |
20 | |
import javax.xml.bind.annotation.XmlElement; |
21 | |
import javax.xml.bind.annotation.XmlType; |
22 | |
|
23 | |
import org.kuali.student.r2.lum.clu.dto.AccreditationInfo; |
24 | |
import org.kuali.student.r2.lum.clu.dto.CluInstructorInfo; |
25 | |
import org.kuali.student.r2.lum.clu.infc.Accreditation; |
26 | |
import org.kuali.student.r2.lum.clu.infc.CluInstructor; |
27 | |
import org.kuali.student.r2.lum.program.dto.assembly.ProgramAtpAssembly; |
28 | |
import org.kuali.student.r2.lum.program.dto.assembly.ProgramCodeAssembly; |
29 | |
import org.kuali.student.r2.lum.program.dto.assembly.ProgramCommonAssembly; |
30 | |
import org.kuali.student.r2.lum.program.dto.assembly.ProgramCredentialAssembly; |
31 | |
import org.kuali.student.r2.lum.program.dto.assembly.ProgramFullOrgAssembly; |
32 | |
import org.kuali.student.r2.lum.program.dto.assembly.ProgramIdentifierAssembly; |
33 | |
import org.kuali.student.r2.lum.program.dto.assembly.ProgramPublicationAssembly; |
34 | |
import org.kuali.student.r2.lum.program.dto.assembly.ProgramRequirementAssembly; |
35 | |
import org.kuali.student.r2.lum.program.infc.MajorDiscipline; |
36 | |
import org.kuali.student.r2.lum.program.infc.ProgramVariation; |
37 | |
import org.w3c.dom.Element; |
38 | |
|
39 | |
@XmlType(name = "MajorDisciplineInfo", propOrder = {"id", |
40 | |
"typeKey", |
41 | |
"stateKey", |
42 | |
"version", |
43 | |
"descr", |
44 | |
"code", |
45 | |
"shortTitle", |
46 | |
"longTitle", |
47 | |
"transcriptTitle", |
48 | |
"universityClassification", |
49 | |
"startTerm", |
50 | |
"endTerm", |
51 | |
"endProgramEntryTerm", |
52 | |
"divisionsContentOwner", |
53 | |
"divisionsStudentOversight", |
54 | |
"unitsContentOwner", |
55 | |
"unitsStudentOversight", |
56 | |
"learningObjectives", |
57 | |
"programRequirements", |
58 | |
"referenceURL", |
59 | |
"catalogDescr", |
60 | |
"catalogPublicationTargets", |
61 | |
"intensity", |
62 | |
"cip2000Code", |
63 | |
"cip2010Code", |
64 | |
"hegisCode", |
65 | |
"selectiveEnrollmentCode", |
66 | |
"effectiveDate", |
67 | |
"diplomaTitle", |
68 | |
"campusLocations", |
69 | |
"resultOptions", |
70 | |
"stdDuration", |
71 | |
"divisionsDeployment", |
72 | |
"divisionsFinancialResources", |
73 | |
"divisionsFinancialControl", |
74 | |
"unitsDeployment", |
75 | |
"unitsFinancialResources", |
76 | |
"unitsFinancialControl", |
77 | |
"nextReviewPeriod", |
78 | |
"publishedInstructors", |
79 | |
"credentialProgramId", |
80 | |
"accreditingAgencies", |
81 | |
"variations", |
82 | |
"orgCoreProgram", |
83 | |
"attributes", |
84 | |
"meta", |
85 | |
"_futureElements"}) |
86 | |
@XmlAccessorType(XmlAccessType.FIELD) |
87 | |
public class MajorDisciplineInfo extends CommonWithProgramVariationInfo implements MajorDiscipline, |
88 | |
ProgramCommonAssembly, |
89 | |
ProgramIdentifierAssembly, |
90 | |
ProgramFullOrgAssembly, |
91 | |
ProgramAtpAssembly, |
92 | |
ProgramCodeAssembly, |
93 | |
ProgramPublicationAssembly, |
94 | |
ProgramCredentialAssembly, |
95 | |
ProgramRequirementAssembly, |
96 | |
Serializable { |
97 | |
|
98 | |
private static final long serialVersionUID = 1L; |
99 | |
@XmlElement |
100 | |
private String nextReviewPeriod; |
101 | |
@XmlElement |
102 | |
private List<CluInstructorInfo> publishedInstructors; |
103 | |
@XmlElement |
104 | |
private String credentialProgramId; |
105 | |
@XmlElement |
106 | |
private List<AccreditationInfo> accreditingAgencies; |
107 | |
@XmlElement |
108 | |
private List<ProgramVariationInfo> variations; |
109 | |
@XmlElement |
110 | |
private CoreProgramInfo orgCoreProgram; |
111 | |
@XmlAnyElement |
112 | |
private List<Element> _futureElements; |
113 | |
|
114 | 0 | public MajorDisciplineInfo() { |
115 | 0 | } |
116 | |
|
117 | |
public MajorDisciplineInfo(MajorDiscipline input) { |
118 | 0 | super(input); |
119 | |
|
120 | 0 | if (input.getPublishedInstructors() != null) { |
121 | 0 | this.publishedInstructors = new ArrayList<CluInstructorInfo>(input.getPublishedInstructors().size()); |
122 | 0 | for (CluInstructor cluInst : input.getPublishedInstructors()) { |
123 | 0 | this.publishedInstructors.add(new CluInstructorInfo(cluInst)); |
124 | |
} |
125 | |
} |
126 | 0 | this.credentialProgramId = input.getCredentialProgramId(); |
127 | |
|
128 | 0 | this.nextReviewPeriod = input.getNextReviewPeriod(); |
129 | 0 | if (input.getAccreditingAgencies() != null) { |
130 | 0 | this.accreditingAgencies = new ArrayList<AccreditationInfo>(); |
131 | 0 | for (Accreditation aa : input.getAccreditingAgencies()) { |
132 | 0 | this.accreditingAgencies.add(new AccreditationInfo(aa)); |
133 | |
} |
134 | |
} |
135 | 0 | if (input.getVariations() != null) { |
136 | 0 | this.variations = new ArrayList<ProgramVariationInfo>(input.getVariations().size()); |
137 | 0 | for (ProgramVariation pv : input.getVariations()) { |
138 | 0 | ProgramVariationInfo info = new ProgramVariationInfo(pv); |
139 | 0 | this.variations.add(info); |
140 | 0 | } |
141 | |
} |
142 | 0 | if (input.getOrgCoreProgram() != null) { |
143 | 0 | this.orgCoreProgram = new CoreProgramInfo(input.getOrgCoreProgram()); |
144 | |
} |
145 | 0 | } |
146 | |
|
147 | |
@Override |
148 | |
public List<CluInstructorInfo> getPublishedInstructors() { |
149 | 0 | if (publishedInstructors == null) { |
150 | 0 | publishedInstructors = new ArrayList<CluInstructorInfo>(0); |
151 | |
} |
152 | 0 | return publishedInstructors; |
153 | |
} |
154 | |
|
155 | |
public void setPublishedInstructors(List<CluInstructorInfo> publishedInstructors) { |
156 | 0 | this.publishedInstructors = publishedInstructors; |
157 | 0 | } |
158 | |
|
159 | |
@Override |
160 | |
public String getCredentialProgramId() { |
161 | 0 | return credentialProgramId; |
162 | |
} |
163 | |
|
164 | |
public void setCredentialProgramId(String credentialProgramId) { |
165 | 0 | this.credentialProgramId = credentialProgramId; |
166 | 0 | } |
167 | |
|
168 | |
@Override |
169 | |
public List<ProgramVariationInfo> getVariations() { |
170 | 0 | if (variations == null) { |
171 | 0 | variations = new ArrayList<ProgramVariationInfo>(0); |
172 | |
} |
173 | 0 | return variations; |
174 | |
} |
175 | |
|
176 | |
public void setVariations(List<ProgramVariationInfo> variations) { |
177 | 0 | this.variations = variations; |
178 | 0 | } |
179 | |
|
180 | |
@Override |
181 | |
public String getNextReviewPeriod() { |
182 | 0 | return nextReviewPeriod; |
183 | |
} |
184 | |
|
185 | |
public void setNextReviewPeriod(String nextReviewPeriod) { |
186 | 0 | this.nextReviewPeriod = nextReviewPeriod; |
187 | 0 | } |
188 | |
|
189 | |
@Override |
190 | |
public List<AccreditationInfo> getAccreditingAgencies() { |
191 | 0 | return accreditingAgencies; |
192 | |
} |
193 | |
|
194 | |
public void setAccreditingAgencies(List<AccreditationInfo> accreditingAgencies) { |
195 | 0 | this.accreditingAgencies = accreditingAgencies; |
196 | 0 | } |
197 | |
|
198 | |
@Override |
199 | |
public CoreProgramInfo getOrgCoreProgram() { |
200 | 0 | return orgCoreProgram; |
201 | |
} |
202 | |
|
203 | |
public void setOrgCoreProgram(CoreProgramInfo orgCoreProgram) { |
204 | 0 | this.orgCoreProgram = orgCoreProgram; |
205 | 0 | } |
206 | |
} |