类 RoleService

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

public class RoleService extends cool.scx.core.base.BaseModelService<Role>
RoleService
版本:
1.1.2
作者:
scx567888
  • 字段概要

    从类继承的字段 cool.scx.core.base.BasicService

    countResultHandler, entityBeanListHandler, entityClass, scxDaoTableInfo
  • 构造器概要

    构造器
    构造器
    说明
    RoleService(UserRoleService userRoleService)
    Constructor for CoreRoleService.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    根据 用户获取 角色
    getUserRoleByUserIDs(cool.scx.sql.AbstractPlaceholderSQL<?> userIDs)
    getUserRoleByUserIDs
    void
    saveRoleListWithUserID(Long userID, List<Long> roleIDs)
    saveRoleListWithUserID

    从类继承的方法 cool.scx.core.base.BaseModelService

    add, add, add, add, buildGetSQL, buildGetSQLWithAlias, buildListSQL, buildListSQLWithAlias, count, count, delete, delete, get, get, get, get, list, list, list, list, revokeDelete, revokeDelete, update, update, update, update

    从类继承的方法 cool.scx.core.base.BasicService

    _buildSelectSQL, _buildSelectSQLWithAlias, _count, _delete, _insert, _insertBatch, _scxDaoTableInfo, _select, _truncate, _update, autoTransaction, autoTransaction

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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(cool.scx.sql.AbstractPlaceholderSQL<?> userIDs)
      getUserRoleByUserIDs
      参数:
      userIDs - a
      返回:
      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