KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nemesis > forum > webapp > admin > bean > ForumPermissionsBean


1 package org.nemesis.forum.webapp.admin.bean;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 /**
7  * @author dlaurent
8  *
9  * 21 févr. 2003
10  * GroupBean.java
11  */

12 public class ForumPermissionsBean {
13     
14     
15     
16     int id;
17     String JavaDoc name;
18     String JavaDoc description;
19
20     List JavaDoc usersWithReadPerm = new ArrayList JavaDoc();
21     List JavaDoc usersWithThreadPerm = new ArrayList JavaDoc();
22     List JavaDoc usersWithMessagePerm = new ArrayList JavaDoc();
23     List JavaDoc usersWithModeratorPerm = new ArrayList JavaDoc();
24     List JavaDoc usersWithAdminPerm = new ArrayList JavaDoc();
25
26     List JavaDoc groupsWithReadPerm = new ArrayList JavaDoc();
27     List JavaDoc groupsWithThreadPerm = new ArrayList JavaDoc();
28     List JavaDoc groupsWithMessagePerm = new ArrayList JavaDoc();
29     List JavaDoc groupsWithModeratorPerm = new ArrayList JavaDoc();
30     List JavaDoc groupsWithAdminPerm = new ArrayList JavaDoc();
31
32     public void addUsersWithReadPerm(UserBean user) {
33         usersWithReadPerm.add(user);
34     }
35
36     public UserBean getUsersWithReadPerm(int index) {
37         return (UserBean) usersWithReadPerm.get(index);
38     }
39
40     public void addUsersWithThreadPerm(UserBean user) {
41         usersWithThreadPerm.add(user);
42     }
43
44     public UserBean getUsersWithThreadPerm(int index) {
45         return (UserBean) usersWithThreadPerm.get(index);
46     }
47     public void addUsersWithMessagePerm(UserBean user) {
48         usersWithMessagePerm.add(user);
49     }
50
51     public UserBean getUsersWithMessagePerm(int index) {
52         return (UserBean) usersWithMessagePerm.get(index);
53     }
54
55     public UserBean getUsersWithModeratorPerm(int index) {
56         return (UserBean) usersWithModeratorPerm.get(index);
57     }
58     public void addUsersWithModeratorPerm(UserBean user) {
59         usersWithModeratorPerm.add(user);
60     }
61     
62     public UserBean getUsersWithAdminPerm(int index) {
63         return (UserBean) usersWithAdminPerm.get(index);
64     }
65     public void addUsersWithAdminPerm(UserBean user) {
66         usersWithAdminPerm.add(user);
67     }
68
69
70
71     public void addGroupsWithReadPerm(GroupBean group) {
72         groupsWithReadPerm.add(group);
73     }
74
75     public GroupBean getGroupsWithReadPerm(int index) {
76         return (GroupBean) groupsWithReadPerm.get(index);
77     }
78
79     public void addGroupsWithThreadPerm(GroupBean group) {
80         groupsWithThreadPerm.add(group);
81     }
82
83     public GroupBean getGroupsWithThreadPerm(int index) {
84         return (GroupBean) groupsWithThreadPerm.get(index);
85     }
86     public void addGroupsWithMessagePerm(GroupBean group) {
87         groupsWithMessagePerm.add(group);
88     }
89
90     public GroupBean getGroupsWithMessagePerm(int index) {
91         return (GroupBean) groupsWithMessagePerm.get(index);
92     }
93     
94
95     public GroupBean getGroupsWithModeratorPerm(int index) {
96         return (GroupBean) groupsWithModeratorPerm.get(index);
97     }
98     public void addGroupsWithModeratorPerm(GroupBean group) {
99         groupsWithModeratorPerm.add(group);
100     }
101     
102     public GroupBean getGroupsWithAdminPerm(int index) {
103         return (GroupBean) groupsWithAdminPerm.get(index);
104     }
105     public void addGroupsWithAdminPerm(GroupBean group) {
106         groupsWithAdminPerm.add(group);
107     }
108
109     /**
110      * @return String
111      */

112     public String JavaDoc getDescription() {
113         return description;
114     }
115
116     /**
117      * @return int
118      */

119     public int getId() {
120         return id;
121     }
122
123     /**
124      * @return String
125      */

126     public String JavaDoc getName() {
127         return name;
128     }
129
130     /**
131      * Sets the description.
132      * @param description The description to set
133      */

134     public void setDescription(String JavaDoc description) {
135         this.description = description;
136     }
137
138     /**
139      * Sets the id.
140      * @param id The id to set
141      */

142     public void setId(int id) {
143         this.id = id;
144     }
145
146     /**
147      * Sets the name.
148      * @param name The name to set
149      */

150     public void setName(String JavaDoc name) {
151         this.name = name;
152     }
153
154     /**
155      * @return List
156      */

157     public List JavaDoc getGroupsWithMessagePerm() {
158         return groupsWithMessagePerm;
159     }
160
161     /**
162      * @return List
163      */

164     public List JavaDoc getGroupsWithModeratorPerm() {
165         return groupsWithModeratorPerm;
166     }
167
168     /**
169      * @return List
170      */

171     public List JavaDoc getGroupsWithReadPerm() {
172         return groupsWithReadPerm;
173     }
174
175     /**
176      * @return List
177      */

178     public List JavaDoc getGroupsWithThreadPerm() {
179         return groupsWithThreadPerm;
180     }
181
182     /**
183      * @return List
184      */

185     public List JavaDoc getUsersWithMessagePerm() {
186         return usersWithMessagePerm;
187     }
188
189     /**
190      * @return List
191      */

192     public List JavaDoc getUsersWithModeratorPerm() {
193         return usersWithModeratorPerm;
194     }
195
196     /**
197      * @return List
198      */

199     public List JavaDoc getUsersWithReadPerm() {
200         return usersWithReadPerm;
201     }
202
203     /**
204      * @return List
205      */

206     public List JavaDoc getUsersWithThreadPerm() {
207         return usersWithThreadPerm;
208     }
209
210     /**
211      * Sets the groupsWithMessagePerm.
212      * @param groupsWithMessagePerm The groupsWithMessagePerm to set
213      */

214     public void setGroupsWithMessagePerm(List JavaDoc groupsWithMessagePerm) {
215         this.groupsWithMessagePerm = groupsWithMessagePerm;
216     }
217
218     /**
219      * Sets the groupsWithModeratorPerm.
220      * @param groupsWithModeratorPerm The groupsWithModeratorPerm to set
221      */

222     public void setGroupsWithModeratorPerm(List JavaDoc groupsWithModeratorPerm) {
223         this.groupsWithModeratorPerm = groupsWithModeratorPerm;
224     }
225
226     /**
227      * Sets the groupsWithReadPerm.
228      * @param groupsWithReadPerm The groupsWithReadPerm to set
229      */

230     public void setGroupsWithReadPerm(List JavaDoc groupsWithReadPerm) {
231         this.groupsWithReadPerm = groupsWithReadPerm;
232     }
233
234     /**
235      * Sets the groupsWithThreadPerm.
236      * @param groupsWithThreadPerm The groupsWithThreadPerm to set
237      */

238     public void setGroupsWithThreadPerm(List JavaDoc groupsWithThreadPerm) {
239         this.groupsWithThreadPerm = groupsWithThreadPerm;
240     }
241
242     /**
243      * Sets the usersWithMessagePerm.
244      * @param usersWithMessagePerm The usersWithMessagePerm to set
245      */

246     public void setUsersWithMessagePerm(List JavaDoc usersWithMessagePerm) {
247         this.usersWithMessagePerm = usersWithMessagePerm;
248     }
249
250     /**
251      * Sets the usersWithModeratorPerm.
252      * @param usersWithModeratorPerm The usersWithModeratorPerm to set
253      */

254     public void setUsersWithModeratorPerm(List JavaDoc usersWithModeratorPerm) {
255         this.usersWithModeratorPerm = usersWithModeratorPerm;
256     }
257
258     /**
259      * Sets the usersWithReadPerm.
260      * @param usersWithReadPerm The usersWithReadPerm to set
261      */

262     public void setUsersWithReadPerm(List JavaDoc usersWithReadPerm) {
263         this.usersWithReadPerm = usersWithReadPerm;
264     }
265
266     /**
267      * Sets the usersWithThreadPerm.
268      * @param usersWithThreadPerm The usersWithThreadPerm to set
269      */

270     public void setUsersWithThreadPerm(List JavaDoc usersWithThreadPerm) {
271         this.usersWithThreadPerm = usersWithThreadPerm;
272     }
273
274     /**
275      * @return
276      */

277     public List JavaDoc getGroupsWithAdminPerm() {
278         return groupsWithAdminPerm;
279     }
280
281     /**
282      * @return
283      */

284     public List JavaDoc getUsersWithAdminPerm() {
285         return usersWithAdminPerm;
286     }
287
288     /**
289      * @param list
290      */

291     public void setGroupsWithAdminPerm(List JavaDoc list) {
292         groupsWithAdminPerm = list;
293     }
294
295     /**
296      * @param list
297      */

298     public void setUsersWithAdminPerm(List JavaDoc list) {
299         usersWithAdminPerm = list;
300     }
301
302 }
303
Popular Tags