01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/metaobj/tags/sakai_2-4-1/metaobj-api/api/src/java/org/sakaiproject/metaobj/shared/model/Agent.java $
03: * $Id: Agent.java 9592 2006-05-17 17:52:55Z chmaurer@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 2005, 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.metaobj.shared.model;
21:
22: import java.io.Serializable;
23: import java.security.Principal;
24: import java.util.List;
25:
26: /**
27: * Created by IntelliJ IDEA.
28: * User: John Ellis
29: * Date: Apr 8, 2004
30: * Time: 5:21:55 PM
31: * To change this template use File | Settings | File Templates.
32: */
33: public interface Agent extends Serializable, Principal {
34: public static final String AGENT_SESSION_KEY = "osp_agent";
35:
36: public static final String ROLE_MEMEBER = "ROLE_MEMBER";
37: public static final String ROLE_ADMIN = "ROLE_ADMIN";
38: public static final String ROLE_REVIEWER = "ROLE_REVIEWER";
39: public static final String ROLE_GUEST = "ROLE_GUEST";
40: public static final String ROLE_ANONYMOUS = "ROLE_ANONYMOUS";
41:
42: public Id getId();
43:
44: public Id getEid();
45:
46: public Artifact getProfile();
47:
48: public Object getProperty(String key);
49:
50: public String getDisplayName();
51:
52: public boolean isInRole(String role);
53:
54: public boolean isInitialized();
55:
56: public String getRole();
57:
58: public List getWorksiteRoles(String worksiteId);
59:
60: public List getWorksiteRoles();
61:
62: public boolean isRole();
63:
64: }
|