类 RoleService

java.lang.Object
cool.scx.base.BasicService<Entity>
cool.scx.base.BaseModelService<Role>
cool.scx.ext.organization.role.RoleService

public class RoleService extends cool.scx.base.BaseModelService<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)
      根据 用户获取 角色
      参数:
      user - a User object
      返回:
      a List object
    • getUserRoleByUserIDs

      public List<UserRole> getUserRoleByUserIDs(List<Long> userIDs)
      getUserRoleByUserIDs
      参数:
      userIDs - a List object
      返回:
      a List object
    • saveRoleListWithUserID

      public void saveRoleListWithUserID(Long userID, List<Long> roleIDs)
      saveRoleListWithUserID
      参数:
      userID - a Long object
      roleIDs - a String object
    • deleteByUserID

      public void deleteByUserID(Long id)
      参数:
      id - a Long object