Clover Coverage Report - KS LUM 1.1 (Aggregated)
Coverage timestamp: Sun Mar 6 2011 21:42:26 EST
../../../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
88   607   84   1.1
8   375   0.95   80
80     1.05  
1    
 
  ProgramVariationInfo       Line # 58 88 0% 84 4 97.7% 0.97727275
 
  (11)
 
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.Date;
21    import java.util.HashMap;
22    import java.util.List;
23    import java.util.Map;
24   
25    import javax.xml.bind.annotation.XmlAccessType;
26    import javax.xml.bind.annotation.XmlAccessorType;
27    import javax.xml.bind.annotation.XmlAttribute;
28    import javax.xml.bind.annotation.XmlElement;
29    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
30   
31    import org.kuali.student.core.dto.HasAttributes;
32    import org.kuali.student.core.dto.HasTypeState;
33    import org.kuali.student.core.dto.Idable;
34    import org.kuali.student.core.dto.MetaInfo;
35    import org.kuali.student.core.dto.RichTextInfo;
36    import org.kuali.student.core.dto.TimeAmountInfo;
37    import org.kuali.student.core.versionmanagement.dto.VersionInfo;
38    import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
39    import org.kuali.student.lum.course.dto.LoDisplayInfo;
40    import org.kuali.student.lum.program.dto.assembly.ProgramAtpAssembly;
41    import org.kuali.student.lum.program.dto.assembly.ProgramCodeAssembly;
42    import org.kuali.student.lum.program.dto.assembly.ProgramCommonAssembly;
43    import org.kuali.student.lum.program.dto.assembly.ProgramFullOrgAssembly;
44    import org.kuali.student.lum.program.dto.assembly.ProgramIdentifierAssembly;
45    import org.kuali.student.lum.program.dto.assembly.ProgramPublicationAssembly;
46    import org.kuali.student.lum.program.dto.assembly.ProgramRequirementAssembly;
47   
48    /**
49    * Detailed information about major program variations
50    *
51    * @Author KSContractMojo
52    * @Author Li Pan
53    * @Since Wed Jun 30 14:55:59 PDT 2010
54    * @See <a href="https://test.kuali.org/confluence/display/KULSTU/programVariationInfo+Structure">ProgramVariationInfo</>
55    *
56    */
57    @XmlAccessorType(XmlAccessType.FIELD)
 
