public class UserContentHolder extends Object
| 构造器和说明 |
|---|
UserContentHolder() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clearContext()
清空
|
static UserContext |
createEmptyContext()
创建空的用户信息
|
static UserContext |
getContext()
获取用户信息
|
static Locale |
getLocale()
获取语言标识
|
static String |
getOrgCode()
获取用户名
|
static Object |
getParam(String key)
获取动态参数
|
static String |
getTenantCode()
获取租户
|
static String |
getTimeZone()
获取时区
|
static String |
getUsername()
获取用户名
|
static Integer |
getUserType()
获取用户类型
|
static String |
getUuid()
标识用户登录的终端
|
static void |
putParam(String key,
Object value)
添加参数
|
static void |
setContext(UserContext context)
设置用户信息
|
public static void clearContext()
public static UserContext getContext()
public static void setContext(UserContext context)
context - public static String getUsername()
public static Integer getUserType()
public static String getOrgCode()
public static String getTenantCode()
public static String getUuid()
public static UserContext createEmptyContext()
public static Locale getLocale()
public static String getTimeZone()
Copyright © 2022 Anji-Plus. All rights reserved.