| java.lang.Object org.nemesis.forum.util.SecurityTools
SecurityTools | public class SecurityTools (Code) | | author: dlaurent |
Method Summary | |
public static boolean | isForumAdmin(Authorization authToken) Returns true if the user is a forum adminstrator of any forum in the
system. | public static boolean | isForumAdmin(Authorization authToken, Forum forum) Returns true if the user is a forum adminstrator of the given forum.
Parameters: authToken - the authentication token of the user Parameters: forum - the forum to check administrator status on. | public static boolean | isForumModerator(Authorization authToken) Returns true if the user is a forum moderator of any forum in the
system. | public static boolean | isForumModerator(Authorization authToken, Forum forum) Returns true if the user is a forum moderator of the given forum.
Parameters: authToken - the authentication token of the user Parameters: forum - the forum to check moderator status on. | public static boolean | isGroupAdmin(Authorization authToken) Returns true if the user is a group administrator of any group in the
system. | public static boolean | isGroupAdmin(Authorization authToken, Group group) Returns true if the user is a group administrator of the given group.
Parameters: authToken - the authentication token of the user Parameters: group - the group to check administrator status on. | public static boolean | isSystemAdmin(Authorization authToken) Returns true if the user is a system administrator. |
isForumAdmin | public static boolean isForumAdmin(Authorization authToken)(Code) | | Returns true if the user is a forum adminstrator of any forum in the
system. For example, if there are 3 forums in the system and the user
is an adminstrator of any one or more of them, this method will return
true.
Use the method isForumAdmin( Authorization, Forum) to
check an individual forum for administrator status.)
Parameters: authToken - the authentication token of the user true if the user is a forum administrator of any forum in the system. |
isForumAdmin | public static boolean isForumAdmin(Authorization authToken, Forum forum)(Code) | | Returns true if the user is a forum adminstrator of the given forum.
Parameters: authToken - the authentication token of the user Parameters: forum - the forum to check administrator status on. true if the user is a forum administrator of the given forum. |
isForumModerator | public static boolean isForumModerator(Authorization authToken)(Code) | | Returns true if the user is a forum moderator of any forum in the
system. For example, if there are 3 forums in the system and the user
is a moderator of any one or more of them, this method will return
true.
Use the method isForumModerator( Authorization, Forum) to
check an individual forum for moderator status.)
Parameters: authToken - the authentication token of the user true if the user is a forum moderator of any forum in the system. |
isForumModerator | public static boolean isForumModerator(Authorization authToken, Forum forum)(Code) | | Returns true if the user is a forum moderator of the given forum.
Parameters: authToken - the authentication token of the user Parameters: forum - the forum to check moderator status on. true if the user is a forum moderator of the given forum. |
isGroupAdmin | public static boolean isGroupAdmin(Authorization authToken)(Code) | | Returns true if the user is a group administrator of any group in the
system. For example, if there are 3 groups in the system and the user
is an adminstrator of any one or more of them, this method will return
true.
Use the method isGroupAdmin( Authorization, Group) to check
an individual group for administrator status.)
|
isGroupAdmin | public static boolean isGroupAdmin(Authorization authToken, Group group)(Code) | | Returns true if the user is a group administrator of the given group.
Parameters: authToken - the authentication token of the user Parameters: group - the group to check administrator status on. true if the user is a group administrator of the given group. |
isSystemAdmin | public static boolean isSystemAdmin(Authorization authToken)(Code) | | Returns true if the user is a system administrator.
Parameters: authToken - the authentication token of the user true if the user is a system administrator, false otherwise. |
|
|