public interface UserPermissionService
| Modifier and Type | Method and Description |
|---|---|
boolean |
currentUserHasPermission(UserPermission permission)
Does the current user have the provided permission.
|
boolean |
hasPermission(String username,
UserPermission permission)
Does the provided user have the provided permission.
|
boolean |
hasPermissionOutsideOfGroups(String username,
UserPermission permission,
Collection<DirectoryGroup> excludedGroups)
Does the provided user have the provided permission when not considering the provided groups.
|
boolean currentUserHasPermission(UserPermission permission)
permission - permission requiredboolean hasPermission(@Nullable String username, UserPermission permission)
username - user to check, null for the anonymous userpermission - permission requiredboolean hasPermissionOutsideOfGroups(@Nullable String username, UserPermission permission, Collection<DirectoryGroup> excludedGroups)
username - user to check, null for the anonymous userpermission - permission requiredexcludedGroups - groups to exclude in permission check, or an empty list otherwiseCopyright © 2016 Atlassian. All rights reserved.