ludc
2024-06-26 79dd20bae9e8af17d5d66b67da4ca6ebc56cd9dd
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.vci.frameworkcore.compatibility;
 
import com.vci.corba.common.PLException;
import com.vci.frameworkcore.pagemodel.SmPasswordStrategyVO;
import com.vci.starter.web.exception.VciBaseException;
 
import java.util.Collection;
import java.util.List;
import java.util.Map;
 
/**
 * 密码策略查询服务
 * @author ludc
 * @date 2024/6/24 16:33
 */
public interface SmPwdStrategyQueryServiceI {
 
    /**
     * 获取默认密码策略
     * @return
     */
    SmPasswordStrategyVO getPasswordStrategyVOByDefault();
 
    /**
     * 根据主键查询密码策略map对象
     * @param oidList
     * @return key为密码策略主键 value为密码策略
     */
    Map<String,SmPasswordStrategyVO> mapPasswordStrategyVOMapByOid(Collection<String> oidList);
 
    /**
     * 使用主键获取密码策略
     * @param oid 主键
     * @return 密码策略显示对象
     */
    SmPasswordStrategyVO getPasswordStrategyVOByOid(String oid);
 
    /**
     * 根据单条用户的主键,获取用户的密码安全策略
     * @param userOid 用户的主键
     * @return 密码安全策略的显示对象,如果不存在则会返回Null
     * @throws VciBaseException 参数为空或者数据库查询出错的时候会抛出异常
     */
    SmPasswordStrategyVO getPasswordStrategyVOByUserOid(String userOid) throws PLException;
 
    /**
     * 根据单条用户主键,获取用户的密码安全策略
     * @param userOids
     * @return
     * @throws PLException
     */
    List<SmPasswordStrategyVO> listSmPasswordStrategyVOByUserOids(Collection<String> userOids) throws PLException;
 
    /**
     * 根据主键,批量获取密码安全策略
     * @param oids
     * @return
     * @throws PLException
     */
    List<SmPasswordStrategyVO> listSmPasswordStrategyVOByOids(Collection<String> oids) throws PLException;
 
    /**
     * 批量根据用户的主键来获取密码策略
     * @param userOidCollection 用户主键集合
     * @return 密码策略的显示对象,key是用户主键,value是这个用户关联的密码策略
     */
    Map<String, SmPasswordStrategyVO> batchSmPwdStrategyByUserOids(Collection<String> userOidCollection);
 
}