01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/metaobj/tags/sakai_2-4-1/metaobj-util/tool-lib/src/java/org/sakaiproject/metaobj/security/mgt/ToolPermissionManager.java $
03: * $Id: ToolPermissionManager.java 14230 2006-09-05 18:02:51Z 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.security.mgt;
21:
22: import java.util.List;
23:
24: import org.sakaiproject.metaobj.security.model.PermissionsEdit;
25: import org.sakaiproject.site.api.ToolConfiguration;
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: *
33: * @param edit contains information about the permissions edit such as
34: * qualifier, etc.
35: * @return list of strings that name the functions in some reasonable order
36: */
37: public List getFunctions(PermissionsEdit edit);
38:
39: /**
40: * This method is called to see if the qualifier being edited
41: * has some parent qualifiers that imply permissions for this qualifier.
42: * One example might be a directory that has implied permissions of
43: * the parent directory. Since the permissions are implied, the
44: * set permissions screen will not allow these permissions to be turned off.
45: *
46: * @param edit contains information about the permissions edit such as
47: * qualifier, etc.
48: * @return list of Id objects that are parents of the passed in qualifier.
49: */
50: public List getReadOnlyQualifiers(PermissionsEdit edit);
51:
52: public void duplicatePermissions(ToolConfiguration fromTool,
53: ToolConfiguration toTool);
54:
55: }
|