|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FormatInfo | Line # 47 | 20 | 0% | 18 | 0 | 100% |
1.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
(15) | |||
Result | |||
0.95
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse | 1 PASS | |
0.95
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse | 1 PASS | |
0.9
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions | 1 PASS | |
0.9
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate | 1 PASS | |
0.9
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning | 1 PASS | |
0.9
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange | 1 PASS | |
0.9
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion | 1 PASS | |
0.9
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber | 1 PASS | |
0.9
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions | 1 PASS | |
0.9
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse | 1 PASS | |
0.9
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion | 1 PASS | |
0.9
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing | 1 PASS | |
0.875
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes | 1 PASS | |
0.85
|
org.kuali.student.lum.course.service.impl.TestCourseInfoDictionary.testCourseInfoValidation org.kuali.student.lum.course.service.impl.TestCourseInfoDictionary.testCourseInfoValidation | 1 PASS | |
0.85
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse | 1 PASS | |
1 | /* | |
2 | * Copyright 2009 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 1.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl1.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | package org.kuali.student.lum.course.dto; | |
17 | ||
18 | import java.io.Serializable; | |
19 | import java.util.ArrayList; | |
20 | import java.util.HashMap; | |
21 | import java.util.List; | |
22 | import java.util.Map; | |
23 | ||
24 | import javax.xml.bind.annotation.XmlAccessType; | |
25 | import javax.xml.bind.annotation.XmlAccessorType; | |
26 | import javax.xml.bind.annotation.XmlAttribute; | |
27 | import javax.xml.bind.annotation.XmlElement; | |
28 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | |
29 | ||
30 | import org.kuali.student.common.dto.HasAttributes; | |
31 | import org.kuali.student.common.dto.HasTypeState; | |
32 | import org.kuali.student.common.dto.Idable; | |
33 | import org.kuali.student.common.dto.MetaInfo; | |
34 | import org.kuali.student.common.dto.TimeAmountInfo; | |
35 | import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; | |
36 | ||
37 | /** | |
38 | * Detailed information about a single course. | |
39 | * | |
40 | * @Author KSContractMojo | |
41 | * @Author Kamal | |
42 | * @Since Tue May 18 11:30:55 PDT 2010 | |
43 | * @See <a href="https://test.kuali.org/confluence/display/KULSTU/formatInfo+Structure">FormatInfo</> | |
44 | * | |
45 | */ | |
46 | @XmlAccessorType(XmlAccessType.FIELD) | |
47 | public class FormatInfo implements Serializable, Idable, HasTypeState, HasAttributes { | |
48 | ||
49 | private static final long serialVersionUID = 1L; | |
50 | ||
51 | @XmlElement | |
52 | private List<ActivityInfo> activities; | |
53 | ||
54 | @XmlElement | |
55 | private List<String> termsOffered; | |
56 | ||
57 | @XmlElement | |
58 | private TimeAmountInfo duration; | |
59 | ||
60 | @XmlElement | |
61 | @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) | |
62 | private Map<String, String> attributes; | |
63 | ||
64 | @XmlElement | |
65 | private MetaInfo metaInfo; | |
66 | ||
67 | @XmlAttribute | |
68 | private String type; | |
69 | ||
70 | @XmlAttribute | |
71 | private String state; | |
72 | ||
73 | @XmlAttribute | |
74 | private String id; | |
75 | ||
76 | ||
77 | /** | |
78 | * | |
79 | */ | |
80 | 147 | public List<ActivityInfo> getActivities() { |
81 | 147 | if (activities == null) { |
82 | 32 | activities = new ArrayList<ActivityInfo>(0); |
83 | } | |
84 | 147 | return activities; |
85 | } | |
86 | ||
87 | 33 | public void setActivities(List<ActivityInfo> activities) { |
88 | 33 | this.activities = activities; |
89 | } | |
90 | ||
91 | 66 | public List<String> getTermsOffered() { |
92 | 66 | return termsOffered; |
93 | } | |
94 | ||
95 | 109 | public void setTermsOffered(List<String> termsOffered) { |
96 | 109 | this.termsOffered = termsOffered; |
97 | } | |
98 | ||
99 | 65 | public TimeAmountInfo getDuration() { |
100 | 65 | return duration; |
101 | } | |
102 | ||
103 | 109 | public void setDuration(TimeAmountInfo duration) { |
104 | 109 | this.duration = duration; |
105 | } | |
106 | ||
107 | /** | |
108 | * List of key/value pairs, typically used for dynamic attributes. | |
109 | */ | |
110 | 67 | public Map<String, String> getAttributes() { |
111 | 67 | if (attributes == null) { |
112 | 2 | attributes = new HashMap<String, String>(); |
113 | } | |
114 | 67 | return attributes; |
115 | } | |
116 | ||
117 | 109 | public void setAttributes(Map<String, String> attributes) { |
118 | 109 | this.attributes = attributes; |
119 | } | |
120 | ||
121 | /** | |
122 | * 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. | |
123 | */ | |
124 | 64 | public MetaInfo getMetaInfo() { |
125 | 64 | return metaInfo; |
126 | } | |
127 | ||
128 | 76 | public void setMetaInfo(MetaInfo metaInfo) { |
129 | 76 | this.metaInfo = metaInfo; |
130 | } | |
131 | ||
132 | /** | |
133 | * Unique identifier for a learning unit type. Once set at create time, this field may not be updated. | |
134 | */ | |
135 | 13 | public String getType() { |
136 | 13 | return type; |
137 | } | |
138 | ||
139 | 111 | public void setType(String type) { |
140 | 111 | this.type = type; |
141 | } | |
142 | ||
143 | /** | |
144 | * The current status of the course. The values for this field are constrained to those in the luState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value. This field may not be updated through updating this structure and must instead be updated through a dedicated operation. | |
145 | */ | |
146 | 242 | public String getState() { |
147 | 242 | return state; |
148 | } | |
149 | ||
150 | 159 | public void setState(String state) { |
151 | 159 | this.state = state; |
152 | } | |
153 | ||
154 | /** | |
155 | * Unique identifier for a Canonical Learning Unit (CLU). This is optional, due to the identifier being set at the time of creation. Once the Format has been created, this should be seen as required. | |
156 | */ | |
157 | 152 | public String getId() { |
158 | 152 | return id; |
159 | } | |
160 | ||
161 | 124 | public void setId(String id) { |
162 | 124 | this.id = id; |
163 | } | |
164 | } |
|