类 RoleService
- java.lang.Object
-
- cool.scx.base.BaseService<Role>
-
- cool.scx.ext.organization.RoleService
-
public class RoleService extends cool.scx.base.BaseService<Role>
RoleService- 版本:
- 1.1.2
- 作者:
- scx567888
-
-
构造器概要
构造器 构造器 说明 RoleService(UserRoleService userRoleService)Constructor for CoreRoleService.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddeleteByUserId(Long id)List<Role>getRoleListByUser(User user)getRoleListByUserList<UserRole>getUserRoleByUserIds(List<Long> userIds)getUserRoleByUserIdsvoidsaveRoleListWithUserId(Long userId, List<Long> roleIds)saveRoleListWithUserId
-
-
-
构造器详细资料
-
RoleService
public RoleService(UserRoleService userRoleService)
Constructor for CoreRoleService.
- 参数:
userRoleService- aUserRoleServiceobject.
-
-
方法详细资料
-
getUserRoleByUserIds
public List<UserRole> getUserRoleByUserIds(List<Long> userIds)
getUserRoleByUserIds
-
saveRoleListWithUserId
public void saveRoleListWithUserId(Long userId, List<Long> roleIds) throws SQLException
saveRoleListWithUserId- 参数:
userId- aLongobjectroleIds- aStringobject- 抛出:
SQLException- s
-
deleteByUserId
public void deleteByUserId(Long id) throws SQLException
- 参数:
id- aLongobject- 抛出:
SQLException- s
-
-