@Service @DependsOn(value="springContextHolder") @Transactional(readOnly=true) public class UserAuthServiceServiceImpl extends Object implements UserAuthService
Constructor and Description |
---|
UserAuthServiceServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<String> |
findPermissionsByRoleId(Integer roleId)
获取权限列表通过角色id
|
String |
findRoleNameByRoleId(Integer roleId)
根据角色id获取角色名称
|
org.apache.shiro.authc.SimpleAuthenticationInfo |
info(ShiroUser shiroUser,
User user,
String realmName)
获取shiro的认证信息
|
static UserAuthService |
me() |
ShiroUser |
shiroUser(User user)
根据系统用户获取Shiro的用户
|
User |
user(String account)
根据账号获取登录用户
|
public static UserAuthService me()
public User user(String account)
UserAuthService
user
in interface UserAuthService
account
- 账号public ShiroUser shiroUser(User user)
UserAuthService
shiroUser
in interface UserAuthService
user
- 系统用户public List<String> findPermissionsByRoleId(Integer roleId)
UserAuthService
findPermissionsByRoleId
in interface UserAuthService
roleId
- 角色idpublic String findRoleNameByRoleId(Integer roleId)
UserAuthService
findRoleNameByRoleId
in interface UserAuthService
roleId
- 角色idpublic org.apache.shiro.authc.SimpleAuthenticationInfo info(ShiroUser shiroUser, User user, String realmName)
UserAuthService
info
in interface UserAuthService
Copyright © 2018. All rights reserved.