| | |
| | | package com.vci.frameworkcore.compatibility; |
| | | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.frameworkcore.dto.SmUserDTO; |
| | | import com.vci.frameworkcore.pagemodel.SmPasswordStrategyVO; |
| | | import com.vci.frameworkcore.pagemodel.SmUserVO; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | |
| | | import com.vci.starter.web.pagemodel.PageHelper; |
| | | import com.vci.starter.web.pagemodel.Tree; |
| | | import com.vci.starter.web.pagemodel.TreeQueryObject; |
| | | import com.vci.web.model.SmUserDO; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | |
| | | * @date 2020/3/1 |
| | | */ |
| | | public interface SmUserQueryServiceI{ |
| | | |
| | | /** |
| | | * 检查用户是否存在,可以根据用户名,也可以根据用户oid |
| | | * @param userName 传null,即用oid作为检查条件 |
| | | * @param oid 传null,即用userName作为检查条件 |
| | | * @return true存在,false不存在 |
| | | */ |
| | | boolean checkUserExist(String userName,String oid) throws PLException; |
| | | |
| | | /** |
| | | * 根据用户名获取用户的对象,不区分大小写 |
| | |
| | | * @throws VciBaseException 参数为空的时候会抛出异常 |
| | | */ |
| | | DataGrid<SmUserVO> gridUsers(Map<String, String> queryMap, PageHelper pageHelper) throws VciBaseException; |
| | | |
| | | /** |
| | | * 用户管理界面分页查询 |
| | | * @param conditionMap 查询条件 |
| | | * @param pageHelper 分页参数 |
| | | * @return |
| | | */ |
| | | DataGrid<SmUserVO> getDataGridUsers(Map<String, String> conditionMap, PageHelper pageHelper) throws PLException; |
| | | |
| | | /** |
| | | * 根据用户名获取用户的姓名 |
| | |
| | | * @throws VciBaseException 查询出错的时候会抛出异常 |
| | | */ |
| | | List<Tree> refTreeUsers(TreeQueryObject treeQueryObject) throws VciBaseException; |
| | | |
| | | /** |
| | | * 校验密码是否相同,在新平台中存储的密码是两次md5 |
| | | * @param userOid 用户主键 |
| | |
| | | * @return true表示已经锁定 |
| | | */ |
| | | boolean checkUserLock(SmUserVO smUserVO, Integer wrongCount); |
| | | |
| | | /** |
| | | * 根据用户的主键,获取用户的密码安全策略 |
| | | * @param userOid 用户的主键 |
| | | * @return 密码安全策略的显示对象,如果不存在则会返回Null |
| | | * @throws VciBaseException 参数为空或者数据库查询出错的时候会抛出异常 |
| | | */ |
| | | SmPasswordStrategyVO getPasswordStrategyVOByUserOid(String userOid) throws VciBaseException; |
| | | |
| | | /** |
| | | * 设置某个用户是锁定状态 |
| | |
| | | */ |
| | | void updateUserLoginTime(String userOid) throws VciBaseException; |
| | | |
| | | /** |
| | | * 添加用户 |
| | | * @param smUserDTO |
| | | * @return |
| | | */ |
| | | boolean addUser(SmUserDTO smUserDTO) throws PLException; |
| | | |
| | | /** |
| | | * 修改用户 |
| | | * @param smUserDTO |
| | | * @return |
| | | */ |
| | | boolean updateUser(SmUserDTO smUserDTO) throws PLException; |
| | | |
| | | /** |
| | | * 删除用户 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | boolean deleteUser(String[] ids) throws PLException; |
| | | |
| | | /** |
| | | * 用户停用/启用 |
| | | * @param ids |
| | | * @param flag |
| | | * @return |
| | | */ |
| | | boolean disableOrEnableUsers(String[] ids,boolean flag) throws PLException; |
| | | |
| | | } |