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