class RoleUser extends Object
角色与用户的关联表
| Modifiers | Name | Description |
|---|---|---|
static Long |
UID_ALL_GRANTED |
|
static Long |
UID_NOT_GRANTED |
| Type | Name and description |
|---|---|
static Object |
belongsTo |
static Object |
constraints |
Date |
dateCreated插入时间 |
String |
eiIds以分号分隔的身份ID列表:如果不是通过机构、岗位、身份级别授权的,则为 null * |
static Object |
mapping |
Role |
role所属角色 |
Long |
userId用户ID |
| Type | Name and description |
|---|---|
static List<Long> |
getGrantedRoleIds(Long userId)@see Role#getGrantedUserMaps |
static List<Role> |
getGrantedRoles(Long userId) |
static List<Long> |
getGrantedUserIds(Long roleId)获得角色关联(不含授权给所有人的角色)的所有授权用户ID |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
插入时间
以分号分隔的身份ID列表:如果不是通过机构、岗位、身份级别授权的,则为 null *
所属角色
用户ID
1、如果为 0,则表示角色是 allGranted 2、如果为-1,则表示角色未关联任何实体
获得角色关联(不含授权给所有人的角色)的所有授权用户ID
如果角色授权给所有人,则会返回空。
roleId - 角色ID