58    public class ProgramVariationInfo implements Serializable, Idable, HasTypeState, HasAttributes , ProgramCommonAssembly,
59    ProgramIdentifierAssembly, ProgramFullOrgAssembly, ProgramAtpAssembly,
60    ProgramCodeAssembly, ProgramPublicationAssembly, ProgramRequirementAssembly {
61   
62    private static final long serialVersionUID = 1L;
63   
64    @XmlElement
65    private String intensity;
66   
67    @XmlElement
68    private String referenceURL;
69   
70    @XmlElement
71    private String code;
72   
73    @XmlElement
74    private String cip2000Code;
75   
76    @XmlElement
77    private String cip2010Code;
78   
79    @XmlElement
80    private String hegisCode;
81   
82    @XmlElement
83    private String universityClassification;
84   
85    @XmlElement
86    private String selectiveEnrollmentCode;
87   
88    @XmlElement
89    private List<String> resultOptions;
90   
91    @XmlElement
92    private TimeAmountInfo stdDuration;
93   
94    @XmlElement
95    private String startTerm;
96   
97    @XmlElement
98    private String endTerm;
99   
100    @XmlElement
101    private String endProgramEntryTerm;
102   
103    @XmlElement
104    private Date effectiveDate;
105   
106    @XmlElement
107    private String shortTitle;
108   
109    @XmlElement
110    private String longTitle;
111   
112    @XmlElement
113    private String transcriptTitle;
114   
115    @XmlElement
116    private String diplomaTitle;
117   
118    @XmlElement
119    private RichTextInfo descr;
120   
121    @XmlElement
122    private RichTextInfo catalogDescr;
123   
124    @XmlElement
125    private List<String> catalogPublicationTargets;
126   
127    @XmlElement
128    private List<LoDisplayInfo> learningObjectives;
129   
130    @XmlElement
131    private List<String> campusLocations;
132   
133    @XmlElement
134    private List<String> programRequirements;
135   
136    @XmlElement
137    private List<String> divisionsContentOwner;
138   
139    @XmlElement
140    private List<String> divisionsStudentOversight;
141   
142    @XmlElement
143    private List<String> divisionsDeployment;
144   
145    @XmlElement
146    private List<String> divisionsFinancialResources;
147   
148    @XmlElement
149    private List<String> divisionsFinancialControl;
150   
151    @XmlElement
152    private List<String> unitsContentOwner;
153   
154    @XmlElement
155    private List<String> unitsStudentOversight;
156   
157    @XmlElement
158    private List<String> unitsDeployment;
159   
160    @XmlElement
161    private List<String> unitsFinancialResources;
162   
163    @XmlElement
164    private List<String> unitsFinancialControl;
165   
166    @XmlElement
167    @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
168    private Map<String, String> attributes;
169   
170    @XmlElement
171    private MetaInfo metaInfo;
172   
173    @XmlElement
174    private VersionInfo versionInfo;
175   
176    @XmlAttribute
177    private String type;
178   
179    @XmlAttribute
180    private String state;
181   
182    @XmlAttribute
183    private String id;
184   
185    /**
186    * Indicates if the program is full time, part time, both etc
187    */
 
188  27 toggle public String getIntensity() {
189  27 return intensity;
190    }
191   
 
192  78 toggle public void setIntensity(String intensity) {
193  78 this.intensity = intensity;
194    }
195   
196    /**
197    * An URL for additional information about the Variation.
198    */
 
199  27 toggle public String getReferenceURL() {
200  27 return referenceURL;
201    }
202   
 
203  78 toggle public void setReferenceURL(String referenceURL) {
204  78 this.referenceURL = referenceURL;
205    }
206   
207    /**
208    * The composite string that is used to officially reference or publish the Variation. Note it may have an internal structure that each Institution may want to enforce.
209    */
 
210  31 toggle public String getCode() {
211  31 return code;
212    }
213   
 
214  79 toggle public void setCode(String code) {
215  79 this.code = code;
216    }
217   
218    /**
219    * CIP 2000 Code for the Program
220    */
 
221  37 toggle public String getCip2000Code() {
222  37 return cip2000Code;
223    }
224   
 
225  80 toggle public void setCip2000Code(String cip2000Code) {
226  80 this.cip2000Code = cip2000Code;
227    }
228   
229    /**
230    * CIP 2010 Code for the Program
231    */
 
232  37 toggle public String getCip2010Code() {
233  37 return cip2010Code;
234    }
235   
 
236  80 toggle public void setCip2010Code(String cip2010Code) {
237  80 this.cip2010Code = cip2010Code;
238    }
239   
240    /**
241    * HEGIS Code for the Program
242    */
 
243  27 toggle public String getHegisCode() {
244  27 return hegisCode;
245    }
246   
 
247  78 toggle public void setHegisCode(String hegisCode) {
248  78 this.hegisCode = hegisCode;
249    }
250   
251    /**
252    * University specific classification e.g Major(Bacc), Specialization
253    */
 
254  27 toggle public String getUniversityClassification() {
255  27 return universityClassification;
256    }
257   
 
258  78 toggle public void setUniversityClassification(String universityClassification) {
259  78 this.universityClassification = universityClassification;
260    }
261   
262    /**
263    * Specifies if the Variation is Limited Enrollment program or Selective Admissions
264    */
 
265  27 toggle public String getSelectiveEnrollmentCode() {
266  27 return selectiveEnrollmentCode;
267    }
268   
 
269  78 toggle public void setSelectiveEnrollmentCode(String selectiveEnrollmentCode) {
270  78 this.selectiveEnrollmentCode = selectiveEnrollmentCode;
271    }
272   
273   
 
274  50 toggle public List<String> getResultOptions() {
275  50 return resultOptions;
276    }
277   
 
278  53 toggle public void setResultOptions(List<String> resultOptions) {
279  53 this.resultOptions = resultOptions;
280    }
281   
 
282  27 toggle public TimeAmountInfo getStdDuration() {
283  27 return stdDuration;
284    }
285   
 
286  78 toggle public void setStdDuration(TimeAmountInfo stdDuration) {
287  78 this.stdDuration = stdDuration;
288    }
289   
290    /**
291    * The first academic time period that this Variation would be effective. This may not reflect the first "real" academic time period for this Variation.
292    */
 
293  46 toggle public String getStartTerm() {
294  46 return startTerm;
295    }
296   
 
297  78 toggle public void setStartTerm(String startTerm) {
298  78 this.startTerm = startTerm;
299    }
300   
301    /**
302    * The last academic time period that this Variation would be effective.
303    */
 
304  65 toggle public String getEndTerm() {
305  65 return endTerm;
306    }
307   
 
308  78 toggle public void setEndTerm(String endTerm) {
309  78 this.endTerm = endTerm;
310    }
311   
312    /**
313    * The last academic time period that this Variation would be available for enrollment. This may not reflect the last "real" academic time period for this Variation.
314    */
 
315  65 toggle public String getEndProgramEntryTerm() {
316  65 return endProgramEntryTerm;
317    }
318   
 
319  78 toggle public void setEndProgramEntryTerm(String endProgramEntryTerm) {
320  78 this.endProgramEntryTerm = endProgramEntryTerm;
321    }
322   
323    /**
324    * Date and time the Variation became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
325    */
 
326  27 toggle public Date getEffectiveDate() {
327  27 return effectiveDate;
328    }
329   
 
330  78 toggle public void setEffectiveDate(Date effectiveDate) {
331  78 this.effectiveDate = effectiveDate;
332    }
333   
334    /**
335    * Abbreviated name of the Variation
336    */
 
337  38 toggle public String getShortTitle() {
338  38 return shortTitle;
339    }
340   
 
341  80 toggle public void setShortTitle(String shortTitle) {
342  80 this.shortTitle = shortTitle;
343    }
344   
345    /**
346    * Full name of the Variation Discipline
347    */
 
348  38 toggle public String getLongTitle() {
349  38 return longTitle;
350    }
351   
 
352  80 toggle public void setLongTitle(String longTitle) {
353  80 this.longTitle = longTitle;
354    }
355   
356    /**
357    * Information related to the official identification of the Variation, typically in human readable form. Used to officially reference or publish.
358    */
 
359  60 toggle public String getTranscriptTitle() {
360  60 return transcriptTitle;
361    }
362   
 
363  80 toggle public void setTranscriptTitle(String transcriptTitle) {
364  80 this.transcriptTitle = transcriptTitle;
365    }
366   
367    /**
368    *
369    */
 
370  55 toggle public String getDiplomaTitle() {
371  55 return diplomaTitle;
372    }
373   
 
374  58 toggle public void setDiplomaTitle(String diplomaTitle) {
375  58 this.diplomaTitle = diplomaTitle;
376    }
377   
378    /**
379    * Narrative description of the Variation.
380    */
 
381  38 toggle public RichTextInfo getDescr() {
382  38 return descr;
383    }
384   
 
385  80 toggle public void setDescr(RichTextInfo descr) {
386  80 this.descr = descr;
387    }
388   
389    /**
390    * Narrative description of the Variation that will show up in Catalog
391    */
 
392  51 toggle public RichTextInfo getCatalogDescr() {
393  51 return catalogDescr;
394    }
395   
 
396  67 toggle public void setCatalogDescr(RichTextInfo catalogDescr) {
397  67 this.catalogDescr = catalogDescr;
398    }
399   
400    /**
401    * List of catalog targets where program variation information will be published.
402    */
 
403  39 toggle public List<String> getCatalogPublicationTargets() {
404  39 return catalogPublicationTargets;
405    }
406   
 
407  11 toggle public void setCatalogPublicationTargets(List<String> catalogPublicationTargets) {
408  11 this.catalogPublicationTargets = catalogPublicationTargets;
409    }
410   
411    /**
412    * Learning Objectives associated with this Variation.
413    */
 
414  55 toggle public List<LoDisplayInfo> getLearningObjectives() {
415  55 if (learningObjectives == null) {
416  1 learningObjectives = new ArrayList<LoDisplayInfo>(0);
417    }
418  55 return learningObjectives;
419    }
420   
 
421  53 toggle public void setLearningObjectives(List<LoDisplayInfo> learningObjectives) {
422  53 this.learningObjectives = learningObjectives;
423    }
424   
425    /**
426    * Places where this Variation might be offered
427    */
 
428  35 toggle public List<String> getCampusLocations() {
429  35 if (campusLocations == null) {
430  0 campusLocations = new ArrayList<String>(0);
431    }
432  35 return campusLocations;
433    }
434   
 
435  79 toggle public void setCampusLocations(List<String> campusLocations) {
436  79 this.campusLocations = campusLocations;
437    }
438   
439    /**
440    * Program Variation Requirements.
441    */
 
442  61 toggle public List<String> getProgramRequirements() {
443  61 if (programRequirements == null) {
444  17 programRequirements = new ArrayList<String>(0);
445    }
446  61 return programRequirements;
447    }
448   
 
449  11 toggle public void setProgramRequirements(List<String> programRequirements) {
450  11 this.programRequirements = programRequirements;
451    }
452   
 
453  117 toggle public List<String> getDivisionsContentOwner() {
454  117 return divisionsContentOwner;
455    }
456   
 
457  78 toggle public void setDivisionsContentOwner(List<String> divisionsContentOwner) {
458  78 this.divisionsContentOwner = divisionsContentOwner;
459    }
460   
 
461  110 toggle public List<String> getDivisionsStudentOversight() {
462  110 return divisionsStudentOversight;
463    }
464   
 
465  78 toggle public void setDivisionsStudentOversight(List<String> divisionsStudentOversight) {
466  78 this.divisionsStudentOversight = divisionsStudentOversight;
467    }
468   
 
469  110 toggle public List<String> getDivisionsDeployment() {
470  110 return divisionsDeployment;
471    }
472   
 
473  78 toggle public void setDivisionsDeployment(List<String> divisionsDeployment) {
474  78 this.divisionsDeployment = divisionsDeployment;
475    }
476   
 
477  110 toggle public List<String> getDivisionsFinancialResources() {
478  110 return divisionsFinancialResources;
479    }
480   
 
481  78 toggle public void setDivisionsFinancialResources(List<String> divisionsFinancialResources) {
482  78 this.divisionsFinancialResources = divisionsFinancialResources;
483    }
484   
 
485  110 toggle public List<String> getDivisionsFinancialControl() {
486  110 return divisionsFinancialControl;
487    }
488   
 
489  78 toggle public void setDivisionsFinancialControl(List<String> divisionsFinancialControl) {
490  78 this.divisionsFinancialControl = divisionsFinancialControl;
491    }
492   
 
493  110 toggle public List<String> getUnitsContentOwner() {
494  110 return unitsContentOwner;
495    }
496   
 
497  78 toggle public void setUnitsContentOwner(List<String> unitsContentOwner) {
498  78 this.unitsContentOwner = unitsContentOwner;
499    }
500   
 
501  161 toggle public List<String> getUnitsStudentOversight() {
502  161 return unitsStudentOversight;
503    }
504   
 
505  78 toggle public void setUnitsStudentOversight(List<String> unitsStudentOversight) {
506  78 this.unitsStudentOversight = unitsStudentOversight;
507    }
508   
 
509  110 toggle public List<String> getUnitsDeployment() {
510  110 return unitsDeployment;
511    }
512   
 
513  78 toggle public void setUnitsDeployment(List<String> unitsDeployment) {
514  78 this.unitsDeployment = unitsDeployment;
515    }
516   
 
517  110 toggle public List<String> getUnitsFinancialResources() {
518  110 return unitsFinancialResources;
519    }
520   
 
521  78 toggle public void setUnitsFinancialResources(List<String> unitsFinancialResources) {
522  78 this.unitsFinancialResources = unitsFinancialResources;
523    }
524   
 
525  110 toggle public List<String> getUnitsFinancialControl() {
526  110 return unitsFinancialControl;
527    }
528   
 
529  78 toggle public void setUnitsFinancialControl(List<String> unitsFinancialControl) {
530  78 this.unitsFinancialControl = unitsFinancialControl;
531    }
532   
533    /**
534    * List of key/value pairs, typically used for dynamic attributes.
535    */
 
536  46 toggle @Override
537    public Map<String, String> getAttributes() {
538  46 if (attributes == null) {
539  0 attributes = new HashMap<String, String>();
540    }
541  46 return attributes;
542    }
543   
 
544  78 toggle @Override
545    public void setAttributes(Map<String, String> attributes) {
546  78 this.attributes = attributes;
547    }
548   
549    /**
550    * 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.
551    */
 
552  27 toggle public MetaInfo getMetaInfo() {
553  27 return metaInfo;
554    }
555   
 
556  72 toggle public void setMetaInfo(MetaInfo metaInfo) {
557  72 this.metaInfo = metaInfo;
558    }
559   
560   
 
561  33 toggle public VersionInfo getVersionInfo() {
562  33 return versionInfo;
563    }
564   
 
565  78 toggle public void setVersionInfo(VersionInfo versionInfo) {
566  78 this.versionInfo = versionInfo;
567    }
568   
569    /**
570    * Unique identifier for a learning unit type. Once set at create time, this field may not be updated.
571    */
 
572  29 toggle @Override
573    public String getType() {
574  29 return type;
575    }
576   
 
577  78 toggle @Override
578    public void setType(String type) {
579  78 this.type = type;
580    }
581   
582    /**
583    * The current status of the major 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.
584    */
 
585  138 toggle @Override
586    public String getState() {
587  138 return state;
588    }
589   
 
590  83 toggle @Override
591    public void setState(String state) {
592  83 this.state = state;
593    }
594   
595    /**
596    * The page majorProgramId Structure does not exist. 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.
597    */
 
598  252 toggle @Override
599    public String getId() {
600  252 return id;
601    }
602   
 
603  88 toggle @Override
604    public void setId(String id) {
605  88 this.id = id;
606    }
607    }