01: /**********************************************************************************
02: * $URL: $
03: * $Id: $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2006,2007 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.poll.tool.params;
21:
22: public class PollRolePerms {
23:
24: public String rolename;
25: public Boolean vote;
26: public Boolean add;
27: public Boolean deleteAny;
28: public Boolean deleteOwn;
29: public Boolean editAny;
30: public Boolean editOwn;
31:
32: public PollRolePerms(String rolename) {
33: this .rolename = rolename;
34: }
35:
36: public PollRolePerms(String rolename, Boolean vote, Boolean add,
37: Boolean deleteOwn, Boolean deleteAny, Boolean editOwn,
38: Boolean editAny) {
39: this .rolename = rolename;
40: this .vote = vote;
41: this .add = add;
42: this .deleteAny = deleteAny;
43: this .deleteOwn = deleteOwn;
44: this .editAny = editAny;
45: this .editOwn = editOwn;
46:
47: }
48:
49: public PollRolePerms(String rolename, boolean vote, boolean add,
50: boolean deleteOwn, boolean deleteAny, boolean editOwn,
51: boolean editAny) {
52: this .rolename = rolename;
53: this .vote = new Boolean(vote);
54: this .add = new Boolean(add);
55: this .deleteAny = new Boolean(deleteAny);
56: this .deleteOwn = new Boolean(deleteOwn);
57: this .editAny = new Boolean(editAny);
58: this .editOwn = new Boolean(editOwn);
59:
60: }
61:
62: }
|