|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LoLoRelationInfo | Line # 42 | 20 | 0% | 19 | 0 | 100% |
1.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
(29) | |||
Result | |||
1.0
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testLo
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testCreateLoLoRelation
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteCoreProgram
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateCoreProgram
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCoreProgramVersioning
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse
![]() |
1 PASS | |
0.925
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion
![]() |
1 PASS | |
0.65
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testGetLoLoRelation
![]() |
1 PASS | |
0.55
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDiscipline
![]() |
1 PASS | |
0.55
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateVariationsByMajorDiscipline
![]() |
1 PASS | |
0.55
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule
![]() |
1 PASS | |
0.55
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteVariationsByMajorDiscipline
![]() |
1 PASS | |
0.55
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateVariationsByMajorDiscipline
![]() |
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.MetaInfo; | |
30 | import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; | |
31 | ||
32 | /** | |
33 | * | |
34 | * | |
35 | * @Author KSContractMojo | |
36 | * @Author jimt | |
37 | * @Since Tue Dec 08 10:01:34 PST 2009 | |
38 | * @See <a href="https://test.kuali.org/confluence/display/KULSTU/loLoRelationInfo+Structure+v1.0-rc2">LoLoRelationInfo</> | |
39 | * | |
40 | */ | |
41 | @XmlAccessorType(XmlAccessType.FIELD) | |
42 | public class LoLoRelationInfo implements Serializable { | |
43 | ||
44 | private static final long serialVersionUID = 1L; | |
45 | ||
46 | @XmlElement | |
47 | private String loId; | |
48 | ||
49 | @XmlElement | |
50 | private String relatedLoId; | |
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 learning objective record. This is the "From" or "Parent" in the relation. | |
76 | */ | |
77 | 1112 |
![]() |
78 | 1112 | return loId; |
79 | } | |
80 | ||
81 | 1731 |
![]() |
82 | 1731 | this.loId = loId; |
83 | } | |
84 | ||
85 | /** | |
86 | * Unique identifier for a learning objective record. This is the "To" or "Child" of the relation. | |
87 | */ | |
88 | 1208 |
![]() |
89 | 1208 | return relatedLoId; |
90 | } | |
91 | ||
92 | 1731 |
![]() |
93 | 1731 | this.relatedLoId = relatedLoId; |
94 | } | |
95 | ||
96 | /** | |
97 | * Date and time that this LO to LO 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. | |
98 | */ | |
99 | 556 |
![]() |
100 | 556 | return effectiveDate; |
101 | } | |
102 | ||
103 | 623 |
![]() |
104 | 623 | this.effectiveDate = effectiveDate; |
105 | } | |
106 | ||
107 | /** | |
108 | * Date and time that this LO to LO 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. | |
109 | */ | |
110 | 556 |
![]() |
111 | 556 | return expirationDate; |
112 | } | |
113 | ||
114 | 623 |
![]() |
115 | 623 | this.expirationDate = expirationDate; |
116 | } | |
117 | ||
118 | /** | |
119 | * List of key/value pairs, typically used for dynamic attributes. | |
120 | */ | |
121 | 556 |
![]() |
122 | 556 | if (attributes == null) { |
123 | 554 | attributes = new HashMap<String, String>(); |
124 | } | |
125 | 556 | return attributes; |
126 | } | |
127 | ||
128 | 623 |
![]() |
129 | 623 | this.attributes = attributes; |
130 | } | |
131 | ||
132 | /** | |
133 | * 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. | |
134 | */ | |
135 | 2 |
![]() |
136 | 2 | return metaInfo; |
137 | } | |
138 | ||
139 | 623 |
![]() |
140 | 623 | this.metaInfo = metaInfo; |
141 | } | |
142 | ||
143 | /** | |
144 | * Unique identifier for the LO to LO relation type. | |
145 | */ | |
146 | 1178 |
![]() |
147 | 1178 | return type; |
148 | } | |
149 | ||
150 | 1731 |
![]() |
151 | 1731 | this.type = type; |
152 | } | |
153 | ||
154 | /** | |
155 | * Identifier for the current status of a LO to LO 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. | |
156 | */ | |
157 | 1112 |
![]() |
158 | 1112 | return state; |
159 | } | |
160 | ||
161 | 1177 |
![]() |
162 | 1177 | this.state = state; |
163 | } | |
164 | ||
165 | /** | |
166 | * Unique identifier for a LO to LO 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. | |
167 | */ | |
168 | 576 |
![]() |
169 | 576 | return id; |
170 | } | |
171 | ||
172 | 623 |
![]() |
173 | 623 | this.id = id; |
174 | } | |
175 | } |
|