Clover Coverage Report - Kuali Student 1.1.0-SNAPSHOT (Aggregated)
Coverage timestamp: Tue Feb 15 2011 04:04:07 EST
../../../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
57   451   60   0.98
4   264   1.05   58
58     1.03  
1    
 
  CoreProgramInfo       Line # 56 57 0% 60 2 98.3% 0.9831933
 
  (16)
 
1    /*
2    * Copyright 2009 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 1.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl1.php
9    *
10    * Unless required by applicable law or agreed to in writing, software
11    * distributed under the License is distributed on an "AS IS" BASIS,
12    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13    * See the License for the specific language governing permissions and
14    * limitations under the License.
15    */
16    package org.kuali.student.lum.program.dto;
17   
18    import java.io.Serializable;
19    import java.util.ArrayList;
20    import java.util.HashMap;
21    import java.util.List;
22    import java.util.Map;
23   
24    import javax.xml.bind.annotation.XmlAccessType;
25    import javax.xml.bind.annotation.XmlAccessorType;
26    import javax.xml.bind.annotation.XmlAttribute;
27    import javax.xml.bind.annotation.XmlElement;
28    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
29   
30    import org.kuali.student.core.dto.HasAttributes;
31    import org.kuali.student.core.dto.HasTypeState;
32    import org.kuali.student.core.dto.Idable;
33    import org.kuali.student.core.dto.MetaInfo;
34    import org.kuali.student.core.dto.RichTextInfo;
35    import org.kuali.student.core.versionmanagement.dto.VersionInfo;
36    import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
37    import org.kuali.student.lum.course.dto.LoDisplayInfo;
38    import org.kuali.student.lum.program.dto.assembly.ProgramAtpAssembly;
39    import org.kuali.student.lum.program.dto.assembly.ProgramBasicOrgAssembly;
40    import org.kuali.student.lum.program.dto.assembly.ProgramCodeAssembly;
41    import org.kuali.student.lum.program.dto.assembly.ProgramCommonAssembly;
42    import org.kuali.student.lum.program.dto.assembly.ProgramIdentifierAssembly;
43    import org.kuali.student.lum.program.dto.assembly.ProgramPublicationAssembly;
44    import org.kuali.student.lum.program.dto.assembly.ProgramRequirementAssembly;
45   
46    /**
47    * Detailed information about a core program requirements associated with Credential Programs
48    *
49    * @Author KSContractMojo
50    * @Author Li Pan
51    * @Since Wed Jun 30 14:55:48 PDT 2010
52    * @See <a href="https://test.kuali.org/confluence/display/KULSTU/coreProgramInfo+Structure">CoreProgramInfo</>
53    *
54    */
55    @XmlAccessorType(XmlAccessType.FIELD)
 
