|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CluSetInfo | Line # 41 | 36 | 0% | 33 | 0 | 100% |
1.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
(83) | |||
Result | |||
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddClusToCluSet_InvalidCluId
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetsToCluSet_DuplicateCluSetId
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetsToCluSet_InvalidCluSetId
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testDeleteCluSet
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_RemoveClu
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCluSetCrud
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCreateDynamicCluSet_Simple
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_removeCluSets
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testRemoveCluFromCluSet
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testRemoveCluSetFromCluSet
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_ClearClus
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetsToCluSet_NestedCircularRelationshipException
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_AddCluSets
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetToCluSet_DuplicateCluSetId
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetToCluSet_NestedCircularRelationshipException
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testGetCluSetTreeView_dynamicCluSet
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetToCluSet_InvalidCluSetId
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluToCluSet_DuplicateCluId
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testGetDynamicCluSet
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddClusToCluSet_DuplicateCluId
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetToCluSet_CircularRelationshipException
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_ClearCluSets
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetsToCluSet
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetToCluSet
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluToCluSet
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateDynamicCluSet
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetsToCluSet_CircularRelationshipException
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddClusToCluSet
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCreateDynamicCluSet
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_VersionMismatch
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_AddClu
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testGetDynamicCluSet_Simple
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_noneN
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_admitted_org_duration_ProgramAsCluSet
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_allN_CluSetOfClusets
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_DefaultEnglish
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_1ofN
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_courseset_completed_max
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_CompletedNotation
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_1of1
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_max_GradeType_CompletedNotation
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_MinCoursesMinGradeTest_GradeType_CompletedNotation
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_none1
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_credits_none
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_Letter
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_max_GradeType_Letter
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_Completed2ofProgram
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_enroll_1ofN
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_NotCompletedProgram
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_org_duration_ProgramAsCluSet
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_credits_1ofN
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_MinTestScoreOnTest
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_credits_max2
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testGetCluSetTreeView
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_credits_max1
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_2ofN
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_MinCoursesMinGradeTest_GradeType_Letter
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_NotCompletedAnyOfProgram
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_admitted_ProgramAsCluSet
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateStatementTree
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_Percentage
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_CompletedSingleProgram
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_Satisfactory
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_gradecheck
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_MaxTestScoreOnTest
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_all1
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_CompletedAllProgram
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_2CourseCompletedFromPrograms
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_Completed1ofProgram
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_2CourseCompletedFrom1Program
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_1CourseCompletedFromPrograms
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_ProgramAsCluSet
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_enroll_2ofN
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_credits_2ofN
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_PassFail
![]() |
1 PASS | |
0.9166667
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_allN
![]() |
1 PASS | |
0.5416667
|
org.kuali.student.lum.course.service.impl.TestCluSetInfoDictionary.testCluSetInfoValidation
![]() |
1 PASS | |
0.44444445
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCluSet
![]() |
1 PASS | |
0.43055555
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCreateCluSet_InvalidCluSet2
![]() |
1 PASS | |
0.41666666
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCreateCluSet_InvalidCluSet3
![]() |
1 PASS | |
0.3611111
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCreateCluSet_InvalidCluSet1
![]() |
1 PASS | |
0.027777778
|
org.kuali.student.lum.statement.config.context.LuContextImplTest.testCreateContextMap_Clu
![]() |
1 PASS | |
0.027777778
|
org.kuali.student.lum.statement.config.context.LuContextImplTest.testCreateContextMap_CluSet
![]() |
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.lu.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.Idable; | |
33 | import org.kuali.student.common.dto.MetaInfo; | |
34 | import org.kuali.student.common.dto.RichTextInfo; | |
35 | import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; | |
36 | ||
37 | /** | |
38 | *Detailed information about a single CLU Set. | |
39 | */ | |
40 | @XmlAccessorType(XmlAccessType.FIELD) | |
41 | public class CluSetInfo implements Serializable, Idable, HasAttributes { | |
42 | ||
43 | private static final long serialVersionUID = 1L; | |
44 | ||
45 | @XmlElement | |
46 | private String name; | |
47 | ||
48 | @XmlElement | |
49 | private RichTextInfo descr; | |
50 | ||
51 | @XmlElement | |
52 | private Date effectiveDate; | |
53 | ||
54 | @XmlElement | |
55 | private Date expirationDate; | |
56 | ||
57 | @XmlElement | |
58 | private MembershipQueryInfo membershipQuery; | |
59 | ||
60 | @XmlElement | |
61 | private String adminOrg; | |
62 | ||
63 | @XmlElement | |
64 | private Boolean isReusable; | |
65 | ||
66 | @XmlElement | |
67 | private Boolean isReferenceable; | |
68 | ||
69 | @XmlElement | |
70 | private List<String> cluSetIds; | |
71 | ||
72 | @XmlElement | |
73 | private List<String> cluIds; | |
74 | ||
75 | @XmlElement | |
76 | @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) | |
77 | private Map<String, String> attributes; | |
78 | ||
79 | @XmlElement | |
80 | private MetaInfo metaInfo; | |
81 | ||
82 | @XmlAttribute | |
83 | private String type; | |
84 | ||
85 | @XmlAttribute | |
86 | private String state; | |
87 | ||
88 | @XmlAttribute | |
89 | private String id; | |
90 | ||
91 | /** | |
92 | * Friendly name of the CLU Set. | |
93 | */ | |
94 | 145 |
![]() |
95 | 145 | return name; |
96 | } | |
97 | ||
98 | 214 |
![]() |
99 | 214 | this.name = name; |
100 | } | |
101 | ||
102 | /** | |
103 | * Narrative description of the CLU Set. | |
104 | */ | |
105 | 149 |
![]() |
106 | 149 | return descr; |
107 | } | |
108 | ||
109 | 213 |
![]() |
110 | 213 | this.descr = descr; |
111 | } | |
112 | ||
113 | /** | |
114 | * Date and time that this CLU Set 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. | |
115 | */ | |
116 | 145 |
![]() |
117 | 145 | return effectiveDate; |
118 | } | |
119 | ||
120 | 214 |
![]() |
121 | 214 | this.effectiveDate = effectiveDate; |
122 | } | |
123 | ||
124 | /** | |
125 | * Date and time that this CLU Set 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. | |
126 | */ | |
127 | 145 |
![]() |
128 | 145 | return expirationDate; |
129 | } | |
130 | ||
131 | 214 |
![]() |
132 | 214 | this.expirationDate = expirationDate; |
133 | } | |
134 | ||
135 | // /** | |
136 | // * Specifies a search for CLU identifiers. Present for dynamic CLU Sets | |
137 | // */ | |
138 | // public CluCriteriaInfo getCluCriteria() { | |
139 | // return cluCriteria; | |
140 | // } | |
141 | // | |
142 | // public void setCluCriteria(CluCriteriaInfo cluCriteria) { | |
143 | // this.cluCriteria = cluCriteria; | |
144 | // } | |
145 | ||
146 | /** | |
147 | * List of identifiers of directly contained CLU Sets. Present for enumerated CLU Sets. | |
148 | */ | |
149 | 219 |
![]() |
150 | 219 | if (cluSetIds == null) { |
151 | 51 | cluSetIds = new ArrayList<String>(); |
152 | } | |
153 | 219 | return cluSetIds; |
154 | } | |
155 | ||
156 | 168 |
![]() |
157 | 168 | this.cluSetIds = cluSetIds; |
158 | } | |
159 | ||
160 | /** | |
161 | * List of identifiers of directly contained CLUs. Present for enumerated CLU Sets. | |
162 | */ | |
163 | 291 |
![]() |
164 | 291 | if (cluIds == null) { |
165 | 49 | cluIds = new ArrayList<String>(); |
166 | } | |
167 | 291 | return cluIds; |
168 | } | |
169 | ||
170 | 177 |
![]() |
171 | 177 | this.cluIds = cluIds; |
172 | } | |
173 | ||
174 | /** | |
175 | * List of key/value pairs, typically used for dynamic attributes. | |
176 | */ | |
177 | 153 |
![]() |
178 | 153 | if (attributes == null) { |
179 | 37 | attributes = new HashMap<String, String>(); |
180 | } | |
181 | 153 | return attributes; |
182 | } | |
183 | ||
184 | 174 |
![]() |
185 | 174 | this.attributes = attributes; |
186 | } | |
187 | ||
188 | /** | |
189 | * 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. | |
190 | */ | |
191 | 112 |
![]() |
192 | 112 | return metaInfo; |
193 | } | |
194 | ||
195 | 174 |
![]() |
196 | 174 | this.metaInfo = metaInfo; |
197 | } | |
198 | ||
199 | /** | |
200 | * Unique identifier for a CLU Set. This is optional, due to the identifier being set at the time of creation. Once the CLU Set has been created, this should be seen as required. | |
201 | */ | |
202 | 241 |
![]() |
203 | 241 | return id; |
204 | } | |
205 | ||
206 | 187 |
![]() |
207 | 187 | this.id = id; |
208 | } | |
209 | ||
210 | 337 |
![]() |
211 | 337 | return membershipQuery; |
212 | } | |
213 | ||
214 | 183 |
![]() |
215 | 183 | this.membershipQuery = membershipQuery; |
216 | } | |
217 | ||
218 | /** | |
219 | * Gets the clu set type. | |
220 | * Once set at create time, this field may not be updated. | |
221 | * | |
222 | * @return Clu set type | |
223 | */ | |
224 | 239 |
![]() |
225 | 239 | return type; |
226 | } | |
227 | ||
228 | /** | |
229 | * Sets the clu set type. | |
230 | * Once set at create time, this field may not be updated. | |
231 | * | |
232 | * @param type Clu set type | |
233 | */ | |
234 | 252 |
![]() |
235 | 252 | this.type = type; |
236 | } | |
237 | ||
238 | 143 |
![]() |
239 | 143 | return state; |
240 | } | |
241 | ||
242 | 213 |
![]() |
243 | 213 | this.state = state; |
244 | } | |
245 | ||
246 | 145 |
![]() |
247 | 145 | return adminOrg; |
248 | } | |
249 | ||
250 | 176 |
![]() |
251 | 176 | this.adminOrg = adminOrg; |
252 | } | |
253 | ||
254 | 149 |
![]() |
255 | 149 | return isReusable; |
256 | } | |
257 | ||
258 | 348 |
![]() |
259 | 348 | this.isReusable = isReusable; |
260 | } | |
261 | ||
262 | 143 |
![]() |
263 | 143 | return isReferenceable; |
264 | } | |
265 | ||
266 | 348 |
![]() |
267 | 348 | this.isReferenceable = isReferenceable; |
268 | } | |
269 | } |
|