public final class SecurityUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Set<SecurityAuthority> |
getCurrentUserAuthorities()
Get the login of the current user authorities.
|
static java.util.Set<SecurityGroup> |
getCurrentUserGroups()
Get the login of the current user groups.
|
static java.lang.String |
getCurrentUserLogin()
Get the login of the current user.
|
static java.util.Set<SecurityRole> |
getCurrentUserRoles()
Get the login of the current user roles.
|
static java.util.List<TreeSecurityNav> |
getCurrentUserTreeSecurityNavs()
Get the login of the current user tree security navs.
|
static boolean |
isCurrentUserInRole(java.lang.String roleName)
If the current user has a specific role.
|
public static java.lang.String getCurrentUserLogin()
public static boolean isCurrentUserInRole(java.lang.String roleName)
roleName
- the name of the SecurityRolepublic static java.util.Set<SecurityRole> getCurrentUserRoles()
public static java.util.Set<SecurityGroup> getCurrentUserGroups()
public static java.util.Set<SecurityAuthority> getCurrentUserAuthorities()
public static java.util.List<TreeSecurityNav> getCurrentUserTreeSecurityNavs()