56    public class CoreProgramInfo implements Serializable, Idable, HasTypeState, HasAttributes, ProgramCommonAssembly, ProgramBasicOrgAssembly, ProgramAtpAssembly,
57    ProgramCodeAssembly, ProgramIdentifierAssembly, ProgramPublicationAssembly, ProgramRequirementAssembly {
58   
59    private static final long serialVersionUID = 1L;
60   
61    @XmlElement
62    private String shortTitle;
63   
64    @XmlElement
65    private String longTitle;
66   
67    @XmlElement
68    private String transcriptTitle;
69   
70    @XmlElement
71    private String code;
72   
73    @XmlElement
74    private String universityClassification;
75   
76    @XmlElement
77    private String startTerm;
78   
79    @XmlElement
80    private String endTerm;
81   
82    @XmlElement
83    private String endProgramEntryTerm;
84   
85    @XmlElement
86    private List<String> programRequirements;
87   
88    @XmlElement
89    private List<String> divisionsContentOwner;
90   
91    @XmlElement
92    private List<String> divisionsStudentOversight;
93   
94    @XmlElement
95    private List<String> unitsContentOwner;
96   
97    @XmlElement
98    private List<String> unitsStudentOversight;
99   
100    @XmlElement
101    private RichTextInfo descr;
102   
103    @XmlElement
104    private String referenceURL;
105   
106    @XmlElement
107    private RichTextInfo catalogDescr;
108   
109    @XmlElement
110    private List<String> catalogPublicationTargets;
111   
112    @XmlElement
113    private List<LoDisplayInfo> learningObjectives;
114   
115    @XmlElement
116    @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
117    private Map<String, String> attributes;
118   
119    @XmlElement
120    private MetaInfo metaInfo;
121   
122    @XmlElement
123    private VersionInfo versionInfo;
124   
125    @XmlAttribute
126    private String type;
127   
128    @XmlAttribute
129    private String state;
130   
131    @XmlAttribute
132    private String id;
133   
134    /**
135    * Core Program Requirements.
136    */
 
137  39 toggle public List<String> getProgramRequirements() {
138  39 if (programRequirements == null) {
139  9 programRequirements = new ArrayList<String>(0);
140    }
141  39 return programRequirements;
142    }
143   
 
144  9 toggle public void setProgramRequirements(List<String> programRequirements) {
145  9 this.programRequirements = programRequirements;
146    }
147   
148    /**
149    * List of key/value pairs, typically used for dynamic attributes.
150    */
 
151  20 toggle public Map<String, String> getAttributes() {
152  20 if (attributes == null) {
153  0 attributes = new HashMap<String, String>();
154    }
155  20 return attributes;
156    }
157   
 
158  43 toggle public void setAttributes(Map<String, String> attributes) {
159  43 this.attributes = attributes;
160    }
161   
162    /**
163    * Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
164    */
 
165  18 toggle public MetaInfo getMetaInfo() {
166  18 return metaInfo;
167    }
168   
 
169  35 toggle public void setMetaInfo(MetaInfo metaInfo) {
170  35 this.metaInfo = metaInfo;
171    }
172   
173   
 
174  5 toggle public VersionInfo getVersionInfo() {
175  5 return versionInfo;
176    }
177   
 
178  43 toggle public void setVersionInfo(VersionInfo versionInfo) {
179  43 this.versionInfo = versionInfo;
180    }
181   
182    /**
183    * Unique identifier for a learning unit type. Once set at create time, this field may not be updated.
184    */
 
185  23 toggle public String getType() {
186  23 return type;
187    }
188   
 
189  43 toggle public void setType(String type) {
190  43 this.type = type;
191    }
192   
193    /**
194    * The current status of the credential program. The values for this field are constrained to those in the luState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
195    */
 
196  86 toggle public String getState() {
197  86 return state;
198    }
199   
 
200  44 toggle public void setState(String state) {
201  44 this.state = state;
202    }
203   
204    /**
205    * Unique identifier for an Core Program Requirement. This is optional, due to the identifier being set at the time of creation. Once the Program has been created, this should be seen as required.
206    */
 
207  99 toggle public String getId() {
208  99 return id;
209    }
210   
 
211  49 toggle public void setId(String id) {
212  49 this.id = id;
213    }
214   
215    /**
216    * Abbreviated name of the Core requirement
217    */
 
218  23 toggle public String getShortTitle() {
219  23 return shortTitle;
220    }
221   
 
222  44 toggle public void setShortTitle(String shortTitle) {
223  44 this.shortTitle = shortTitle;
224    }
225   
226    /**
227    * Full name of the Core Requirement
228    */
 
229  23 toggle public String getLongTitle() {
230  23 return longTitle;
231    }
232   
 
233  44 toggle public void setLongTitle(String longTitle) {
234  44 this.longTitle = longTitle;
235    }
236   
237    /**
238    * Information related to the official identification of the Core requirement, typically in human readable form. Used to officially reference or publish.
239    */
 
240  36 toggle public String getTranscriptTitle() {
241  36 return transcriptTitle;
242    }
243   
 
244  44 toggle public void setTranscriptTitle(String transcriptTitle) {
245  44 this.transcriptTitle = transcriptTitle;
246    }
247   
 
248  16 toggle @Override
249    public String getDiplomaTitle() {
250  16 return null; //To change body of implemented methods use File | Settings | File Templates.
251    }
252   
 
253  8 toggle @Override
254    public void setDiplomaTitle(String diplomaTitle) {
255    //To change body of implemented methods use File | Settings | File Templates.
256    }
257   
258    /**
259    * The composite string that is used to officially reference or publish the Core Program.
260    */
 
261  22 toggle public String getCode() {
262  22 return code;
263    }
264   
 
265  44 toggle public void setCode(String code) {
266  44 this.code = code;
267    }
268   
269    /**
270    * University specific classification e.g General Education Program
271    */
 
272  18 toggle public String getUniversityClassification() {
273  18 return universityClassification;
274    }
275   
 
276  43 toggle public void setUniversityClassification(String universityClassification) {
277  43 this.universityClassification = universityClassification;
278    }
279   
280    /**
281    * The first academic time period that this clu would be effective. This may not reflect the first "real" academic time period for this Core.
282    */
 
283  18 toggle public String getStartTerm() {
284  18 return startTerm;
285    }
286   
 
287  43 toggle public void setStartTerm(String startTerm) {
288  43 this.startTerm = startTerm;
289    }
290   
291    /**
292    * The last academic time period that this Core would be effective.
293    */
 
294  18 toggle public String getEndTerm() {
295  18 return endTerm;
296    }
297   
 
298  43 toggle public void setEndTerm(String endTerm) {
299  43 this.endTerm = endTerm;
300    }
301   
302    /**
303    * The last academic time period that this Core would be available for enrollment. This may not reflect the last "real" academic time period for this requirement.
304    */
 
305  18 toggle public String getEndProgramEntryTerm() {
306  18 return endProgramEntryTerm;
307    }
308   
 
309  43 toggle public void setEndProgramEntryTerm(String endProgramEntryTerm) {
310  43 this.endProgramEntryTerm = endProgramEntryTerm;
311    }
312   
313    /**
314    * Divisions responsible to make changes to the CORE requirements
315    */
 
316  67 toggle public List<String> getDivisionsContentOwner() {
317  67 return divisionsContentOwner;
318    }
319   
 
320  43 toggle public void setDivisionsContentOwner(List<String> divisionsContentOwner) {
321  43 this.divisionsContentOwner = divisionsContentOwner;
322    }
323   
324    /**
325    * Divisions responsible for student exceptions to the requirements.
326    */
 
327  67 toggle public List<String> getDivisionsStudentOversight() {
328  67 return divisionsStudentOversight;
329    }
330   
 
331  43 toggle public void setDivisionsStudentOversight(List<String> divisionsStudentOversight) {
332  43 this.divisionsStudentOversight = divisionsStudentOversight;
333    }
334   
335    /**
336    * Unit responsible to make changes to the CORE requirements
337    */
 
338  67 toggle public List<String> getUnitsContentOwner() {
339  67 return unitsContentOwner;
340    }
341   
 
342  43 toggle public void setUnitsContentOwner(List<String> unitsContentOwner) {
343  43 this.unitsContentOwner = unitsContentOwner;
344    }
345   
346    /**
347    * Unit responsible for student exceptions to the requirements.
348    */
 
349  67 toggle public List<String> getUnitsStudentOversight() {
350  67 return unitsStudentOversight;
351    }
352   
 
353  43 toggle public void setUnitsStudentOversight(List<String> unitsStudentOversight) {
354  43 this.unitsStudentOversight = unitsStudentOversight;
355    }
356   
357    /**
358    * Narrative description of the Core requirement.
359    */
 
360  20 toggle public RichTextInfo getDescr() {
361  20 return descr;
362    }
363   
 
364  43 toggle public void setDescr(RichTextInfo descr) {
365  43 this.descr = descr;
366    }
367   
368    /**
369    * Narrative description of the Core that will show up in Catalog
370    */
 
371  24 toggle public RichTextInfo getCatalogDescr() {
372  24 return catalogDescr;
373    }
374   
 
375  11 toggle public void setCatalogDescr(RichTextInfo catalogDescr) {
376  11 this.catalogDescr = catalogDescr;
377    }
378   
379    /**
380    * List of catalog targets where information will be published.
381    */
 
382  28 toggle public List<String> getCatalogPublicationTargets() {
383  28 return catalogPublicationTargets;
384    }
385   
 
386  8 toggle public void setCatalogPublicationTargets(List<String> catalogPublicationTargets) {
387  8 this.catalogPublicationTargets = catalogPublicationTargets;
388    }
389   
390    /**
391    * An URL for additional information about the Core Requirement.
392    */
 
393  18 toggle public String getReferenceURL() {
394  18 return referenceURL;
395    }
396   
 
397  43 toggle public void setReferenceURL(String referenceURL) {
398  43 this.referenceURL = referenceURL;
399    }
400   
401    /**
402    * Learning Objectives associated with this Core requirement.
403    */
 
404  37 toggle public List<LoDisplayInfo> getLearningObjectives() {
405  37 return learningObjectives;
406    }
407   
 
408  26 toggle public void setLearningObjectives(List<LoDisplayInfo> learningObjectives) {
409  26 this.learningObjectives = learningObjectives;
410    }
411   
 
412  16 toggle @Override
413    public String getCip2000Code() {
414  16 return null; //To change body of implemented methods use File | Settings | File Templates.
415    }
416   
 
417  8 toggle @Override
418    public void setCip2000Code(String cip2000Code) {
419    //To change body of implemented methods use File | Settings | File Templates.
420    }
421   
 
422  16 toggle @Override
423    public String getCip2010Code() {
424  16 return null; //To change body of implemented methods use File | Settings | File Templates.
425    }
426   
 
427  8 toggle @Override
428    public void setCip2010Code(String cip2010Code) {
429    //To change body of implemented methods use File | Settings | File Templates.
430    }
431   
 
432  16 toggle @Override
433    public String getHegisCode() {
434  16 return null; //To change body of implemented methods use File | Settings | File Templates.
435    }
436   
 
437  8 toggle @Override
438    public void setHegisCode(String hegisCode) {
439    //To change body of implemented methods use File | Settings | File Templates.
440    }
441   
 
442  16 toggle @Override
443    public String getSelectiveEnrollmentCode() {
444  16 return null; //To change body of implemented methods use File | Settings | File Templates.
445    }
446   
 
447  8 toggle @Override
448    public void setSelectiveEnrollmentCode(String selectiveEnrollmentCode) {
449    //To change body of implemented methods use File | Settings | File Templates.
450    }
451    }