@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)
UserAuthServiceuser in interface UserAuthServiceaccount - 账号public ShiroUser shiroUser(User user)
UserAuthServiceshiroUser in interface UserAuthServiceuser - 系统用户public List<String> findPermissionsByRoleId(Integer roleId)
UserAuthServicefindPermissionsByRoleId in interface UserAuthServiceroleId - 角色idpublic String findRoleNameByRoleId(Integer roleId)
UserAuthServicefindRoleNameByRoleId in interface UserAuthServiceroleId - 角色idpublic org.apache.shiro.authc.SimpleAuthenticationInfo info(ShiroUser shiroUser, User user, String realmName)
UserAuthServiceinfo in interface UserAuthServiceCopyright © 2018. All rights reserved.