public class BambooAcegiSecurityUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
hasAuthority(@NotNull org.acegisecurity.Authentication authentication,
@NotNull org.acegisecurity.GrantedAuthority checkedAuthority) |
static boolean |
hasAuthority(org.acegisecurity.GrantedAuthority[] authorities,
@NotNull org.acegisecurity.GrantedAuthority checkedAuthority) |
static boolean |
hasAuthority(org.acegisecurity.userdetails.UserDetails userDetails,
@NotNull org.acegisecurity.GrantedAuthority checkedAuthority) |
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.
|
static Comparator<org.acegisecurity.acls.sid.Sid> |
sidComparator()
A comparator which can be used to construct tree-based collections for ACEGI
Sid s, for example a
TreeSet . |
public static boolean hasAuthority(@NotNull @NotNull org.acegisecurity.Authentication authentication, @NotNull @NotNull org.acegisecurity.GrantedAuthority checkedAuthority)
public static boolean hasAuthority(org.acegisecurity.userdetails.UserDetails userDetails, @NotNull @NotNull org.acegisecurity.GrantedAuthority checkedAuthority)
public static boolean hasAuthority(org.acegisecurity.GrantedAuthority[] authorities, @NotNull @NotNull org.acegisecurity.GrantedAuthority checkedAuthority)
public static boolean isGranted(@NotNull @NotNull org.acegisecurity.acls.Acl acl, @NotNull @NotNull BambooPermission permission, @NotNull @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 checkpublic static Comparator<org.acegisecurity.acls.sid.Sid> sidComparator()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.