|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ActivityInfo | Line # 47 | 22 | 0% | 20 | 2 | 95.5% |
0.95454544
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (15) | |||
| Result | |||
|
0.8636364
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse
|
1 PASS | |
|
0.8636364
|
org.kuali.student.lum.course.service.impl.TestCourseInfoDictionary.testCourseInfoValidation
org.kuali.student.lum.course.service.impl.TestCourseInfoDictionary.testCourseInfoValidation
|
1 PASS | |
|
0.8181818
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate
|
1 PASS | |
|
0.8181818
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber
|
1 PASS | |
|
0.8181818
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions
|
1 PASS | |
|
0.8181818
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse
|
1 PASS | |
|
0.8181818
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse
|
1 PASS | |
|
0.8181818
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes
|
1 PASS | |
|
0.8181818
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing
|
1 PASS | |
|
0.8181818
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion
|
1 PASS | |
|
0.8181818
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange
|
1 PASS | |
|
0.8181818
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse
|
1 PASS | |
|
0.8181818
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions
|
1 PASS | |
|
0.8181818
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion
|
1 PASS | |
|
0.8181818
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning
|
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.core.dto.AmountInfo; | |
| 31 | import org.kuali.student.core.dto.HasAttributes; | |
| 32 | import org.kuali.student.core.dto.Idable; | |
| 33 | import org.kuali.student.core.dto.MetaInfo; | |
| 34 | import org.kuali.student.core.dto.TimeAmountInfo; | |
| 35 | import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; | |
| 36 | ||
| 37 | /** | |
| 38 | * Detailed information about a single course activity. | |
| 39 | * | |
| 40 | * @Author KSContractMojo | |
| 41 | * @Author Kamal | |
| 42 | * @Since Tue May 18 11:30:56 PDT 2010 | |
| 43 | * @See <a href="https://test.kuali.org/confluence/display/KULSTU/activityInfo+Structure">ActivityInfo</> | |
| 44 | * | |
| 45 | */ | |
| 46 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 47 | public class ActivityInfo implements Serializable, Idable, HasAttributes { | |
| 48 | ||
| 49 | private static final long serialVersionUID = 1L; | |
| 50 | ||
| 51 | @XmlElement | |
| 52 | private TimeAmountInfo duration; | |
| 53 | ||
| 54 | @XmlElement | |
| 55 | private List<String> unitsContentOwner; | |
| 56 | ||
| 57 | @XmlElement | |
| 58 | private int defaultEnrollmentEstimate; | |
| 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 activityType; | |
| 69 | ||
| 70 | @XmlAttribute | |
| 71 | private String state; | |
| 72 | ||
| 73 | @XmlAttribute | |
| 74 | private String id; | |
| 75 | ||
| 76 | @XmlElement | |
| 77 | private AmountInfo contactHours; | |
| 78 | ||
| 79 | /** | |
| 80 | * The standard duration of the Course. | |
| 81 | */ | |
| 82 | 122 |
public TimeAmountInfo getDuration() { |
| 83 | 122 | return duration; |
| 84 | } | |
| 85 | ||
| 86 | 210 |
public void setDuration(TimeAmountInfo duration) { |
| 87 | 210 | this.duration = duration; |
| 88 | } | |
| 89 | ||
| 90 | /** | |
| 91 | * The organizations that represents the Subject area of the course. | |
| 92 | */ | |
| 93 | 24 |
public List<String> getUnitsContentOwner() { |
| 94 | 24 | if (unitsContentOwner == null) { |
| 95 | 0 | unitsContentOwner = new ArrayList<String>(0); |
| 96 | } | |
| 97 | 24 | return unitsContentOwner; |
| 98 | } | |
| 99 | ||
| 100 | 64 |
public void setUnitsContentOwner(List<String> unitsContentOwner) { |
| 101 | 64 | this.unitsContentOwner = unitsContentOwner; |
| 102 | } | |
| 103 | ||
| 104 | /** | |
| 105 | * Default enrollment estimate for this CLU. | |
| 106 | */ | |
| 107 | 122 |
public int getDefaultEnrollmentEstimate() { |
| 108 | 122 | return defaultEnrollmentEstimate; |
| 109 | } | |
| 110 | ||
| 111 | 210 |
public void setDefaultEnrollmentEstimate(int defaultEnrollmentEstimate) { |
| 112 | 210 | this.defaultEnrollmentEstimate = defaultEnrollmentEstimate; |
| 113 | } | |
| 114 | ||
| 115 | /** | |
| 116 | * List of key/value pairs, typically used for dynamic attributes. | |
| 117 | */ | |
| 118 | 123 |
public Map<String, String> getAttributes() { |
| 119 | 123 | if (attributes == null) { |
| 120 | 2 | attributes = new HashMap<String, String>(); |
| 121 | } | |
| 122 | 123 | return attributes; |
| 123 | } | |
| 124 | ||
| 125 | 211 |
public void setAttributes(Map<String, String> attributes) { |
| 126 | 211 | this.attributes = attributes; |
| 127 | } | |
| 128 | ||
| 129 | /** | |
| 130 | * 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. | |
| 131 | */ | |
| 132 | 122 |
public MetaInfo getMetaInfo() { |
| 133 | 122 | return metaInfo; |
| 134 | } | |
| 135 | ||
| 136 | 146 |
public void setMetaInfo(MetaInfo metaInfo) { |
| 137 | 146 | this.metaInfo = metaInfo; |
| 138 | } | |
| 139 | ||
| 140 | /** | |
| 141 | * Unique identifier for a learning unit type. Once set at create time, this field may not be updated. | |
| 142 | */ | |
| 143 | 124 |
public String getActivityType() { |
| 144 | 124 | return activityType; |
| 145 | } | |
| 146 | ||
| 147 | 213 |
public void setActivityType(String activityType) { |
| 148 | 213 | this.activityType = activityType; |
| 149 | } | |
| 150 | ||
| 151 | /** | |
| 152 | * 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. | |
| 153 | */ | |
| 154 | 122 |
public String getState() { |
| 155 | 122 | return state; |
| 156 | } | |
| 157 | ||
| 158 | 212 |
public void setState(String state) { |
| 159 | 212 | this.state = state; |
| 160 | } | |
| 161 | ||
| 162 | /** | |
| 163 | * Unique identifier for an Activity. This is optional, due to the identifier being set at the time of creation. Once the Course has been created, this should be seen as required. | |
| 164 | */ | |
| 165 | 167 |
public String getId() { |
| 166 | 167 | return id; |
| 167 | } | |
| 168 | ||
| 169 | 242 |
public void setId(String id) { |
| 170 | 242 | this.id = id; |
| 171 | } | |
| 172 | ||
| 173 | 210 |
public void setContactHours(AmountInfo contactHours) { |
| 174 | 210 | this.contactHours = contactHours; |
| 175 | } | |
| 176 | /** | |
| 177 | * ContactHours for an Activity. | |
| 178 | */ | |
| 179 | 122 |
public AmountInfo getContactHours() { |
| 180 | 122 | return contactHours; |
| 181 | } | |
| 182 | } | |
|
||||||||||||