|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CluCluRelationInfo | Line # 39 | 23 | 0% | 22 | 2 | 95.7% |
0.95652175
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
(30) | |||
Result | |||
0.95652175
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCluCluRelationCrud org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCluCluRelationCrud | 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.course.service.impl.TestCourseServiceImpl.testGetVersions org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions | 1 PASS | |
0.8913044
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning | 1 PASS | |
0.8913044
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse | 1 PASS | |
0.8913044
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing | 1 PASS | |
0.8913044
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes | 1 PASS | |
0.8913044
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDiscipline org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDiscipline | 1 PASS | |
0.8913044
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteCoreProgram org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteCoreProgram | 1 PASS | |
0.8913044
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateCoreProgram org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateCoreProgram | 1 PASS | |
0.8913044
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule | 1 PASS | |
0.8913044
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline | 1 PASS | |
0.8913044
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions | 1 PASS | |
0.8913044
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion | 1 PASS | |
0.8913044
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion | 1 PASS | |
0.8913044
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange | 1 PASS | |
0.8913044
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning | 1 PASS | |
0.8913044
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse | 1 PASS | |
0.8913044
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse | 1 PASS | |
0.8913044
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate | 1 PASS | |
0.8913044
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateVariationsByMajorDiscipline org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateVariationsByMajorDiscipline | 1 PASS | |
0.8913044
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule | 1 PASS | |
0.8913044
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateVariationsByMajorDiscipline org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateVariationsByMajorDiscipline | 1 PASS | |
0.8913044
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse | 1 PASS | |
0.8913044
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram | 1 PASS | |
0.8913044
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber | 1 PASS | |
0.5652174
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetMajorDiscipline org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetMajorDiscipline | 1 PASS | |
0.5652174
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetVariationsByMajorDisciplineId org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetVariationsByMajorDisciplineId | 1 PASS | |
0.5652174
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateBaccCredentialProgram org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateBaccCredentialProgram | 1 PASS | |
0.4347826
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCluCluRelation org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCluCluRelation | 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.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.core.ws.binding.JaxbAttributeMapListAdapter; | |
34 | ||
35 | /** | |
36 | *Detailed information about a CLU to CLU relationship. | |
37 | */ | |
38 | @XmlAccessorType(XmlAccessType.FIELD) | |
39 | public class CluCluRelationInfo implements Serializable, Idable, HasTypeState, HasAttributes { | |
40 | ||
41 | private static final long serialVersionUID = 1L; | |
42 | ||
43 | @XmlElement | |
44 | private String cluId; | |
45 | ||
46 | @XmlElement | |
47 | private String relatedCluId; | |
48 | ||
49 | @XmlElement | |
50 | private Boolean isCluRelationRequired; | |
51 | ||
52 | @XmlElement | |
53 | private Date effectiveDate; | |
54 | ||
55 | @XmlElement | |
56 | private Date expirationDate; | |
57 | ||
58 | @XmlElement | |
59 | @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) | |
60 | private Map<String, String> attributes; | |
61 | ||
62 | @XmlElement | |
63 | private MetaInfo metaInfo; | |
64 | ||
65 | @XmlAttribute | |
66 | private String type; | |
67 | ||
68 | @XmlAttribute | |
69 | private String state; | |
70 | ||
71 | @XmlAttribute | |
72 | private String id; | |
73 | ||
74 | /** | |
75 | * Unique identifier for a Canonical Learning Unit (CLU). | |
76 | */ | |
77 | 187 | public String getCluId() { |
78 | 187 | return cluId; |
79 | } | |
80 | ||
81 | 573 | public void setCluId(String cluId) { |
82 | 573 | this.cluId = cluId; |
83 | } | |
84 | ||
85 | /** | |
86 | * Unique identifier for a Canonical Learning Unit (CLU). | |
87 | */ | |
88 | 262 | public String getRelatedCluId() { |
89 | 262 | return relatedCluId; |
90 | } | |
91 | ||
92 | 573 | public void setRelatedCluId(String relatedCluId) { |
93 | 573 | this.relatedCluId = relatedCluId; |
94 | } | |
95 | ||
96 | /** | |
97 | * Indicates if the relation is required upon instantiation of a LUI. Default is "true". | |
98 | */ | |
99 | 191 | public Boolean getIsCluRelationRequired() { |
100 | 191 | return isCluRelationRequired; |
101 | } | |
102 | ||
103 | 393 | public void setIsCluRelationRequired(Boolean isCluRelationRequired) { |
104 | 393 | this.isCluRelationRequired = isCluRelationRequired; |
105 | } | |
106 | ||
107 | /** | |
108 | * Date and time that this CLU to CLU relationship 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. | |
109 | */ | |
110 | 188 | public Date getEffectiveDate() { |
111 | 188 | return effectiveDate; |
112 | } | |
113 | ||
114 | 393 | public void setEffectiveDate(Date effectiveDate) { |
115 | 393 | this.effectiveDate = effectiveDate; |
116 | } | |
117 | ||
118 | /** | |
119 | * Date and time that this CLU to CLU relationship 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. | |
120 | */ | |
121 | 188 | public Date getExpirationDate() { |
122 | 188 | return expirationDate; |
123 | } | |
124 | ||
125 | 393 | public void setExpirationDate(Date expirationDate) { |
126 | 393 | this.expirationDate = expirationDate; |
127 | } | |
128 | ||
129 | /** | |
130 | * List of key/value pairs, typically used for dynamic attributes. | |
131 | */ | |
132 | 199 | public Map<String, String> getAttributes() { |
133 | 199 | if (attributes == null) { |
134 | 182 | attributes = new HashMap<String, String>(); |
135 | } | |
136 | 199 | return attributes; |
137 | } | |
138 | ||
139 | 391 | @Override |
140 | public void setAttributes(Map<String, String> attributes) { | |
141 | 391 | this.attributes = attributes; |
142 | } | |
143 | ||
144 | /** | |
145 | * 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. | |
146 | */ | |
147 | 6 | public MetaInfo getMetaInfo() { |
148 | 6 | return metaInfo; |
149 | } | |
150 | ||
151 | 391 | public void setMetaInfo(MetaInfo metaInfo) { |
152 | 391 | this.metaInfo = metaInfo; |
153 | } | |
154 | ||
155 | /** | |
156 | * Unique identifier for the LU to LU relation type. | |
157 | */ | |
158 | 390 | public String getType() { |
159 | 390 | return type; |
160 | } | |
161 | ||
162 | 573 | public void setType(String type) { |
163 | 573 | this.type = type; |
164 | } | |
165 | ||
166 | /** | |
167 | * Identifier for the current status of a CLU to CLU relationship. The values for this field are constrained to those in the luLuRelationState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value. | |
168 | */ | |
169 | 284 | public String getState() { |
170 | 284 | return state; |
171 | } | |
172 | ||
173 | 575 | public void setState(String state) { |
174 | 575 | this.state = state; |
175 | } | |
176 | ||
177 | /** | |
178 | * Unique identifier for a CLU to CLU relationship. This is optional, due to the identifier being set at the time of creation. Once the relation has been created, this should be seen as required. | |
179 | */ | |
180 | 240 | public String getId() { |
181 | 240 | return id; |
182 | } | |
183 | ||
184 | 409 | public void setId(String id) { |
185 | 409 | this.id = id; |
186 | } | |
187 | ||
188 | 0 | @Override |
189 | public String toString() { | |
190 | 0 | return "CluCluRelationInfo[id=" + id + ", cluId=" + cluId + ", relatedCluId=" + relatedCluId + ", type=" + type + ", cluRelationRequired=" + isCluRelationRequired + "]"; |
191 | } | |
192 | } |
|