View Javadoc

1   package org.kuali.student.r2.lum.program.dto;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   
6   import javax.xml.bind.annotation.XmlElement;
7   import javax.xml.bind.annotation.XmlTransient;
8   
9   import org.kuali.student.r2.common.dto.IdNamelessEntityInfo;
10  import org.kuali.student.r2.common.dto.RichTextInfo;
11  import org.kuali.student.r2.core.versionmanagement.dto.VersionInfo;
12  import org.kuali.student.r2.lum.course.dto.LoDisplayInfo;
13  import org.kuali.student.r2.lum.course.infc.LoDisplay;
14  import org.kuali.student.r2.lum.program.infc.CommonWithCredentialProgram;
15  
16  @SuppressWarnings("serial")
17  @XmlTransient
18  public abstract class CommonWithCredentialProgramInfo extends IdNamelessEntityInfo implements CommonWithCredentialProgram {
19  
20      @XmlElement
21      private VersionInfo version;
22      @XmlElement
23      private RichTextInfo descr;
24      @XmlElement
25      private String shortTitle;
26      @XmlElement
27      private String longTitle;
28      @XmlElement
29      private String transcriptTitle;
30      @XmlElement
31      private String code;
32      @XmlElement
33      private String universityClassification;
34      @XmlElement
35      private String startTerm;
36      @XmlElement
37      private String endTerm;
38      @XmlElement
39      private String endProgramEntryTerm;
40      @XmlElement
41      private List<String> divisionsContentOwner;
42      @XmlElement
43      private List<String> divisionsStudentOversight;
44      @XmlElement
45      private List<String> unitsContentOwner;
46      @XmlElement
47      private List<String> unitsStudentOversight;
48      @XmlElement
49      private List<LoDisplayInfo> learningObjectives;
50      @XmlElement
51      private List<String> programRequirements;
52  
53      public CommonWithCredentialProgramInfo() {
54      }
55  
56      public CommonWithCredentialProgramInfo(CommonWithCredentialProgram input) {
57          super(input);
58          if (input != null) {
59              this.version = input.getVersion() != null
60                      ? new VersionInfo(input.getVersion())
61                      : null;
62              this.descr = input.getDescr() != null
63                      ? new RichTextInfo(input.getDescr())
64                      : null;
65              this.shortTitle = input.getShortTitle();
66              this.longTitle = input.getLongTitle();
67              this.transcriptTitle = input.getTranscriptTitle();
68              this.code = input.getCode();
69              this.universityClassification = input.getUniversityClassification();
70              this.startTerm = input.getStartTerm();
71              this.endTerm = input.getEndTerm();
72              this.endProgramEntryTerm = input.getEndProgramEntryTerm();
73              this.programRequirements = input.getProgramRequirements() != null
74                      ? new ArrayList<String>(input.getProgramRequirements())
75                      : new ArrayList<String>();
76              this.divisionsContentOwner = input.getDivisionsContentOwner() != null
77                      ? new ArrayList<String>(input.getDivisionsContentOwner())
78                      : new ArrayList<String>();
79              this.divisionsStudentOversight = input.getDivisionsStudentOversight() != null
80                      ? new ArrayList<String>(input.getDivisionsContentOwner())
81                      : new ArrayList<String>();
82              this.unitsContentOwner = input.getUnitsContentOwner() != null
83                      ? new ArrayList<String>(input.getUnitsContentOwner())
84                      : new ArrayList<String>();
85              this.unitsStudentOversight = input.getUnitsStudentOversight() != null
86                      ? new ArrayList<String>(input.getUnitsStudentOversight())
87                      : new ArrayList<String>();
88              List<LoDisplayInfo> los = new ArrayList<LoDisplayInfo>();
89              if (input.getLearningObjectives() != null) {
90                  for (LoDisplay loDisplay : input.getLearningObjectives()) {
91                      LoDisplayInfo loDisplayInfo = new LoDisplayInfo(loDisplay);
92                      los.add(loDisplayInfo);
93                  }
94              }
95              this.learningObjectives = los;
96          }
97      }
98  
99      @Override
100     public VersionInfo getVersion() {
101         return version;
102     }
103 
104     public void setVersion(VersionInfo version) {
105         this.version = version;
106     }
107 
108     @Override
109     public RichTextInfo getDescr() {
110         return descr;
111     }
112 
113     public void setDescr(RichTextInfo descr) {
114         this.descr = descr;
115     }
116 
117     @Override
118     public String getShortTitle() {
119         return shortTitle;
120     }
121 
122     public void setShortTitle(String shortTitle) {
123         this.shortTitle = shortTitle;
124     }
125 
126     @Override
127     public String getLongTitle() {
128         return longTitle;
129     }
130 
131     public void setLongTitle(String longTitle) {
132         this.longTitle = longTitle;
133     }
134 
135     @Override
136     public String getTranscriptTitle() {
137         return transcriptTitle;
138     }
139 
140     public void setTranscriptTitle(String transcriptTitle) {
141         this.transcriptTitle = transcriptTitle;
142     }
143 
144     @Override
145     public String getCode() {
146         return code;
147     }
148 
149     public void setCode(String code) {
150         this.code = code;
151     }
152 
153     @Override
154     public String getUniversityClassification() {
155         return universityClassification;
156     }
157 
158     public void setUniversityClassification(String universityClassification) {
159         this.universityClassification = universityClassification;
160     }
161 
162     @Override
163     public String getStartTerm() {
164         return startTerm;
165     }
166 
167     public void setStartTerm(String startTerm) {
168         this.startTerm = startTerm;
169     }
170 
171     @Override
172     public String getEndTerm() {
173         return endTerm;
174     }
175 
176     public void setEndTerm(String endTerm) {
177         this.endTerm = endTerm;
178     }
179 
180     @Override
181     public String getEndProgramEntryTerm() {
182         return endProgramEntryTerm;
183     }
184 
185     public void setEndProgramEntryTerm(String endProgramEntryTermId) {
186         this.endProgramEntryTerm = endProgramEntryTermId;
187     }
188 
189     @Override
190     public List<String> getDivisionsContentOwner() {
191         return divisionsContentOwner;
192     }
193 
194     public void setDivisionsContentOwner(List<String> divisionsContentOwnerIds) {
195         this.divisionsContentOwner = divisionsContentOwnerIds;
196     }
197 
198     @Override
199     public List<String> getDivisionsStudentOversight() {
200         return divisionsStudentOversight;
201     }
202 
203     public void setDivisionsStudentOversight(List<String> divisionsStudentOversightIds) {
204         this.divisionsStudentOversight = divisionsStudentOversightIds;
205     }
206 
207     @Override
208     public List<String> getUnitsContentOwner() {
209         return unitsContentOwner;
210     }
211 
212     public void setUnitsContentOwner(List<String> unitsContentOwner) {
213         this.unitsContentOwner = unitsContentOwner;
214     }
215 
216     @Override
217     public List<String> getUnitsStudentOversight() {
218         return unitsStudentOversight;
219     }
220 
221     public void setUnitsStudentOversight(List<String> unitsStudentOversight) {
222         this.unitsStudentOversight = unitsStudentOversight;
223     }
224 
225     @Override
226     public List<LoDisplayInfo> getLearningObjectives() {
227         return learningObjectives;
228     }
229 
230     public void setLearningObjectives(List<LoDisplayInfo> learningObjectives) {
231         this.learningObjectives = learningObjectives;
232     }
233 
234     @Override
235     public List<String> getProgramRequirements() {
236         if (programRequirements == null) {
237             programRequirements = new ArrayList<String>(0);
238         }
239         return programRequirements;
240     }
241 
242     public void setProgramRequirements(List<String> programRequirements) {
243         this.programRequirements = programRequirements;
244     }
245 
246   
247 }