1 package gboat2.web.service;
2
3 import gboat2.base.bridge.model.UserSession;
4 import gboat2.web.model.Group;
5 import gboat2.web.model.GroupRoleVO;
6 import gboat2.web.model.GroupType;
7 import gboat2.web.model.Role;
8 import gboat2.web.model.RoleType;
9 import gboat2.web.model.SystemType;
10
11 import java.util.List;
12
13
14
15
16
17
18
19 public interface IRoleService {
20
21
22
23
24
25 public List<Role> findAllRole();
26
27
28
29
30
31 public List<String> findAllRoleName();
32
33
34
35
36
37 public List<Group> findAllGroup();
38
39
40
41
42
43
44 public List<GroupRoleVO> findAllRoleByGroupId(String groupId);
45
46
47
48
49
50
51 public Role findRoleByRoleName(String roleName);
52
53
54
55
56
57
58 public RoleType findRoleTypeBySession(UserSession session);
59
60
61
62
63
64
65 public GroupType findGroupTypeBySession(UserSession session);
66
67
68
69
70
71
72 public SystemType findSystemTypeBySession(UserSession session);
73
74
75
76
77
78
79
80 public List<GroupRoleVO> findAllRoleByGroupCode(String groupCode);
81
82
83
84
85
86
87
88 public Role findRoleByRoleCode(String roleCode);
89 }