public class BambooAcegiSecurityUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
hasAuthority(org.acegisecurity.Authentication authentication,
org.acegisecurity.GrantedAuthority checkedAuthority) |
static boolean |
hasAuthority(org.acegisecurity.GrantedAuthority[] authorities,
org.acegisecurity.GrantedAuthority checkedAuthority) |
static boolean |
hasAuthority(org.acegisecurity.userdetails.UserDetails userDetails,
org.acegisecurity.GrantedAuthority checkedAuthority) |
static boolean |
isGranted(org.acegisecurity.acls.Acl acl,
BambooPermission permission,
org.acegisecurity.acls.sid.Sid sid)
Check if permission is explicitly granted to the given sid on an ACL object.
|
public static boolean hasAuthority(@NotNull org.acegisecurity.Authentication authentication, @NotNull org.acegisecurity.GrantedAuthority checkedAuthority)
public static boolean hasAuthority(org.acegisecurity.userdetails.UserDetails userDetails, @NotNull org.acegisecurity.GrantedAuthority checkedAuthority)
public static boolean hasAuthority(org.acegisecurity.GrantedAuthority[] authorities, @NotNull org.acegisecurity.GrantedAuthority checkedAuthority)
public static boolean isGranted(@NotNull org.acegisecurity.acls.Acl acl, @NotNull BambooPermission permission, @NotNull org.acegisecurity.acls.sid.Sid sid)
Check if permission is explicitly granted to the given sid on an ACL object.
This method will not throw NotFoundException
- instead, if the permission is missing,
false will be returned.
acl
- acl objectpermission
- permission to checksid
- sid to checkCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.