1 package org.nemesis.forum.webapp.admin.bean; 2 3 import java.util.ArrayList ; 4 import java.util.List ; 5 6 12 public class ForumPermissionsBean { 13 14 15 16 int id; 17 String name; 18 String description; 19 20 List usersWithReadPerm = new ArrayList (); 21 List usersWithThreadPerm = new ArrayList (); 22 List usersWithMessagePerm = new ArrayList (); 23 List usersWithModeratorPerm = new ArrayList (); 24 List usersWithAdminPerm = new ArrayList (); 25 26 List groupsWithReadPerm = new ArrayList (); 27 List groupsWithThreadPerm = new ArrayList (); 28 List groupsWithMessagePerm = new ArrayList (); 29 List groupsWithModeratorPerm = new ArrayList (); 30 List groupsWithAdminPerm = new ArrayList (); 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 112 public String getDescription() { 113 return description; 114 } 115 116 119 public int getId() { 120 return id; 121 } 122 123 126 public String getName() { 127 return name; 128 } 129 130 134 public void setDescription(String description) { 135 this.description = description; 136 } 137 138 142 public void setId(int id) { 143 this.id = id; 144 } 145 146 150 public void setName(String name) { 151 this.name = name; 152 } 153 154 157 public List getGroupsWithMessagePerm() { 158 return groupsWithMessagePerm; 159 } 160 161 164 public List getGroupsWithModeratorPerm() { 165 return groupsWithModeratorPerm; 166 } 167 168 171 public List getGroupsWithReadPerm() { 172 return groupsWithReadPerm; 173 } 174 175 178 public List getGroupsWithThreadPerm() { 179 return groupsWithThreadPerm; 180 } 181 182 185 public List getUsersWithMessagePerm() { 186 return usersWithMessagePerm; 187 } 188 189 192 public List getUsersWithModeratorPerm() { 193 return usersWithModeratorPerm; 194 } 195 196 199 public List getUsersWithReadPerm() { 200 return usersWithReadPerm; 201 } 202 203 206 public List getUsersWithThreadPerm() { 207 return usersWithThreadPerm; 208 } 209 210 214 public void setGroupsWithMessagePerm(List groupsWithMessagePerm) { 215 this.groupsWithMessagePerm = groupsWithMessagePerm; 216 } 217 218 222 public void setGroupsWithModeratorPerm(List groupsWithModeratorPerm) { 223 this.groupsWithModeratorPerm = groupsWithModeratorPerm; 224 } 225 226 230 public void setGroupsWithReadPerm(List groupsWithReadPerm) { 231 this.groupsWithReadPerm = groupsWithReadPerm; 232 } 233 234 238 public void setGroupsWithThreadPerm(List groupsWithThreadPerm) { 239 this.groupsWithThreadPerm = groupsWithThreadPerm; 240 } 241 242 246 public void setUsersWithMessagePerm(List usersWithMessagePerm) { 247 this.usersWithMessagePerm = usersWithMessagePerm; 248 } 249 250 254 public void setUsersWithModeratorPerm(List usersWithModeratorPerm) { 255 this.usersWithModeratorPerm = usersWithModeratorPerm; 256 } 257 258 262 public void setUsersWithReadPerm(List usersWithReadPerm) { 263 this.usersWithReadPerm = usersWithReadPerm; 264 } 265 266 270 public void setUsersWithThreadPerm(List usersWithThreadPerm) { 271 this.usersWithThreadPerm = usersWithThreadPerm; 272 } 273 274 277 public List getGroupsWithAdminPerm() { 278 return groupsWithAdminPerm; 279 } 280 281 284 public List getUsersWithAdminPerm() { 285 return usersWithAdminPerm; 286 } 287 288 291 public void setGroupsWithAdminPerm(List list) { 292 groupsWithAdminPerm = list; 293 } 294 295 298 public void setUsersWithAdminPerm(List list) { 299 usersWithAdminPerm = list; 300 } 301 302 } 303 | Popular Tags |