public class GroupRoleServiceImpl extends Object implements GroupRoleService
ins| 构造器和说明 |
|---|
GroupRoleServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(GroupRole role)
插入角色对象
|
void |
addUserRole(String groupId,
String userId,
long roleId)
添加用户角色关系
|
GroupRole |
get(long roleId)
获取团队角色
|
List<Role> |
loadRoles(String groupId)
获取团队下的角色列表
|
List<GroupRoleVO> |
loadUserRoles(String groupId,
String account)
获取角色列表
|
void |
remove(Long id)
删除角色对象
|
void |
removeUserRole(String groupId,
String userId,
long roleId)
删除用户角色关系
|
void |
update(GroupRole role)
更新角色对象
|
List<User> |
users(String groupId,
long roleId)
获取角色的用户列表
|
public List<Role> loadRoles(String groupId) throws Exception
GroupRoleServiceloadRoles 在接口中 GroupRoleServicegroupId - 团队编号Exception - 异常public List<GroupRoleVO> loadUserRoles(String groupId, String account) throws Exception
GroupRoleServiceloadUserRoles 在接口中 GroupRoleServicegroupId - 团队编号account - 用户账号Exception - 异常public void add(GroupRole role) throws Exception
GroupRoleServiceadd 在接口中 GroupRoleServicerole - 角色对象Exception - 异常public void update(GroupRole role) throws Exception
GroupRoleServiceupdate 在接口中 GroupRoleServicerole - 角色对象Exception - 异常public void remove(Long id) throws Exception
GroupRoleServiceremove 在接口中 GroupRoleServiceid - 角色编号Exception - 异常public void addUserRole(String groupId, String userId, long roleId)
GroupRoleServiceaddUserRole 在接口中 GroupRoleServicegroupId - 团队编号userId - 用户账号roleId - 角色编号public void removeUserRole(String groupId, String userId, long roleId) throws Exception
GroupRoleServiceremoveUserRole 在接口中 GroupRoleServicegroupId - 团队编号userId - 用户账号roleId - 角色编号Exception - 异常public GroupRole get(long roleId) throws Exception
GroupRoleServiceget 在接口中 GroupRoleServiceroleId - 角色编号Exception - 异常public List<User> users(String groupId, long roleId) throws Exception
GroupRoleServiceusers 在接口中 GroupRoleServicegroupId - 团队编号roleId - 角色编号Exception - 异常Copyright © 2023 Bstek. All rights reserved.