类 RoleService

java.lang.Object
cool.scx.base.AbstractBaseService<Entity>
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

      public RoleService(UserRoleService userRoleService)

      Constructor for CoreRoleService.

      参数:
      userRoleService - a UserRoleService object.
  • 方法详细资料

    • getRoleListByUser

      public List<Role> getRoleListByUser(User user)
      getRoleListByUser
      参数:
      user - a User object
      返回:
      a List object
    • getUserRoleByUserIds

      public List<UserRole> getUserRoleByUserIds(List<Long> userIds)
      getUserRoleByUserIds
      参数:
      userIds - a User object
      返回:
      a List object
    • saveRoleListWithUserId

      public void saveRoleListWithUserId(Long userId, List<Long> roleIds) throws SQLException
      saveRoleListWithUserId
      参数:
      userId - a Long object
      roleIds - a String object
      抛出:
      SQLException - s
    • deleteByUserId

      public void deleteByUserId(Long id) throws SQLException
      参数:
      id - a Long object
      抛出:
      SQLException - s