01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/msgcntr/trunk/messageforums-api/src/java/org/sakaiproject/api/app/messageforums/UserPermissionManager.java $
03: * $Id: UserPermissionManager.java 9227 2006-05-15 15:02:42Z cwen@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2003, 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.api.app.messageforums;
21:
22: public interface UserPermissionManager {
23:
24: public static final String BEAN_NAME = "org.sakaiproject.api.app.messageforums.UserPermissionManager";
25:
26: public boolean canRead(Topic topic, String typeId);
27:
28: public boolean canReviseAny(Topic topic, String typeId);
29:
30: public boolean canReviseOwn(Topic topic, String typeId);
31:
32: public boolean canDeleteAny(Topic topic, String typeId);
33:
34: public boolean canDeleteOwn(Topic topic, String typeId);
35:
36: public boolean canMarkAsRead(Topic topic, String typeId);
37:
38: public boolean canRead(BaseForum forum, String typeId);
39:
40: public boolean canReviseAny(BaseForum forum, String typeId);
41:
42: public boolean canReviseOwn(BaseForum forum, String typeId);
43:
44: public boolean canDeleteAny(BaseForum forum, String typeId);
45:
46: public boolean canDeleteOwn(BaseForum forum, String typeId);
47:
48: public boolean canMarkAsRead(BaseForum forum, String typeId);
49:
50: public boolean canRead(Area area, String typeId);
51:
52: public boolean canReviseAny(Area area, String typeId);
53:
54: public boolean canReviseOwn(Area area, String typeId);
55:
56: public boolean canDeleteAny(Area area, String typeId);
57:
58: public boolean canDeleteOwn(Area area, String typeId);
59:
60: public boolean canMarkAsRead(Area area, String typeId);
61:
62: public boolean canNewResponse(Topic topic, String typeId);
63:
64: public boolean canResponseToResponse(Topic topic, String typeId);
65:
66: public boolean canMovePostings(Topic topic, String typeId);
67:
68: public boolean canChangeSettings(Topic topic, String typeId);
69:
70: public boolean canPostToGradebook(Topic topic, String typeId);
71:
72: public boolean canNewTopic(BaseForum forum, String typeId);
73:
74: public boolean canNewResponse(BaseForum forum, String typeId);
75:
76: public boolean canResponseToResponse(BaseForum forum, String typeId);
77:
78: public boolean canMovePostings(BaseForum forum, String typeId);
79:
80: public boolean canChangeSettings(BaseForum forum, String typeId);
81:
82: public boolean canPostToGradebook(BaseForum forum, String typeId);
83:
84: public boolean canNewForum(Area area, String typeId);
85:
86: public boolean canNewTopic(Area area, String typeId);
87:
88: public boolean canNewResponse(Area area, String typeId);
89:
90: public boolean canResponseToResponse(Area area, String typeId);
91:
92: public boolean canMovePostings(Area area, String typeId);
93:
94: public boolean canChangeSettings(Area area, String typeId);
95:
96: public boolean canPostToGradebook(Area area, String typeId);
97:
98: }
|