01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/course-management/tags/sakai_2-4-1/cm-impl/hibernate-impl/hibernate/src/java/org/sakaiproject/coursemanagement/impl/CourseSetCmImpl.java $
03: * $Id: CourseSetCmImpl.java 20104 2007-01-04 19:24:04Z jholtzman@berkeley.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.coursemanagement.impl;
21:
22: import java.io.Serializable;
23: import java.util.Set;
24:
25: import org.sakaiproject.coursemanagement.api.CanonicalCourse;
26: import org.sakaiproject.coursemanagement.api.CourseOffering;
27: import org.sakaiproject.coursemanagement.api.CourseSet;
28:
29: public class CourseSetCmImpl extends AbstractMembershipContainerCmImpl
30: implements CourseSet, Serializable {
31:
32: private static final long serialVersionUID = 1L;
33:
34: private CourseSet parent;
35: private String category;
36: private Set<CourseOffering> courseOfferings;
37: private Set<CanonicalCourse> canonicalCourses;
38:
39: public CourseSetCmImpl() {
40: }
41:
42: public CourseSetCmImpl(String eid, String title,
43: String description, String category, CourseSet parent) {
44: this .eid = eid;
45: this .title = title;
46: this .description = description;
47: this .category = category;
48: this .parent = parent;
49: }
50:
51: public CourseSet getParent() {
52: return parent;
53: }
54:
55: public void setParent(CourseSet parent) {
56: this .parent = parent;
57: }
58:
59: public Set<CanonicalCourse> getCanonicalCourses() {
60: return canonicalCourses;
61: }
62:
63: public void setCanonicalCourses(
64: Set<CanonicalCourse> canonicalCourses) {
65: this .canonicalCourses = canonicalCourses;
66: }
67:
68: public Set<CourseOffering> getCourseOfferings() {
69: return courseOfferings;
70: }
71:
72: public void setCourseOfferings(Set<CourseOffering> courseOfferings) {
73: this .courseOfferings = courseOfferings;
74: }
75:
76: public String getCategory() {
77: return category;
78: }
79:
80: public void setCategory(String category) {
81: this.category = category;
82: }
83: }
|