Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 41 package com.mvnforum.auth; 42 43 public interface MVNForumPermission { 44 45 49 50 51 54 58 public static final int PERMISSION_EMPTY = 0; 59 60 63 public static final int PERMISSION_AUTHENTICATED = 1; 64 65 69 public static final int PERMISSION_NO_PERMISSIONS = 2; 70 71 75 public static final int PERMISSION_ACTIVATED = 3; 76 77 78 83 87 public static final int PERMISSION_SYSTEM_ADMIN = 100; 88 89 91 public static final int PERMISSION_GROUP_ADMIN = 101; 92 93 95 public static final int PERMISSION_GROUP_MODERATOR = 102; 96 97 99 public static final int PERMISSION_USER_ADMIN = 103; 100 101 103 public static final int PERMISSION_USER_MODERATOR = 104; 104 105 107 public static final int PERMISSION_FORUM_ADMIN = 105; 108 109 111 public static final int PERMISSION_FORUM_MODERATOR = 106; 112 113 116 public static final int PERMISSION_CATEGORY_ADMIN = 107; 117 118 121 public static final int PERMISSION_CATEGORY_MODERATOR = 108; 122 123 127 public static final int PERMISSION_LIMITED_USER = 109; 128 129 134 public static final int PERMISSION_NORMAL_USER = 110; 135 136 142 public static final int PERMISSION_POWER_USER = 111; 143 144 145 150 151 155 158 161 public static final int PERMISSION_LOGIN = 1000; 162 163 167 169 172 public static final int PERMISSION_ADD_FORUM = 1002; 173 174 177 public static final int PERMISSION_ADD_CATEGORY = 1003; 178 179 182 public static final int PERMISSION_EDIT_CATEGORY = 1004; 183 184 187 public static final int PERMISSION_DELETE_CATEGORY = 1005; 188 189 192 public static final int PERMISSION_SEND_MAIL = 1006; 193 194 197 public static final int PERMISSION_BYPASS_PRIVATE_FORUM = 1007; 198 199 202 205 public static final int PERMISSION_USE_MESSAGE = 1100; 206 207 210 public static final int PERMISSION_USE_AVATAR = 1101; 211 212 215 public static final int PERMISSION_ADD_MESSAGE_ATTACHMENT = 1102; 216 217 218 222 226 229 public static final int PERMISSION_EDIT_FORUM = 2000; 230 231 234 public static final int PERMISSION_DELETE_FORUM = 2001; 235 236 239 public static final int PERMISSION_ASSIGN_TO_FORUM = 2002; 240 241 244 247 public static final int PERMISSION_READ_POST = 2100; 248 249 252 public static final int PERMISSION_ADD_THREAD = 2101; 253 254 257 public static final int PERMISSION_ADD_POST = 2102; 258 259 263 public static final int PERMISSION_EDIT_POST = 2103; 264 265 268 public static final int PERMISSION_DELETE_POST = 2104; 269 270 273 public static final int PERMISSION_ADD_POLL = 2105; 274 275 278 public static final int PERMISSION_EDIT_POLL = 2106; 279 280 283 public static final int PERMISSION_DELETE_POLL = 2107; 284 285 288 public static final int PERMISSION_ADD_ATTACHMENT = 2108; 289 290 293 public static final int PERMISSION_GET_ATTACHMENT = 2109; 294 295 300 public static final int PERMISSION_MODERATE_THREAD = 2110; 301 302 305 public static final int PERMISSION_EDIT_OWN_POST = 2111; 306 307 308 309 314 318 319 322 public static final int PERMISSION_CMS_ADD_CHANNEL = 10000; 323 324 327 public static final int PERMISSION_CMS_EDIT_CHANNEL = 10001; 328 329 332 public static final int PERMISSION_CMS_DELETE_CHANNEL = 10002; 333 334 337 340 public static final int PERMISSION_CMS_WRITE_CONTENT = 10100; 341 342 345 public static final int PERMISSION_CMS_EDIT_CONTENT = 10101; 346 347 350 public static final int PERMISSION_CMS_APPROVE_CONTENT = 10102; 351 352 355 public static final int PERMISSION_CMS_PUBLISH_CONTENT = 10103; 356 357 360 public static final int PERMISSION_CMS_DELETE_CONTENT = 10104; 361 362 365 public static final int PERMISSION_CMS_UPLOAD_FILE = 10105; 366 367 368 369 372 373 public boolean isAuthenticated(); 374 public void ensureIsAuthenticated() throws AuthenticationException; 375 376 public boolean isActivated(); 377 public void ensureIsActivated() throws AuthenticationException; 378 379 382 383 public boolean canLogin(); 384 public void ensureCanLogin() throws AuthenticationException; 385 386 public boolean canAdminSystem(); 387 public void ensureCanAdminSystem() throws AuthenticationException; 388 389 public boolean canAddForum(); 390 public void ensureCanAddForum() throws AuthenticationException; 391 392 public boolean canAddCategory(); 393 public void ensureCanAddCategory() throws AuthenticationException; 394 395 public boolean canEditCategory(); 396 public void ensureCanEditCategory() throws AuthenticationException; 397 398 public boolean canDeleteCategory(); 399 public void ensureCanDeleteCategory() throws AuthenticationException; 400 401 public boolean canSendMail(); 402 public void ensureCanSendMail() throws AuthenticationException; 403 404 public boolean canUseAvatar(); 405 public void ensureCanUseAvatar() throws AuthenticationException; 406 407 public boolean canUseMessage(); 408 public void ensureCanUseMessage() throws AuthenticationException; 409 410 public boolean canAddMessageAttachment(); 411 public void ensureCanAddMessageAttachment() throws AuthenticationException; 412 413 416 417 public boolean canEditForum(int forumID); 418 public void ensureCanEditForum(int forumID) throws AuthenticationException; 419 420 public boolean canDeleteForum(int forumID); 421 public void ensureCanDeleteForum(int forumID) throws AuthenticationException; 422 423 public boolean canAssignToForum(int forumID); 424 public void ensureCanAssignToForum(int forumID) throws AuthenticationException; 425 426 public boolean canReadPost(int forumID); 427 public void ensureCanReadPost(int forumID) throws AuthenticationException; 428 429 public boolean canAddThread(int forumID); 430 public void ensureCanAddThread(int forumID) throws AuthenticationException; 431 432 public boolean canAddPost(int forumID); 433 public void ensureCanAddPost(int forumID) throws AuthenticationException; 434 435 public boolean canEditPost(int forumID); 436 public void ensureCanEditPost(int forumID) throws AuthenticationException; 437 438 public boolean canEditOwnPost(int forumID); 439 public void ensureCanEditOwnPost(int forumID) throws AuthenticationException; 440 441 public boolean canDeletePost(int forumID); 442 public void ensureCanDeletePost(int forumID) throws AuthenticationException; 443 444 public boolean canAddPoll(int forumID); 445 public void ensureCanAddPoll(int forumID) throws AuthenticationException; 446 447 public boolean canEditPoll(int forumID); 448 public void ensureCanEditPoll(int forumID) throws AuthenticationException; 449 450 public boolean canDeletePoll(int forumID); 451 public void ensureCanDeletePoll(int forumID) throws AuthenticationException; 452 453 public boolean canAddAttachment(int forumID); 454 public void ensureCanAddAttachment(int forumID) throws AuthenticationException; 455 456 public boolean canGetAttachment(int forumID); 457 public void ensureCanGetAttachment(int forumID) throws AuthenticationException; 458 459 public boolean canModerateThread(int forumID); 460 public void ensureCanModerateThread(int forumID) throws AuthenticationException; 461 462 465 466 public boolean canAddChannel(); 467 public void ensureCanAddChannel() throws AuthenticationException; 468 469 public boolean canEditChannel(); 470 public void ensureCanEditChannel() throws AuthenticationException; 471 472 public boolean canDeleteChannel(); 473 public void ensureCanDeleteChannel() throws AuthenticationException; 474 475 478 479 public boolean canWriteContent(int channelID); 480 public void ensureCanWriteContent(int channelID) throws AuthenticationException; 481 482 public boolean canEditContent(int channelID); 483 public void ensureCanEditContent(int channelID) throws AuthenticationException; 484 485 public boolean canApproveContent(int channelID); 486 public void ensureCanApproveContent(int channelID) throws AuthenticationException; 487 488 public boolean canPublishContent(int channelID); 489 public void ensureCanPublishContent(int channelID) throws AuthenticationException; 490 491 public boolean canDeleteContent(int channelID); 492 public void ensureCanDeleteContent(int channelID) throws AuthenticationException; 493 494 497 498 public boolean canEditAnyForum(); 499 public void ensureCanEditAnyForum() throws AuthenticationException; 500 501 public boolean canModerateThreadInAnyForum(); 502 public void ensureCanModerateThreadInAnyForum() throws AuthenticationException; 503 504 507 public boolean canWriteContentInAnyChannel(); 508 public void ensureCanWriteContentInAnyChannel() throws AuthenticationException; 509 510 public boolean canEditContentInAnyChannel(); 511 public void ensureCanEditContentInAnyChannel() throws AuthenticationException; 512 513 public boolean canApproveContentInAnyChannel(); 514 public void ensureCanApproveContentInAnyChannel() throws AuthenticationException; 515 516 public boolean canPublishContentInAnyChannel(); 517 public void ensureCanPublishContentInAnyChannel() throws AuthenticationException; 518 519 } 520
| Popular Tags
|