01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/msgcntr/trunk/messageforums-api/src/java/org/sakaiproject/api/app/messageforums/DefaultPermissionsManager.java $
03: * $Id: DefaultPermissionsManager.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: /**
23: * @author <a href="mailto:rshastri@iupui.edu">Rashmi Shastri</a>
24: */
25: public interface DefaultPermissionsManager {
26: public static final String FUNCTION_NEW_FORUM = "messagecenter.newForum";
27: public static final String FUNCTION_NEW_TOPIC = "messagecenter.newTopic";
28: public static final String FUNCTION_NEW_RESPONSE = "messagecenter.newResponse";
29: public static final String FUNCTION_NEW_RESPONSE_TO_RESPONSE = "messagecenter.newResponseToResponse";
30: public static final String FUNCTION_MOVE_POSTINGS = "messagecenter.movePostings";
31: public static final String FUNCTION_CHANGE_SETTINGS = "messagecenter.changeSettings";
32: public static final String FUNCTION_POST_TO_GRADEBOOK = "messagecenter.postToGradebook";
33:
34: public static final String FUNCTION_READ = "messagecenter.read";
35: public static final String FUNCTION_REVISE_ANY = "messagecenter.reviseAny";
36: public static final String FUNCTION_REVISE_OWN = "messagecenter.reviseOwn";
37: public static final String FUNCTION_DELETE_ANY = "messagecenter.deleteAny";
38: public static final String FUNCTION_DELETE_OWN = "messagecenter.deleteOwn";
39: public static final String FUNCTION_MARK_AS_READ = "messagecenter.markAsRead";
40:
41: // control permissions
42: public boolean isNewForum(String role);
43:
44: public boolean isNewTopic(String role);
45:
46: public boolean isNewResponse(String role);
47:
48: public boolean isResponseToResponse(String role);
49:
50: public boolean isMovePostings(String role);
51:
52: public boolean isChangeSettings(String role);
53:
54: public boolean isPostToGradebook(String role);
55:
56: // message permissions
57: public boolean isRead(String role);
58:
59: public boolean isReviseAny(String role);
60:
61: public boolean isReviseOwn(String role);
62:
63: public boolean isDeleteAny(String role);
64:
65: public boolean isDeleteOwn(String role);
66:
67: public boolean isMarkAsRead(String role);
68:
69: }
|