角色、用户关联表的更新与缓存服务
| Modifiers | Name | Description |
|---|---|---|
static class |
SecRoleUserService.Cache |
角色、用户关系缓存 |
static class |
SecRoleUserService.Updater |
| Modifiers | Name | Description |
|---|---|---|
static Object |
aliasOverridingOrder |
|
static String |
hql_select_role |
|
static String |
hql_select_role_entity |
|
static String |
hql_select_role_parent_entity |
|
static Map<String, Object> |
queryMetaParamsWithoutCache |
| Type | Name and description |
|---|---|
void |
bootStrapInit() |
Integer |
delete(Long roleId)删除角色和用户的关系 |
Integer |
update(String type)更新角色和用户关系 |
Integer |
update(Long roleId, Boolean async = false)更新角色和用户关系 |
| 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() |
删除角色和用户的关系
roleId - 角色ID更新角色和用户关系
type - app 为仅更新当前应用的;
domain 为仅更新当前域的;
all 为更新所有角色。更新角色和用户关系
roleId - 角色IDasync - 是否异步执行。如果为 true,则会校验角色是否存在(如果还不存在,最多等待 1 分钟)、并且在异步线程中执行更新。