@CacheConfig(cacheNames="sysAuthorize") @Service(interfaceClass=SysAuthorizeService.class) @MotanService(interfaceClass=SysAuthorizeService.class) public class SysAuthorizeServiceImpl extends Object implements SysAuthorizeService
Constructor and Description |
---|
SysAuthorizeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<SysUserRole> |
getRolesByUserId(Long userId) |
List<SysMenu> |
queryAuthorizeByUserId(Long userId) |
List<String> |
queryMenuIdsByRoleId(Long roleId) |
List<String> |
queryMenuIdsByUserId(Long userId) |
List<SysMenu> |
queryMenusPermission() |
List<String> |
queryPermissionByUserId(Long userId) |
List<String> |
queryRolePermission(Long roleId) |
List<Map<String,Object>> |
queryRolePermissions(SysRoleMenu sysRoleMenu) |
List<String> |
queryUserPermission(Long userId) |
List<Map<String,Object>> |
queryUserPermissions(SysUserMenu sysUserMenu) |
void |
updateRoleMenu(List<SysRoleMenu> sysRoleMenus) |
void |
updateRolePermission(List<SysRoleMenu> sysRoleMenus) |
void |
updateUserMenu(List<SysUserMenu> sysUserMenus) |
void |
updateUserPermission(List<SysUserMenu> sysUserMenus) |
void |
updateUserRole(List<SysUserRole> sysUserRoles) |
public List<String> queryMenuIdsByUserId(Long userId)
queryMenuIdsByUserId
in interface SysAuthorizeService
@Transactional @CacheEvict(value={"iBase4J:menuPermission","iBase4J:sysPermission","iBase4J:userPermission"}, allEntries=true) public void updateUserMenu(List<SysUserMenu> sysUserMenus)
updateUserMenu
in interface SysAuthorizeService
@Transactional @CacheEvict(value={"iBase4J:menuPermission","iBase4J:sysPermission","iBase4J:userPermission"}, allEntries=true) public void updateUserPermission(List<SysUserMenu> sysUserMenus)
updateUserPermission
in interface SysAuthorizeService
public List<SysUserRole> getRolesByUserId(Long userId)
getRolesByUserId
in interface SysAuthorizeService
@Transactional @CacheEvict(value={"iBase4J:menuPermission","iBase4J:sysPermission","iBase4J:userPermission","iBase4J:rolePermission"}, allEntries=true) public void updateUserRole(List<SysUserRole> sysUserRoles)
updateUserRole
in interface SysAuthorizeService
public List<String> queryMenuIdsByRoleId(Long roleId)
queryMenuIdsByRoleId
in interface SysAuthorizeService
@Transactional @CacheEvict(value={"iBase4J:menuPermission","iBase4J:sysPermission","iBase4J:userPermission","iBase4J:rolePermission"}, allEntries=true) public void updateRoleMenu(List<SysRoleMenu> sysRoleMenus)
updateRoleMenu
in interface SysAuthorizeService
@Transactional @CacheEvict(value={"iBase4J:menuPermission","iBase4J:sysPermission","iBase4J:userPermission","iBase4J:rolePermission"}, allEntries=true) public void updateRolePermission(List<SysRoleMenu> sysRoleMenus)
updateRolePermission
in interface SysAuthorizeService
@Cacheable(value="iBase4J:menuPermission") public List<SysMenu> queryAuthorizeByUserId(Long userId)
queryAuthorizeByUserId
in interface SysAuthorizeService
@Cacheable(value="iBase4J:sysPermission") public List<String> queryPermissionByUserId(Long userId)
queryPermissionByUserId
in interface SysAuthorizeService
@Cacheable(value="iBase4J:userPermission") public List<String> queryUserPermission(Long userId)
queryUserPermission
in interface SysAuthorizeService
@Cacheable(value="iBase4J:rolePermission") public List<String> queryRolePermission(Long roleId)
queryRolePermission
in interface SysAuthorizeService
public List<SysMenu> queryMenusPermission()
queryMenusPermission
in interface SysAuthorizeService
public List<Map<String,Object>> queryUserPermissions(SysUserMenu sysUserMenu)
queryUserPermissions
in interface SysAuthorizeService
public List<Map<String,Object>> queryRolePermissions(SysRoleMenu sysRoleMenu)
queryRolePermissions
in interface SysAuthorizeService
Copyright © 2018. All rights reserved.