01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/course-management/tags/sakai_2-4-1/cm-api/api/src/java/org/sakaiproject/coursemanagement/api/Membership.java $
03: * $Id: Membership.java 17300 2006-10-19 21:26:47Z 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.api;
21:
22: /**
23: * A user-role pair associated with something.
24: *
25: * @author <a href="mailto:jholtzman@berkeley.edu">Josh Holtzman</a>
26: */
27: public interface Membership {
28: /**
29: * The user's enterprise id
30: * @return
31: */
32: public String getUserId();
33:
34: /**
35: * The user's role
36: * @return
37: */
38: public String getRole();
39:
40: /**
41: * What authority defines this object?
42: * @return
43: */
44: public String getAuthority();
45:
46: /**
47: * Gets the status of this Membership. This might be active, inactive for example.
48: * @return
49: */
50: public String getStatus();
51:
52: public void setStatus(String status);
53: }
|