1
2
3
4
5 package gboat2.web.service;
6
7 import gboat2.base.bridge.model.UserSession;
8 import gboat2.web.model.Group;
9 import gboat2.web.model.Role;
10 import gboat2.web.model.User;
11 import gboat2.web.model.UserGroupOrganMapper;
12
13 import java.util.List;
14 import java.util.Map;
15
16 import javax.servlet.http.HttpServletRequest;
17
18
19
20
21
22
23
24
25
26
27 public interface ISessionService {
28
29 public UserSession login(String loginId, String passwd) throws PrivilegeException;
30
31 public UserSession login(String userId, String groupId, String roleId, String systemId) throws PrivilegeException;
32
33 public UserSession login(User user, UserGroupOrganMapper mapper, String systemId) throws PrivilegeException;
34
35
36
37
38
39
40
41
42 public UserSession login(User user, UserGroupOrganMapper mapper) throws PrivilegeException;
43
44 public Role getRoleByCode(String roleCode);
45
46 public Group getGroupByCode(String groupCode);
47
48
49
50
51
52
53
54 public String computeAuthForId(String groupId, String roleId, String systemId);
55
56
57
58
59
60
61
62
63 public Map<String, List<String>> getDeniedPriority(HttpServletRequest request);
64
65
66
67
68
69
70
71
72 public UserSession loadNavigationMenuToSession(UserSession userSession, UserGroupOrganMapper mapper);
73
74 }