|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LoInfo | Line # 46 | 23 | 0% | 22 | 0 | 100% |
1.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
(41) | |||
Result | |||
0.95652175
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse | 1 PASS | |
0.95652175
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule | 1 PASS | |
0.95652175
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateProgramRequirement org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateProgramRequirement | 1 PASS | |
0.9130435
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDiscipline org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDiscipline | 1 PASS | |
0.9130435
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateCoreProgram org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateCoreProgram | 1 PASS | |
0.9130435
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testLo org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testLo | 1 PASS | |
0.9130435
|
org.kuali.student.lum.program.service.impl.TestProgramInfoDictionary.testMajorDisciplineInfoValidation org.kuali.student.lum.program.service.impl.TestProgramInfoDictionary.testMajorDisciplineInfoValidation | 1 PASS | |
0.9130435
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateVariationsByMajorDiscipline org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateVariationsByMajorDiscipline | 1 PASS | |
0.9130435
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule | 1 PASS | |
0.9130435
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateVariationsByMajorDiscipline org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateVariationsByMajorDiscipline | 1 PASS | |
0.9130435
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteVariationsByMajorDiscipline org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteVariationsByMajorDiscipline | 1 PASS | |
0.8913044
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreditsProgramRequirement org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreditsProgramRequirement | 1 PASS | |
0.8913044
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteProgramRequirement org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteProgramRequirement | 1 PASS | |
0.8913044
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateProgramRequirement org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateProgramRequirement | 1 PASS | |
0.8695652
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions | 1 PASS | |
0.8695652
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning | 1 PASS | |
0.8695652
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing | 1 PASS | |
0.8695652
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes | 1 PASS | |
0.8695652
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteCoreProgram org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteCoreProgram | 1 PASS | |
0.8695652
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateCoreProgram org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateCoreProgram | 1 PASS | |
0.8695652
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline | 1 PASS | |
0.8695652
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions | 1 PASS | |
0.8695652
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion | 1 PASS | |
0.8695652
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion | 1 PASS | |
0.8695652
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning | 1 PASS | |
0.8695652
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange | 1 PASS | |
0.8695652
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse | 1 PASS | |
0.8695652
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse | 1 PASS | |
0.8695652
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate | 1 PASS | |
0.8695652
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCoreProgramVersioning org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCoreProgramVersioning | 1 PASS | |
0.8695652
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse | 1 PASS | |
0.8695652
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram | 1 PASS | |
0.8695652
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber | 1 PASS | |
0.82608694
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testDisallowLoWEmptyDesc org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testDisallowLoWEmptyDesc | 1 PASS | |
0.7826087
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetProgramRequirement org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetProgramRequirement | 1 PASS | |
0.5217391
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetMajorDiscipline org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetMajorDiscipline | 1 PASS | |
0.5217391
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetCoreProgram org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetCoreProgram | 1 PASS | |
0.47826087
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testLoCategory org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testLoCategory | 1 PASS | |
0.47826087
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetVariationsByMajorDisciplineId org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetVariationsByMajorDisciplineId | 1 PASS | |
0.47826087
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testGetRelatedLosByLoId org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testGetRelatedLosByLoId | 1 PASS | |
0.4347826
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testGetLoByIdList org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testGetLoByIdList | 1 PASS | |
1 | /** | |
2 | * Copyright 2010 The Kuali Foundation Licensed under the | |
3 | * Educational Community License, Version 2.0 (the "License"); you may | |
4 | * not use this file except in compliance with the License. You may | |
5 | * obtain a copy of the License at | |
6 | * | |
7 | * http://www.osedu.org/licenses/ECL-2.0 | |
8 | * | |
9 | * Unless required by applicable law or agreed to in writing, | |
10 | * software distributed under the License is distributed on an "AS IS" | |
11 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | |
12 | * or implied. See the License for the specific language governing | |
13 | * permissions and limitations under the License. | |
14 | */ | |
15 | ||
16 | package org.kuali.student.lum.lo.dto; | |
17 | ||
18 | import java.io.Serializable; | |
19 | import java.util.Date; | |
20 | import java.util.HashMap; | |
21 | import java.util.Map; | |
22 | ||
23 | import javax.xml.bind.annotation.XmlAccessType; | |
24 | import javax.xml.bind.annotation.XmlAccessorType; | |
25 | import javax.xml.bind.annotation.XmlAttribute; | |
26 | import javax.xml.bind.annotation.XmlElement; | |
27 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | |
28 | ||
29 | import org.kuali.student.common.dto.HasAttributes; | |
30 | import org.kuali.student.common.dto.HasTypeState; | |
31 | import org.kuali.student.common.dto.Idable; | |
32 | import org.kuali.student.common.dto.MetaInfo; | |
33 | import org.kuali.student.common.dto.RichTextInfo; | |
34 | import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; | |
35 | ||
36 | /** | |
37 | * Detailed information about a learning objective | |
38 | * | |
39 | * @Author KSContractMojo | |
40 | * @Author jimt | |
41 | * @Since Tue Dec 08 10:01:30 PST 2009 | |
42 | * @See <a href="https://test.kuali.org/confluence/display/KULSTU/loInfo+Structure+v1.0-rc2">LoInfo</> | |
43 | * | |
44 | */ | |
45 | @XmlAccessorType(XmlAccessType.FIELD) | |
46 | public class LoInfo implements Serializable, Idable, HasTypeState, HasAttributes { | |
47 | ||
48 | private static final long serialVersionUID = 1L; | |
49 | ||
50 | @XmlElement | |
51 | private String name; | |
52 | ||
53 | @XmlElement | |
54 | private RichTextInfo desc; | |
55 | ||
56 | @XmlElement | |
57 | private String loRepositoryKey; | |
58 | ||
59 | @XmlElement | |
60 | private Date effectiveDate; | |
61 | ||
62 | @XmlElement | |
63 | private Date expirationDate; | |
64 | ||
65 | @XmlElement | |
66 | @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) | |
67 | private Map<String, String> attributes; | |
68 | ||
69 | @XmlElement | |
70 | private MetaInfo metaInfo; | |
71 | ||
72 | @XmlAttribute | |
73 | private String type; | |
74 | ||
75 | @XmlAttribute | |
76 | private String state; | |
77 | ||
78 | @XmlAttribute | |
79 | private String id; | |
80 | ||
81 | /** | |
82 | * Friendly name of the learning objective | |
83 | */ | |
84 | 735 | public String getName() { |
85 | 735 | return name; |
86 | } | |
87 | ||
88 | 1608 | public void setName(String name) { |
89 | 1608 | this.name = name; |
90 | } | |
91 | ||
92 | /** | |
93 | * Narrative description of the learning objective | |
94 | */ | |
95 | 748 | public RichTextInfo getDesc() { |
96 | 748 | return desc; |
97 | } | |
98 | ||
99 | 1614 | public void setDesc(RichTextInfo desc) { |
100 | 1614 | this.desc = desc; |
101 | } | |
102 | ||
103 | /** | |
104 | * Unique identifier for a learning objective repository. This value is immutable once set during creation. | |
105 | */ | |
106 | 1387 | public String getLoRepositoryKey() { |
107 | 1387 | return loRepositoryKey; |
108 | } | |
109 | ||
110 | 2968 | public void setLoRepositoryKey(String loRepositoryKey) { |
111 | 2968 | this.loRepositoryKey = loRepositoryKey; |
112 | } | |
113 | ||
114 | /** | |
115 | * Date and time that this learning objective 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. | |
116 | */ | |
117 | 736 | public Date getEffectiveDate() { |
118 | 736 | return effectiveDate; |
119 | } | |
120 | ||
121 | 1607 | public void setEffectiveDate(Date effectiveDate) { |
122 | 1607 | this.effectiveDate = effectiveDate; |
123 | } | |
124 | ||
125 | /** | |
126 | * Date and time that this learning objective expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date. | |
127 | */ | |
128 | 736 | public Date getExpirationDate() { |
129 | 736 | return expirationDate; |
130 | } | |
131 | ||
132 | 1607 | public void setExpirationDate(Date expirationDate) { |
133 | 1607 | this.expirationDate = expirationDate; |
134 | } | |
135 | ||
136 | /** | |
137 | * List of key/value pairs, typically used for dynamic attributes. | |
138 | */ | |
139 | 1038 | public Map<String, String> getAttributes() { |
140 | 1038 | if (attributes == null) { |
141 | 7 | attributes = new HashMap<String, String>(); |
142 | } | |
143 | 1038 | return attributes; |
144 | } | |
145 | ||
146 | 1607 | public void setAttributes(Map<String, String> attributes) { |
147 | 1607 | this.attributes = attributes; |
148 | } | |
149 | ||
150 | /** | |
151 | * 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. | |
152 | */ | |
153 | 105 | public MetaInfo getMetaInfo() { |
154 | 105 | return metaInfo; |
155 | } | |
156 | ||
157 | 1073 | public void setMetaInfo(MetaInfo metaInfo) { |
158 | 1073 | this.metaInfo = metaInfo; |
159 | } | |
160 | ||
161 | /** | |
162 | * Unique identifier for a learning objective type. | |
163 | */ | |
164 | 1389 | public String getType() { |
165 | 1389 | return type; |
166 | } | |
167 | ||
168 | 2962 | public void setType(String type) { |
169 | 2962 | this.type = type; |
170 | } | |
171 | ||
172 | /** | |
173 | * The current status of the learning objective. The values for this field are constrained to those in the loState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value. | |
174 | */ | |
175 | 1289 | public String getState() { |
176 | 1289 | return state; |
177 | } | |
178 | ||
179 | 1655 | public void setState(String state) { |
180 | 1655 | this.state = state; |
181 | } | |
182 | ||
183 | /** | |
184 | * Unique identifier for a learning objective record. This is optional, due to the identifier being set at the time of creation. Once the learning objective has been created, this should be seen as required. | |
185 | */ | |
186 | 5147 | public String getId() { |
187 | 5147 | return id; |
188 | } | |
189 | ||
190 | 3183 | public void setId(String id) { |
191 | 3183 | this.id = id; |
192 | } | |
193 | ||
194 | 56 | @Override |
195 | public String toString() { | |
196 | 56 | return "LoInfo[id=" + id + "]"; |
197 | } | |
198 | } |
|