ludc
2025-01-16 5203081b68e3a8dc139d1807b2f8774e4a00a82a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.vci.web.service;
 
import com.vci.corba.common.PLException;
import com.vci.pagemodel.SmPasswordStrategyVO;
import com.vci.starter.web.exception.VciBaseException;
 
import java.util.Collection;
import java.util.Map;
 
/**
 * @Description 密码策略查询
 * @Author dangsn
 * @Date 2024/11/28 16:16
 */
public interface WebPwdStrategyQueryServiceI {
 
    /**
     * 获取默认密码策略
     * @return
     */
    SmPasswordStrategyVO getPasswordStrategyVOByDefault();
 
    /**
     * 根据单条用户的主键,获取用户的密码安全策略
     * @param userOid 用户的主键
     * @return 密码安全策略的显示对象,如果不存在则会返回Null
     * @throws VciBaseException 参数为空或者数据库查询出错的时候会抛出异常
     */
    SmPasswordStrategyVO getPasswordStrategyVOByUserOid(String userOid) throws PLException;
 
    /**
     * 批量根据用户的主键来获取密码策略
     * @param userOidCollection 用户主键集合
     * @return 密码策略的显示对象,key是用户主键,value是这个用户关联的密码策略
     */
    Map<String, SmPasswordStrategyVO> batchSmPwdStrategyByUserOids(Collection<String> userOidCollection);
 
    /**
     * 根据主键查询密码策略map对象
     * @param oidList
     * @return key为密码策略主键 value为密码策略
     */
    Map<String,SmPasswordStrategyVO> mapPasswordStrategyVOMapByOid(Collection<String> oidList);
 
    /**
     * 使用主键获取密码策略
     * @param oid 主键
     * @return 密码策略显示对象
     */
    SmPasswordStrategyVO getPasswordStrategyVOByOid(String oid);
}