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/MembershipCmImpl.java $
03: * $Id: MembershipCmImpl.java 17306 2006-10-20 00:06:35Z daisyf@stanford.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:
24: import org.sakaiproject.coursemanagement.api.Membership;
25:
26: public class MembershipCmImpl extends
27: AbstractPersistentCourseManagementObjectCmImpl implements
28: Membership, Serializable {
29:
30: private static final long serialVersionUID = 1L;
31:
32: private String userId;
33: private String role;
34: private AbstractMembershipContainerCmImpl memberContainer;
35: private String status;
36:
37: public MembershipCmImpl() {
38: }
39:
40: public MembershipCmImpl(String userId, String role,
41: AbstractMembershipContainerCmImpl memberContainer,
42: String status) {
43: this .userId = userId;
44: this .role = role;
45: this .memberContainer = memberContainer;
46: this .status = status;
47: }
48:
49: public String getRole() {
50: return role;
51: }
52:
53: public void setRole(String role) {
54: this .role = role;
55: }
56:
57: public String getUserId() {
58: return userId;
59: }
60:
61: public void setUserId(String userId) {
62: this .userId = userId;
63: }
64:
65: public AbstractMembershipContainerCmImpl getMemberContainer() {
66: return memberContainer;
67: }
68:
69: public void setMemberContainer(
70: AbstractMembershipContainerCmImpl memberContainer) {
71: this .memberContainer = memberContainer;
72: }
73:
74: public String getStatus() {
75: return status;
76: }
77:
78: public void setStatus(String status) {
79: this.status = status;
80: }
81: }
|