接口 SysUserService
- 所有超级接口:
BaseService<Sys_user>
- 所有已知实现类:
SysUserServiceImpl
Created by wizzer on 2016/12/22.
-
方法概要
修饰符和类型方法说明voidcheckLoginname(String loginname) 检查用户是否存在voidcheckMobile(String mobile) 检查用户是否存在voidcheckThirdPlatformLoginName(String loginname) 检查第三方平台用户名是否存在系统中 同上区别是这个会抛出UnknownAccountExceptionvoid清空缓存voiddeleteById(String userId) 通过用户ID删除用户voiddeleteByIds(String[] userIds) 批量删除用户voiddeleteCache(String userId) 清除一个用户的缓存绑定菜单到用户通过用户ID获取菜单获取用户的菜单getMenusAndButtons(String userId) 通过用户ID获取菜单及权限getMenusAndButtons(String userId, String platform) getPermissionList(String userId) 获取用户权限标识getRoleCodeList(Sys_user user) 查询用户的角色getRoleMenus(String userId, String pid) 通过用户ID和菜单父ID获取下级权限菜单getUserAndMenuById(String userId) 获取登录用户及菜单信息getUserById(String id) 通过用户ID获取用户信息getUserByLoginname(String loginname) 通过用户名获取用户信息booleanhasChildren(String userId, String pid) 判断用户是否有下级数据权限loginByLoginName(String loginname) 通过用户名获取用户信息loginByMobile(String mobile) 通过短信验证码登录loginByPassword(String loginname, String passowrd) 通过用户名和密码获取用户信息登录voidsetLoginInfo(String userId, String ip) 更新用户登录信息从接口继承的方法 com.budwk.app.base.service.BaseService
clear, clear, clear, clear, count, count, count, count, count, dao, data, data, data, data, data, delete, delete, delete, delete, delete, delete, delete, execute, exists, fastInsert, fetch, fetch, fetch, fetchLinks, fetchLinks, fetchMap, fetchVO, fetchx, getEntity, getEntityClass, getField, getField, getField, getField, getMap, getMaxId, getNutMap, getParentPath, getSubPath, insert, insert, insert, insertLinks, insertOrUpdate, insertOrUpdate, insertRelation, insertWith, list, listEntity, listMap, listPage, listPage, listPage, listPage, listPage, listPage, listPage, listPage, listPage, listPage, listPageLinks, listPageLinks, listPageMap, listPageMap, listPageMap, listPageMap, listPageMap, listPageMap, listPageVO, listVO, query, query, query, query, query, query, query, query, query, query, query, update, update, update, updateAndIncrIfMatch, updateIgnoreNull, updateLinks, updateRelation, updateWith, updateWithVersion, updateWithVersion, vDelete, vDelete, vDelete, vDelete, vDelete
-
方法详细资料
-
getPermissionList
获取用户权限标识- 参数:
userId-- 返回:
-
getRoleCodeList
查询用户的角色- 参数:
user-- 返回:
-
getMenus
获取用户的菜单- 参数:
userId-- 返回:
-
getMenusAndButtons
通过用户ID获取菜单及权限- 参数:
userId-- 返回:
-
getMenusAndButtons
-
getDatas
通过用户ID获取菜单- 参数:
userId-- 返回:
-
fillMenu
绑定菜单到用户- 参数:
user-
-
deleteById
通过用户ID删除用户- 参数:
userId-
-
deleteByIds
批量删除用户- 参数:
userIds-
-
getRoleMenus
通过用户ID和菜单父ID获取下级权限菜单- 参数:
userId-pid-- 返回:
-
hasChildren
判断用户是否有下级数据权限- 参数:
userId-pid-- 返回:
-
deleteCache
清除一个用户的缓存- 参数:
userId-
-
clearCache
void clearCache()清空缓存 -
checkLoginname
检查用户是否存在- 参数:
loginname- 用户名- 抛出:
BaseException
-
checkThirdPlatformLoginName
检查第三方平台用户名是否存在系统中 同上区别是这个会抛出UnknownAccountException -
checkMobile
检查用户是否存在- 参数:
mobile- 手机号码- 抛出:
BaseException
-
loginByPassword
通过用户名和密码获取用户信息- 参数:
loginname- 用户名passowrd- 密码- 返回:
- 抛出:
BaseException
-
loginByMobile
通过短信验证码登录- 参数:
mobile- 手机号- 返回:
- 抛出:
BaseException
-
loginByLoginName
通过用户名获取用户信息- 参数:
loginname-- 返回:
-
getUserByLoginname
通过用户名获取用户信息- 参数:
loginname- 用户名- 返回:
- 抛出:
BaseException
-
getUserById
通过用户ID获取用户信息- 参数:
id- 用户ID- 返回:
- 抛出:
BaseException
-
getUserAndMenuById
获取登录用户及菜单信息- 参数:
userId- 用户ID- 返回:
-
setLoginInfo
更新用户登录信息- 参数:
userId- 用户IDip- IP地址
-
loginPlus
登录- 参数:
user- 用户loginType- 登录类型request- 请求- 返回:
- 跳转地址
-