| java.lang.Object org.nemesis.forum.ForumPermissions
ForumPermissions | public class ForumPermissions implements Cacheable(Code) | | Defines a set of permissions for objects in the forum system that
users can be granted. Forum permissions are used by the protection
proxy objects defined for each major component of the system.
|
Constructor Summary | |
public | ForumPermissions(boolean READ, boolean SYSTEM_ADMIN, boolean FORUM_ADMIN, boolean USER_ADMIN, boolean GROUP_ADMIN, boolean MODERATOR, boolean CREATE_THREAD, boolean CREATE_MESSAGE) Create a new permissions object with the specified permissions. | public | ForumPermissions(ForumPermissions perm1, ForumPermissions perm2) Creates a new ForumPermission object by combining two permissions
objects. | public | ForumPermissions(boolean[] permissions) |
ForumPermissions | public ForumPermissions(boolean READ, boolean SYSTEM_ADMIN, boolean FORUM_ADMIN, boolean USER_ADMIN, boolean GROUP_ADMIN, boolean MODERATOR, boolean CREATE_THREAD, boolean CREATE_MESSAGE)(Code) | | Create a new permissions object with the specified permissions.
|
ForumPermissions | public ForumPermissions(ForumPermissions perm1, ForumPermissions perm2)(Code) | | Creates a new ForumPermission object by combining two permissions
objects. The higher permission of each permission type will be used.
|
ForumPermissions | public ForumPermissions(boolean[] permissions)(Code) | | |
get | public boolean get(int type)(Code) | | Returns true if the permission of a particular type is allowed.
|
getSize | public int getSize()(Code) | | |
isSystemOrForumAdmin | public boolean isSystemOrForumAdmin()(Code) | | Returns true if the permissions include system or forum admin
permissions.
|
readOnly | public static ForumPermissions readOnly()(Code) | | Factory method to create an object with read-only permissions.
|
|
|