01: /**********************************************************************************
02: * $URL:https://source.sakaiproject.org/svn/osp/trunk/common/api/src/java/org/theospi/portfolio/security/mgt/ToolPermissionManager.java $
03: * $Id:ToolPermissionManager.java 9134 2006-05-08 20:28:42Z chmaurer@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 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.theospi.portfolio.security.mgt;
21:
22: import java.util.List;
23:
24: import org.sakaiproject.site.api.ToolConfiguration;
25: import org.theospi.portfolio.security.model.PermissionsEdit;
26:
27: public interface ToolPermissionManager {
28:
29: /**
30: * Get a list of functions that this tool is interested in setting.
31: * This list should be in some reasonable order (read to delete, etc).
32: * @param edit contains information about the permissions edit such as
33: * qualifier, etc.
34: * @return list of strings that name the functions in some reasonable order
35: */
36: public List getFunctions(PermissionsEdit edit);
37:
38: /**
39: * This method is called to see if the qualifier being edited
40: * has some parent qualifiers that imply permissions for this qualifier.
41: * One example might be a directory that has implied permissions of
42: * the parent directory. Since the permissions are implied, the
43: * set permissions screen will not allow these permissions to be turned off.
44: * @param edit contains information about the permissions edit such as
45: * qualifier, etc.
46: * @return list of Id objects that are parents of the passed in qualifier.
47: */
48: public List getReadOnlyQualifiers(PermissionsEdit edit);
49:
50: public void duplicatePermissions(ToolConfiguration fromTool,
51: ToolConfiguration toTool);
52:
53: }
|