@Service public class UserService extends AbstractBaseDomainObjectService<User,UserEntity> implements IUserService
domainObjectClass, entityClass
构造器和说明 |
---|
UserService() |
限定符和类型 | 方法和说明 |
---|---|
void |
assignUserWithroles(long id,
List<Long> roleIds)
用户绑定角色
|
void |
changePassword(String userName,
String oldPassword,
String newPassword)
修改当前用户名密码
|
Boolean |
checkPassword(String userName,
String password)
校验密码
|
Boolean |
checkPermission(User user,
String permission)
检验权限,检验该用户是否拥有这个权限
|
User |
getbyDepartmentCodeAndJobPositionCode(String jobPositionCode,
String departmentCode)
根据职位编码和部门编码查询用户
|
User |
getByName(String userName)
根据用户名查询用户信息
|
List<User> |
getByNameLazzy(String name)
根据用户名模糊查询用户
|
protected IUserHandler |
getEntityHandler() |
List<User> |
listByNameWithFuzzy(String name)
根据用户名字来查找所有的用户,该查找方式以模糊查询的方式进行
|
List<User> |
listByRoleId(long roleId)
通过角色ID获取所有用户信息。
|
Collection<UserSimpleData> |
listSimpleData()
获得数据的简单版本,仅仅包含最基本的信息,不会交叉拿出该对象的详细信息,如果该接口不能满足你的要求,在需要更多数据的情况下,请使用getALL接口。
|
User |
resetLoginStatus(Long userId,
LoginStatus loginStatus)
修改用户登录状态和登录时间
|
void |
resetPassword(String userName,
String newPassword)
重置用户密码
|
countByFilter, createClientObject, createClientObject, createClientObjects, createClientObjects, createFilter, delete, deleteById, deleteByIds, getByFilter, getById, getByIdAndEvict, getInternalEntities, getInternalEntity, getObjectType, list, list, listByFilter, pagingByFilter, save, saveAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countByFilter, createFilter, delete, deleteById, deleteByIds, getByFilter, getById, getByIdAndEvict, list, list, listByFilter, pagingByFilter, save, saveAll
protected IUserHandler getEntityHandler()
public User getByName(String userName)
IUserService
getByName
在接口中 IUserService
public void changePassword(String userName, String oldPassword, String newPassword)
IUserService
changePassword
在接口中 IUserService
public void resetPassword(String userName, String newPassword)
IUserService
resetPassword
在接口中 IUserService
public List<User> listByRoleId(long roleId)
IUserService
listByRoleId
在接口中 IUserService
roleId
- 角色IDpublic List<User> listByNameWithFuzzy(String name)
IUserService
listByNameWithFuzzy
在接口中 IUserService
public User getbyDepartmentCodeAndJobPositionCode(String jobPositionCode, String departmentCode)
IUserService
getbyDepartmentCodeAndJobPositionCode
在接口中 IUserService
public List<User> getByNameLazzy(String name)
IUserService
getByNameLazzy
在接口中 IUserService
public Boolean checkPassword(String userName, String password)
IUserService
checkPassword
在接口中 IUserService
public void assignUserWithroles(long id, List<Long> roleIds)
IUserService
assignUserWithroles
在接口中 IUserService
public User resetLoginStatus(Long userId, LoginStatus loginStatus)
resetLoginStatus
在接口中 IUserService
userId
- 用户IdloginStatus
- 登录状态public Boolean checkPermission(User user, String permission)
IUserService
checkPermission
在接口中 IUserService
user
- 用户permission
- 权限名public Collection<UserSimpleData> listSimpleData()
IBaseDomainObjectService
listSimpleData
在接口中 IBaseDomainObjectService<User>
listSimpleData
在类中 AbstractBaseDomainObjectService<User,UserEntity>
Copyright © 2019. All rights reserved.