@Transactional(rollbackFor=java.lang.Exception.class) public class DefaultUserService extends GenericCrudService<UserEntity,String> implements UserService
| 构造器和说明 |
|---|
DefaultUserService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
changePassword(String userId,
String oldPassword,
String newPassword) |
boolean |
changeState(String userId,
byte state) |
long |
countUser(org.hswebframework.ezorm.core.param.QueryParam queryParam) |
protected boolean |
doAdd(UserEntity userEntity) |
protected boolean |
doUpdate(UserEntity userEntity) |
List<UserEntity> |
findById(Collection<String> id) |
Optional<UserEntity> |
findById(String id) |
Optional<UserEntity> |
findByUsername(String username) |
Optional<UserEntity> |
findByUsernameAndPassword(String username,
String plainPassword) |
List<UserEntity> |
findUser(org.hswebframework.ezorm.core.param.QueryParam queryParam) |
org.hswebframework.web.api.crud.entity.PagerResult<UserEntity> |
findUserPager(org.hswebframework.ezorm.core.param.QueryParam param) |
boolean |
saveUser(UserEntity userEntity) |
getRepositoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, createDelete, createQuery, createUpdate, deleteById, deleteById, query, queryPager, save, savepublic boolean saveUser(UserEntity userEntity)
saveUser 在接口中 UserServiceprotected boolean doAdd(UserEntity userEntity)
protected boolean doUpdate(UserEntity userEntity)
@Transactional(readOnly=true) public List<UserEntity> findById(Collection<String> id)
findById 在接口中 CrudService<UserEntity,String>findById 在接口中 UserService@Transactional(readOnly=true) public Optional<UserEntity> findById(String id)
findById 在接口中 CrudService<UserEntity,String>findById 在接口中 UserService@Transactional(readOnly=true) public Optional<UserEntity> findByUsername(String username)
findByUsername 在接口中 UserService@Transactional(readOnly=true) public Optional<UserEntity> findByUsernameAndPassword(String username, String plainPassword)
findByUsernameAndPassword 在接口中 UserServicepublic boolean changeState(String userId, byte state)
changeState 在接口中 UserServicepublic void changePassword(String userId, String oldPassword, String newPassword)
changePassword 在接口中 UserService@Transactional(readOnly=true) public List<UserEntity> findUser(org.hswebframework.ezorm.core.param.QueryParam queryParam)
findUser 在接口中 UserService@Transactional(readOnly=true) public long countUser(org.hswebframework.ezorm.core.param.QueryParam queryParam)
countUser 在接口中 UserServicepublic org.hswebframework.web.api.crud.entity.PagerResult<UserEntity> findUserPager(org.hswebframework.ezorm.core.param.QueryParam param)
findUserPager 在接口中 UserServiceCopyright © 2016–2020. All rights reserved.