add
yj
2024-12-05 a160d838f9c0a79dfc2f18e7cd46bdd4faa59c6d
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
package com.dobbinsoft.fw.core.util;
 
import com.dobbinsoft.fw.core.entiy.inter.IdentityOwner;
import com.dobbinsoft.fw.core.entiy.inter.PermissionOwner;
import com.dobbinsoft.fw.core.exception.ServiceException;
 
import java.util.List;
 
/**
 * Session 相关抽取接口
 */
public interface ISessionUtil<U extends IdentityOwner, A extends PermissionOwner> {
 
    public void setUser(U userDTO);
 
    public U getUser();
 
    public void setAdmin(A adminDTO);
 
    public A getAdmin();
 
    public Class<U> getUserClass();
 
    public Class<A> getAdminClass();
 
    public boolean hasPerm(String permission) throws ServiceException;
 
}